Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: passing session


Message #1 by anirose_us@y... on Thu, 12 Sep 2002 17:57:31
Well... 
I removed the response.redirect and then did as below :

//my code 
public int CurGroupID
		{
			get
			{
				if(IsLoggedIn)
				{
					EnsureChildControls();
					if(ViewState["CurGroupID"] != null)
					{
						return Convert.ToInt32
(ViewState["CurGroupID"]);
					}
					else
					{
						return -1;
					}
				}
				else
				{
					return -1;
				}
			}
			set
			{
				EnsureChildControls();
				ViewState["CurGroupID"] = value;
			}

and now it works... I always have the value of the ID as well and can pass 
that through the from.





> so what was te answer for ur query...
post back 

==============================
S.Ramanujam
Programmer Analyst
Cognizant Technology Solutions (p) Ltd. - CTS
38 & 39 Whites Road,
WCB - Whites Road Circular Building
Royapettah, Chennai - 600014
Ph : +xx xx xxx xxxx Extn 5113 [Off]
     : +xx xx xxx xxxx                 [Res]


  Return to Index