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

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: MockRaviEverGreen
Message 1 in Discussion

hai everybody

iam ravi i am doing a website in my webpage i used a asp button control whenever we 
press it should check some condition and if its satisfies then its open a new page i 
have a code but still its some problem so pl any body solve it the code is as 
follows....

<html>
<head>
         language="javascript">
                        function SubmitForm() 
                                {
                                        alert("hai");
                                        window.open("TopSellers.aspx");
                                        //window.open("webform2.aspx?code1="+ 
document.Form1.text1.value);
                                }
        </script>
         language=vb runat=server>
                Dim c As Integer = 1
                sub page_load
                CompareBtn.Attributes.Add("OnClick", "SubmitForm()")
                end sub
                sub CompareBtn__Click(S as Object, E as EventArgs)
                        If c = 1 Then
                                Literal1.Text = "alert('c=1')"
                                'CompareBtn.Attributes.Add("OnClick", "SubmitForm()")
                        Else
                                Response.Write("false")
                        End If
                end sub
        </script>
</head>
<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" 
marginheight="0">
<form id="Form1" method="post" runat="server">
        
        
                
                        <asp:Button Id="CompareBtn" OnClick="CompareBtn__Click" 
Text="Compare Sarees" runat=server/>
                
        
        
</form>
</body>
>
                <asp:Literal id="Literal1" runat="server"></asp:Literal>
</script>
</html>


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

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]

Reply via email to