http://msdn.microsoft.com/en-us/library/0x5wc973.aspx
Monday, January 26, 2009
Wednesday, January 21, 2009
Cool JS Trick
Go to:
http://images.google.com.au/images?hl=en&q=car&um=1&ie=UTF-8&sa=N&tab=wi
Then copy and paste the following code into your browser:
R=0; x1=0.1; y1=0.05; x2=0.25; y2=0.24; x3=1.6; y3=0.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);
Source: http://www.hemmy.net/2006/10/25/javascript-cool-effect-trick/
http://images.google.com.au/images?hl=en&q=car&um=1&ie=UTF-8&sa=N&tab=wi
Then copy and paste the following code into your browser:
R=0; x1=0.1; y1=0.05; x2=0.25; y2=0.24; x3=1.6; y3=0.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);
Source: http://www.hemmy.net/2006/10/25/javascript-cool-effect-trick/
Monday, January 12, 2009
ASP.Net returning XML
Response.Clear();
Response.ContentType = "text/xml";
Response.Write(xmlDoc.InnerXml);
Response.End();
Response.ContentType = "text/xml";
Response.Write(xmlDoc.InnerXml);
Response.End();
Sunday, January 11, 2009
Prompt Download File in ASP.Net Csharp
string path = Server.MapPath("##FILEPATH##");
System.IO.FileInfo fi = new FileInfo(path);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment;filename=" + fi.Name);
Response.ContentType = "application/octstream";
Response.AddHeader("Content-Length", fi.Length.ToString());
Response.TransmitFile(path);
Response.Flush();
Response.Clear();
System.IO.FileInfo fi = new FileInfo(path);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment;filename=" + fi.Name);
Response.ContentType = "application/octstream";
Response.AddHeader("Content-Length", fi.Length.ToString());
Response.TransmitFile(path);
Response.Flush();
Response.Clear();
Wednesday, January 7, 2009
Tuesday, January 6, 2009
Spacing Issues Cross Browsers
Problem:
<br/>
<br/>
has different behaviour in IE and in Firefox
Solution:
<div>
<br/>
</div>
<br/>
<br/>
has different behaviour in IE and in Firefox
Solution:
<div>
<br/>
</div>
Subscribe to:
Posts (Atom)