Aug 5, 2005 #1 frmorris Programmer Aug 4, 2005 22 US I am developing a web application in vb.net. Could someone tell me how do I code the button so that when the user click it a new form will open.
I am developing a web application in vb.net. Could someone tell me how do I code the button so that when the user click it a new form will open.
Aug 5, 2005 #2 tgreer Programmer Oct 4, 2002 1,781 US Search for "window.open()", a JavaScript method. To add a JavaScript event handler to an ASP.NET "Button" control, you can use the "Add" method of the "Attributes" collection. Thomas D. Greer Providing PostScript & PDF Training, Development & Consulting Upvote 0 Downvote
Search for "window.open()", a JavaScript method. To add a JavaScript event handler to an ASP.NET "Button" control, you can use the "Add" method of the "Attributes" collection. Thomas D. Greer Providing PostScript & PDF Training, Development & Consulting
Aug 5, 2005 #3 Shift838 IS-IT--Management Jan 27, 2003 987 US <button name>.Attributes.Add("onclick", "window.open( '>page name>');") Upvote 0 Downvote
Aug 5, 2005 Thread starter #4 frmorris Programmer Aug 4, 2005 22 US Thanks tgreer and chris77504 for your help. I found a script to solve my problem. Upvote 0 Downvote