asp 后台连接的问题,帮我连接下后台,谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/23 09:21:29
<%@ Language=VBScript%>
<html><Body>
<Form method="post" action="3.asp" Name="form1">
<Hr>
<Div Align="center">
<table width="400" height="400" border="1">
<tr>
<td width="400" height="400"><div align="center">
<p>输入数据的表单</p>
<table width="337" height="281" border="1">
<tr>
<td width="150" height="120">姓名:
<form name="form1" method="post" action="3.asp">
<input type="text" name="textfield">
</form></td>
<td width="60"><p>性别:</p>
<p>男
<input type=&q

要3.asp 的代码啊 你把这个拿出来没什么用的

你的这个页的代码写的真奇怪!为什么有些表单元素不放到表单form里?
是我懂的少,还是你写错了?

这个是HTML的代码啦,你想跳转的话,还要编写后台代码的,我只给你参考,根据你的情况修改啦.
例如:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class AddressDetail : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind_Address();
}
}
void Bind_Address()
{
int id = Convert.ToInt32(Request.QueryString["id"].ToString());
//读取数据库连接字符串
string settings = Convert.ToString(ConfigurationManager.ConnectionStrings["SqlSer