Click here to Skip to main content
16,004,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added a flash navigation button in window form using c# in visual studio 2008.
I want to open a new form on clicking the navigation button.How can i do it?
Posted

1 solution

try with the script
VB
Dim Script1 As String = ""
               Script1 = "var Win1 = window.open('ConcretePrdInvoicePrint.aspx?CPSrNo=" & CPSrNo & "&TFormat=" & DrpTimeFormat.SelectedValue & "&ShowOil=" & ChkOilFuel.Checked & "','PrintCP','toolbar=0,location=0, directories=0, status=0, menubar=0,scrollbars=1,resizable=0,width=1014,height=714,left=0,top=0'); Win1.focus();"
               ClientScript.RegisterStartupScript(Me.GetType(), "PrintRpt", Script1, True)

put script in onclick event
here you can set page name and variables you want to pass
i have written this in vb.net
 
Share this answer
 
Comments
Devang Vaja 3-Sep-12 8:05am    
is that worked NIKKKI??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900