I am trying to submit a form with .submit(), but I am having issues passing the values from my form...
Here is what I have so far:
[code=c#]
<TITLE>ASPXTOAS P.aspx</TITLE>
<script language="C#" runat="server">
private void Page_Load(objec t sender, EventArgs e){
//We grab all the session variable names/values and stick them in a form
// and then we submit the form to our receiving ASP page (ASPTOASPX.asp) ...
Response.Write( "<form name=t id=t action=ASPXTOAS P.asp method=post>");
foreach(object it in Session.Content s)
{
Response.Write( "<input type=hidden name=" + it.ToString());
Response.Write( " id=" + it.ToString());
Response.Write( " value=" + Session[it.ToString()].ToString() + " >");
}
if (Request.QueryS tring["destpage"] !=null)
Response.Write( "<input type=hidden name=destpage value=" +Request.QueryS tring["destpage"].ToString() +">");
Response.Write( "</FORM>");
Response.Write( "<scr" + "ipt>t.subm it;</scr" + "ipt>");
}
</script>
[/code]
As luck would have it, I have no problems with this in IE. I have tried everything that I can think of to get it to work in Firefox... document.forms( 0).submit(), document.getEle mentById("t").v alue.submit, etc, and nothing is working.
Thanks!
Here is what I have so far:
[code=c#]
<TITLE>ASPXTOAS P.aspx</TITLE>
<script language="C#" runat="server">
private void Page_Load(objec t sender, EventArgs e){
//We grab all the session variable names/values and stick them in a form
// and then we submit the form to our receiving ASP page (ASPTOASPX.asp) ...
Response.Write( "<form name=t id=t action=ASPXTOAS P.asp method=post>");
foreach(object it in Session.Content s)
{
Response.Write( "<input type=hidden name=" + it.ToString());
Response.Write( " id=" + it.ToString());
Response.Write( " value=" + Session[it.ToString()].ToString() + " >");
}
if (Request.QueryS tring["destpage"] !=null)
Response.Write( "<input type=hidden name=destpage value=" +Request.QueryS tring["destpage"].ToString() +">");
Response.Write( "</FORM>");
Response.Write( "<scr" + "ipt>t.subm it;</scr" + "ipt>");
}
</script>
[/code]
As luck would have it, I have no problems with this in IE. I have tried everything that I can think of to get it to work in Firefox... document.forms( 0).submit(), document.getEle mentById("t").v alue.submit, etc, and nothing is working.
Thanks!
Comment