Sign In
Prakash's Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
ASP.NET
Commerce Server
FxCop
Team Foundation Server
WCF
Archive
Archives
January 2008
(2)
December 2007
(3)
November 2007
(2)
September 2007
(4)
August 2007
(1)
February 2007
(5)
November, 2007
MSDN Blogs
>
Prakash's Blog
>
November, 2007
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Prakash's Blog
How to detect which control caused postback
Posted
over 5 years ago
by
Prakash
1
Comments
public static Control GetPostBackControl(Page page) { Control control = null; string ctrlname = page.Request.Params.Get("__EVENTTARGET"); if (ctrlname != null && ctrlname != string.Empty) { control = page.FindControl(ctrlname); } else { foreach...
Prakash's Blog
How do I detect a session has expired and redirect it to another page
Posted
over 5 years ago
by
Prakash
2
Comments
override protected void OnInit(EventArgs e) { base.OnInit(e); if (Context.Session != null) { if (Session.IsNewSession) { string szCookieHeader = Request.Headers["Cookie"]; if ((null != szCookieHeader) && (szCookieHeader.IndexOf("ASP.NET_SessionId...
Page 1 of 1 (2 items)