-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: MockRaviEverGreen
Message 2 in Discussion
hai
i solved the problem but still its giving another problem i.e,without checking any
condition the new page is always opening whenever we press the button i dont want the
new window if it satisfies the condition then only the new window should be open for
this i used handlers but the remove handler was not working so could u pl help me its
very urgent for me my code is as follows
Dim str As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
If Text2.Text = "1" Then
AddHandler Button1.Click, AddressOf Button1_Click
Else
RemoveHandler Button1.Click, AddressOf Button1_Click
End If
End Sub
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
str = Text1.Text
Text1.Text = str
'Literal1.Text = "alert('c=1')"
'AddHandler Button1.Click, AddressOf Button1_Click
Button1.Attributes.Add("OnClick", "SubmitForm()")
End Sub
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_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]