Aug 5, 2005 #1 frmorris Programmer Joined Aug 4, 2005 Messages 22 Location 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 Joined Oct 4, 2002 Messages 1,781 Location 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 Joined Jan 27, 2003 Messages 987 Location US <button name>.Attributes.Add("onclick", "window.open( '>page name>');") Upvote 0 Downvote
Aug 5, 2005 Thread starter #4 frmorris Programmer Joined Aug 4, 2005 Messages 22 Location US Thanks tgreer and chris77504 for your help. I found a script to solve my problem. Upvote 0 Downvote