-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: 12345net
Message 5 in Discussion
Hi mrinal I tried with the solution given by santhecoolguy but it doesn't work the
way I want it. Ofcourse I want server side not client side: This is my code in page
load:
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
s="Yes";
}
and in the button click :
private void Button1_Click(object sender, System.EventArgs e)
{
if (ViewState["s"] == "Yes")
{
ViewState["s"] = "No";
}
else
{
ViewState["s"] = "Yes";
}
}
When I do this the first time it is chaning from Yes to No but from No to Yes it is
not happening. And also at this line
if (ViewState["s"] == "clientstyleTouch.css") when I put the break point it shows that
possible unintended reference comparison. Then I made like this:
if (ViewState["s"].ToString() == "clientstyleTouch.css") but that also gives error.
Could u please try and help me on this as this is very urgent for me.
thanks and regards
SAN
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_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]