You can do it by using Response.Write()

In the button click method, have something of this sort:


sUrl="http://www.hotmail.com/index.aspx?userName=naweed";

Response.Write("<script
language='javascript'>windows.open('"+sUrl+"');</script>")


HTH

Regards
Naweed Akram

-----Original Message-----
From: Karthick Kumar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 13, 2004 2:38 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Execute Querystring


Hi,

I have a built a Querystring, is there any way to dynamically execute it ?.
I mean, once the submit button is clicked I want to open up the URL with the
built querystring(s) in a new window. How can I do it ?. At the moment, my
querystring is built only when the submit button is clicked..

My code is here:

        Private Sub Submit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Submit.Click

           Dim ty, invm, invy As Integer
            Dim invn As String

            invn = txtInvoice.Text
            invm = ddlInvmonth.SelectedValue
            invy = txtInvyear.Text

            ' ** Set the (Invoice Type) Radio Button accordingly **
            If rb1.Checked Then
                ty = 1
           ElseIf rb2.Checked Then
                ty = 2
            End If

            lblInvNo.Text = invn
            lblinvMonth.Text = MonthName(invm)
            lblinvYear.Text = invy

             Dim surl As New System.Text.StringBuilder

            surl.Append("javascript:window.open('")
 
surl.Append("http://pdsserver/homehelp/Default.aspx?tabid=37&ty=";)
            surl.Append(ty.ToString())
            surl.Append("&invn=" & invn.ToString())
            surl.Append("&invm=" & invm.ToString())
            surl.Append("&invy=" & invy.ToString())

Thanks..

Regards,
Karthick



[Non-text portions of this message have been removed]




 
Yahoo! Groups Links



 







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to