private void Button1_Click(object sender,EventArgs e)
{
Dataset ds=goods.GetInfoDataSet();
if(ds.Table[0].Rows.Count>0) //判断数据集是否为空
{
this.textbox1.text=ds.Table[0].Rows[0][0].ToString();
this.textBox2.Text=ds.Table[0].Rows[0][1]....
1. ClientScript.RegisterStartupScript(Gettype(),"","<script>alert('现在去修改密码');window.open('index.aspx?id="+loginId+"');</script>"); //loginId传参变量
2. ClientScript.RegisterStartupScript(gettype(),"","<script>alert('现在去修改密码');window.location='index.aspx?id="+loginId+"';</script>"); //l...
将得到值在窗体form2加载时显示在文本框中:(使用窗体的Tag属性)
Form1中:
private void Button1_Click(object sender,EventArgs e)
{
Dataset ds=goods.GetInfoDataSet();
if(ds.Table[0].Rows.Count >0)
{
Form2 f2=new Form2();
f2.Tag=ds;
f2.Show(...
设计界面:<table><tr>
<td style=" font-weight:bold; padding-right:30px;">执法记录信息列表</td>
<td>起日期:<input id="txtpredate" type="text" "
runat="server" readonly="readonly" /></td>
<td>止日期:<input id="txtnextdate" type="text...