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

New Message on BDOTNET

-----------------------------------------------------------
From: 12345net
Message 1 in Discussion

I have a variable called s assigned as "Yes" in the pageload of C#. This varible I am 
using somewhere in the page and there is a button in the page. In the button click 
event I write if s= ="Yes" s="No" else s="Yes". Basically what I want is change the 
value of s between "Yes" and "No" each time when I click the button.But since page 
load is happening for each button click always it get the value as "Yes". So first 
time I am able to change from "Yes" to "No" , but "No" to "Yes" is not happening. When 
I used (!IsPostBack) it gets a null value and gives error page.   What I want is chage 
the value of s at runtime not once many times between "Yes" and "No". Could anyone 
help me in this? It may be a simple problem for you.   thanks 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]

Reply via email to