Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Showing/Loading WebForms

Status
Not open for further replies.

Ciralia

Programmer
Oct 22, 2002
51
US
I am using Microsoft Visual Studio .NET to build my ASP.NET web application. I have several WebForms, and I cannot figure out how to code the loading of a form if a user clicks a button.

Lets say I have a WebForm named WebForm1 with a button on it and when the button is clicked I want to show WebForm2.

I've tried these things so far to show the other form:

'This code says "Show" cannot be found
Dim openForm As WebForm2
openForm = New WebForm2()
openForm.Show()

'"Show" and "Load" can't be found
WebForm2.Show() 'or
WebForm2.ShowForm() 'or
WebForm2.Load()

If you know the answer to my question, please then tell me how to close or hide WebForms also, thank you.

 
That is code for a windows VB app. You need to use either Response.Redirect("Page Name") or Server.Transfer("Page Name")

JIm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top