D
Dan
VB.NET....
Serving page 1 which has a text box and a button. When the button is push
the button_click event is called. In this event I want to serve Page 2 if
the text box contains <value1> and page 3 if the text box contains <value2>.
I am having trouble with the code to effect the transfer. The IF clause
works correctly.
---------------
Private Sub Button1_Click(ByVal sender as System.Object, ByVal e As
SystemEventArgs) Handles Burron1.click
If Text1.text = "text1" then
Server.Transfer("page2")
else
Server.Transfer("page3")
End IF
End Sub
------------
Page 1 displays correctly. After clicking the button, I get
"Server Error in '/test' Application
Exception Details: System.Web.HttpException: Error executing child request
for page2
Both pages are in the same project and were built in VB.NET with .aspx
extensions.
Thanks for your help.
Serving page 1 which has a text box and a button. When the button is push
the button_click event is called. In this event I want to serve Page 2 if
the text box contains <value1> and page 3 if the text box contains <value2>.
I am having trouble with the code to effect the transfer. The IF clause
works correctly.
---------------
Private Sub Button1_Click(ByVal sender as System.Object, ByVal e As
SystemEventArgs) Handles Burron1.click
If Text1.text = "text1" then
Server.Transfer("page2")
else
Server.Transfer("page3")
End IF
End Sub
------------
Page 1 displays correctly. After clicking the button, I get
"Server Error in '/test' Application
Exception Details: System.Web.HttpException: Error executing child request
for page2
Both pages are in the same project and were built in VB.NET with .aspx
extensions.
Thanks for your help.