Click here to Skip to main content
16,009,185 members
Home / Discussions / Web Development
   

Web Development

 
Questionjavascript Pin
Rage8-Mar-06 3:09
professionalRage8-Mar-06 3:09 
QuestionRemove space from marquee Pin
Harsh D7-Mar-06 23:38
Harsh D7-Mar-06 23:38 
QuestionRemove spce from marquee Pin
Harsh D7-Mar-06 20:06
Harsh D7-Mar-06 20:06 
AnswerRe: Remove spce from marquee Pin
Vasudevan Deepak Kumar7-Mar-06 22:09
Vasudevan Deepak Kumar7-Mar-06 22:09 
AnswerRe: Remove spce from marquee Pin
Trey54988-Mar-06 4:25
Trey54988-Mar-06 4:25 
QuestionWeb Application Design Question Pin
gmhanna7-Mar-06 8:45
gmhanna7-Mar-06 8:45 
AnswerRe: Web Application Design Question Pin
Vasudevan Deepak Kumar7-Mar-06 21:46
Vasudevan Deepak Kumar7-Mar-06 21:46 
QuestionSession Variables - Timeout?? Pin
gmhanna7-Mar-06 8:05
gmhanna7-Mar-06 8:05 
Hi,

I have written some C# code that appears to be working, but as I write this message, I can see that it won't. In the catch routine the ToString will give an exception if the session has timed out.

What I am doing is obtaining a bunch of information about a user at login time and storing the information in session variables. In other C# web screen I reference the variables, but I'm unsure the proper way to determine if the session has timed out.

Here's what I have got, but I think it would be better to set up something that captures timeouts and redirects them, but i'm not sure how other than this.

<br />
  try<br />
  {<br />
      dblSaleLimit = Convert.ToDouble(Session["SALELIMIT"].ToString( ));<br />
  }<br />
<br />
  catch(Exception e)<br />
  {<br />
      if (Session["ID"].ToString() == "")<br />
      {<br />
	 Response.Redirect("Timeout.aspx");<br />
	 return;<br />
      }<br />
				<br />
  String = e.ToString() + 0x0d + 0x0d + "  Message: " + e.Message + 0x0d + "  Stack Trace: " + e.StackTrace;<br />
  efResponse.Text = String;<br />
<br />
  args.IsValid = true;<br />
  return;<br />
}<br />


Thoughts are appreciated....

Thank you,

Glenn
AnswerRe: Session Variables - Timeout?? Pin
enjoycrack7-Mar-06 19:49
enjoycrack7-Mar-06 19:49 
GeneralRe: Session Variables - Timeout?? Pin
Vasudevan Deepak Kumar7-Mar-06 21:48
Vasudevan Deepak Kumar7-Mar-06 21:48 
QuestionEmbedding a control in IE Pin
asdasdqasdasd7-Mar-06 5:28
asdasdqasdasd7-Mar-06 5:28 
AnswerRe: Embedding a control in IE Pin
Shog97-Mar-06 5:57
sitebuilderShog97-Mar-06 5:57 
GeneralRe: Embedding a control in IE Pin
asdasdqasdasd7-Mar-06 6:02
asdasdqasdasd7-Mar-06 6:02 
GeneralRe: Embedding a control in IE Pin
Shog97-Mar-06 6:57
sitebuilderShog97-Mar-06 6:57 
GeneralRe: Embedding a control in IE Pin
asdasdqasdasd7-Mar-06 7:03
asdasdqasdasd7-Mar-06 7:03 
Questionclient side validation Pin
DeepsG6-Mar-06 20:00
DeepsG6-Mar-06 20:00 
AnswerRe: client side validation Pin
Vasudevan Deepak Kumar6-Mar-06 21:14
Vasudevan Deepak Kumar6-Mar-06 21:14 
GeneralRe: client side validation Pin
DeepsG9-Mar-06 22:11
DeepsG9-Mar-06 22:11 
QuestionParser Html Pin
reza toorani6-Mar-06 4:34
reza toorani6-Mar-06 4:34 
AnswerRe: Parser Html Pin
Christian Graus6-Mar-06 5:11
protectorChristian Graus6-Mar-06 5:11 
AnswerRe: Parser Html Pin
Shog96-Mar-06 10:31
sitebuilderShog96-Mar-06 10:31 
AnswerRe: Parser Html Pin
Vasudevan Deepak Kumar6-Mar-06 21:17
Vasudevan Deepak Kumar6-Mar-06 21:17 
QuestionUrgent Help Needed!!!!!!!! Pin
Sushant_Mathur5-Mar-06 19:56
Sushant_Mathur5-Mar-06 19:56 
AnswerRe: Useless subject. Pin
Guffa5-Mar-06 22:05
Guffa5-Mar-06 22:05 
AnswerRe: Urgent Help Needed!!!!!!!! Pin
Vasudevan Deepak Kumar5-Mar-06 23:37
Vasudevan Deepak Kumar5-Mar-06 23:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.