-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Varad_RS
Message 25 in Discussion


#) Trick with DataGrid
 
You can trick the DataGrid's ButtonColumn to use an image for a button 
without having to use a TemplateColumn. It's really easy. In the DataGrid 
Property Builder, change the column's Button Type to �LinkButton�, then use 
regular HTML for the �Text� property, like
 
<IMG src="/common/images/icons/16/delete.gif" border=0>
 

Click �Apply�, you now have an image button without the hassle of 
having a TemplateColumn. Switch over to the ASPX code view, and you should see 
the following:
 
<asp:ButtonColumn Text="&lt;img 
src=&quot;/common/images/icons/16/delete.gif&quot; 
border=&quot;0&quot; /&gt;" CommandName="Delete" />

#) Resolving quick time-out issue with Forms 
Authentication
 
When using forms authentication with slidingExpiration set to true 
(default), the cookie is updated only when more than half the timeout value has 
elapsed. As a result of this, you might be logged off sooner than you think. 

 
Consider this: You have set the timeout to 30 minutes. You logon on at 3:00 
pm; a FormsAuthenticationTicket is set to expire at 3:30 pm. The expiration of 
this ticket will not be extended for another 30 minutes until you make a request 
after 3:15 pm. So, if you made your last request at 3:15 pm, the ticket will 
still expire at 3:30 pm as more than half the timeout value has not elapsed 
(giving you a 15 minute window before you get logged out). 
 
On the other had, if you had made a request at 3:16 pm, the expiration of 
the ticket is extended to 3:46 p.m.
 
>From MSDN:
 
timeout  :   Specifies the amount of time, in integer 
minutes, after which the cookie expires. The default value is 30. If the 
SlidingExpiration attribute is true, the timeout attribute is a sliding value, 
expiring at the specified number of minutes after the time the last request was 
received. To prevent compromised performance, and to avoid multiple browser 
warnings for users that have cookie warnings turned on, the cookie is updated 
when more than half the specified time has elapsed. This might result in a loss 
of precision. Persistent cookies do not time out.
 
For reference visit : 
http://msdn.microsoft.com/library/defaultasp?url=/library/en-us/cpgenref/html/gngrfforms.asp
 
 
Regards,
Varad
Systems Analyst
Microsoft Solutions Group
Satyam 
Computer Services LTD.,
       "We Learn 
Together & We Grow Together"

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to