I am not getting any error now but in my process.aspx page i have the
following in page_load method but It is not doing any thing
string strFirstName = Request.Form["fvFirstName"];
string strLastName = Request.Form["fvLastName"];
string strEmailAddress = Request.Form["fvEmailAddress"];
string strPhoneService = Request.Form["fvPhoneService"];
Response.Write(strFirstName);
Response.Write(strLastName);
Response.Write(strEmailAddress);
Response.Write(strPhoneService);
Can you please provide the entire code for all pages concerned - it's
starting to look like you're using the old ASP Classic method of having a
separate page for form processing...
--http://
www.markrae.net- Hide quoted text -
- Show quoted text -
Thanks a lot for your concern. I am sending you my code for both
pages.
#########################################################
Contactus.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
function showProcessform()
{
window.location = "processform.aspx";
return true;
}
</script>
<html xmlns="
http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" action="processform.aspx" method="post"
runat="server">
<div>
<input id="fvFirstName" type="text" /><br />
<br />
<input id="fvLastName" type="text" />
<br />
<input id="fvEmailAddress" type="text" /><br />
<input name="Submit" type="submit" style="font-
size:11px" onclick = "showProcessform()" value="Submit">
</div>
</form>
</body>
</html>
########################################
processform.aspx
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
string strFirstName = Request.Form["fvFirstName"];
string strLastName = Request.Form["fvLastName"];
string strEmailAddress = Request.Form["fvEmailAddress"];
Response.Write(strFirstName);
Response.Write(strLastName);
Response.Write(strEmailAddress);
string[] getInfo1 = new string[2];
InsertIntotbTickets(strFirstName, strLastName,
strEmailAddress);