ASP.NET
Tips And Tricks regarding ASP.NET
Take notice , there's an
Enterprise Library 3.0 Webcast on March 27 at 10am PDT / 17:00 UTC. So due to the fact that most of us use EntLib this webcast might of importance to some of us.
check out the new FireFox 2.0 , so many things . so little time :)
came accross this link , check it out
http://www.techinterviews.com/index.php?p=5&more=1&c=1
this weekend , when trying to port an ASP.NET 1.1 application
to ASP.NET 2.0 I ran into trouble with the Table control
the Table was with height 100%
and on the VS2003 it was 100% , and on the VS2005 it wasn't
after a bit of looking in the HTML
the solution was that you should change the HEADER
from :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
to
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
and that should do the trick
Hey
Just came a cross some thing very nice , which once I have done in JSP
http://aspbeans.sourceforge.net/
Yes , the .NET version of the JavaBeans ( not EJB )
Hi ... I was looking for a solution regarding this , so when I found one , I posted it
parent.window.location.href="#"
or
parent.window.scrollTo(0,0)
A Good friend asked me the other day
"How do I close a window , which is the only instance , But without the alerts "
Well Alon , my friend , here goes nothing :
<script>
function CloseMe()
{
window.opener = this ;
window.close() ;
}
</script>
<input type=button value="Close Me without Alerts" onclick="CloseMe();">
Hope that helped you
Adlai
1) Printing a a page which has an <IFrame> which takes long time to load :
<script>
function ActivateByInterval()
{
if (document.readyState != "complete")
window.setTimeout(ActivateByInterval, 100);
else
parent.PrintPageAndClose() ;
}
</script>
2) Closing a WebForm which hasn't finished loading
<script>
function CloseForm()
{
if (!window.closed)
{
window.setTimeout("CloseForm()",500) ;
window.close() ;
}
}
</script>
Just incase you want the
gradiant that is used in the msdn site
style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#98B2E6', gradientType='1')"
or to be more broden
<td id="msviRegionGradient1" width="50%" style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#98B2E6', gradientType='1')"></td>
problem ? I suspect that this works from IE 5.5+
values / properties :
startColorStr = well .. let me think .. ahh the start color in HTMLCode :) , the FROM Color
endColorStr = the same but but as a From TO Color , the TO Color
gradientType = here we have two values :
... 1) "0" which means top/bottom [Vertical]
... 2) "1" which means left/right [Horizontal]