shragi
asked on
response. redirect
buffer.Write("<INPUT type=\"submit\" name=\"Save\" value=\"Save\" onclick=\"edit_text();\">" + " ");
buffer.Write("<script type=\"text/javascript\">" );
buffer.Write("function edit_text(){");
buffer.Write("var txtVal = ''hello");
buffer.Write("Response.Red irect(\"ab c.aspx?id= " + txtVal ); \")");
buffer.Write("}");
buffer.Write("</script>");
is the above syntax correct...
i am writing the above code in aspx.cs page.... when i click the save button the function should redirect to other page with a variable
buffer.Write("<script type=\"text/javascript\">"
buffer.Write("function edit_text(){");
buffer.Write("var txtVal = ''hello");
buffer.Write("Response.Red
buffer.Write("}");
buffer.Write("</script>");
is the above syntax correct...
i am writing the above code in aspx.cs page.... when i click the save button the function should redirect to other page with a variable
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the above two are not working... what should be modified...
Change
buffer.Write("var txtVal = ''hello");
to
buffer.Write("var txtVal = 'hello'");
buffer.Write("var txtVal = ''hello");
to
buffer.Write("var txtVal = 'hello'");
ASKER
text entered in textbox should be sent to other form as soon as button is clicked....
buffer.Write("<INPUT type=\"submit\" name=\"Save\" value=\"Save\" onclick=\"document.locatio