View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:57 PM
fyodor myshkin
Posts: n/a
Well, first thing to note is that you are mixing two technologies. You really don't need an aspx page to do a conventional Post. That being said, you should just replace the runat="server" from your form with method="post". Do this unless you plan on using your code-behind to process the form.

Next, open your Save.aspx page so that you can view the source. Place the following above the html code and under your Page directive (I'm using C sharp but you could easily change it to VB ):

<script language=cs runat=server>
void Page_Load(object sender, System.EventArgs e)
{
myLabel_id.Text = Request.Form("myFormElementName").toString();
}
</script>

Now, inside the <form> tags of your Save.aspx page put the following: <asp:Label id="myFormElementName" run="server" />

run your get.aspx page and the results should post on your save.aspx page.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!