ASP.NET (RSS)

Tips And Tricks regarding ASP.NET

EntLib 3.0 Web cast

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.
with 0 Comments

Firefox 2.0 is out

check out the new FireFox 2.0 , so many things . so little time :)
with 0 Comments

interview que - asp.net

came accross this link , check it out

http://www.techinterviews.com/index.php?p=5&more=1&c=1

with 0 Comments

Infrastructure in ASP.NET 2.0

Something I came a crose when I was looking about "Atlas" and "Ajax"

http://msdn.microsoft.com/asp.net/reference/infrastructure/default.aspx

and more specific :

Visual Studio 2005 Web Deployment Projects (Beta Preview)

http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx

 

with 0 Comments

XHTML in VS2005

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

with 1 Comments

JSP JavaBeans in ASP.NET Style

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 )

 

with 1 Comments

Scrolling back to Top of the page from an IFrame

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)

with 0 Comments

JavaScript Trick - Closing The only open window

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

with 2 Comments

Some JScript/ASP(.NET) tricks

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>

with 3 Comments

Gradient Color For the Web

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]

with 0 Comments