Hello all,
I'm trying to post to another page from asp.net and direct the user
there. I've looked through the group and found a lot of information.
The following code may work well for what I'm doing.
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
** Response.Write("<!-- Include File='Example.aspx' -->")
Response.Write("<form name='Form2' action='UrlHere' method='POST' >")
** Response.Write("<% Example() %>")
Response.Write("<INPUT type='hidden' name='none' value='none'>")
Response.Write("</form>")
Response.Write("<script>")
Response.Write("document.Form2.Submit();")
Response.Write("</script>")
End Sub
The problem I'm having is trying to implement the include file and run
functions from it. If I remove the code for the function and the
include file (labeled with **) the post will work, but without them it
isn't working the way I need it to.
Does anyone know of a way that I can implement this include file into
the following code and run fuctions from it?
Thanks