JAVASCRIPT
自己搜下吧
不要太多啊
如果你是在找不到,我再写个给你
自己搜下吧
不要太多啊
如果你是在找不到,我再写个给你
解决方案 »
- public string str_pop_title + i; // i=1时 也就是str_pop_title1
- 蛋疼疼疼===========
- 请教一种带this的构造函数有什么作用?
- ASP.NET 文本框的textMode属性为Password问题
- 我想用ASP.NET完成一个留言版
- 有谁知道怎么动态生成组织结构图,急,在线等!
- [新手问]我想在前台的最新新闻的后面加个new图片
- asp.net和asp中cookie共存的问题
- ASP.NET页面命名空间问题
- 在水晶报表里能画斜线吗?我画出来的都是水平或垂直的线,我想要45度的斜线.
- 浏览器页面刷新问题
- public enum SearchType 是什么意思
parent.frames.FrameName.document.getElementById("ly").innerText="111111111";
//FrameName就是指的其上层frame的的名字.
多的 private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
bind();
}
void bind()
{
SqlConnection conn=new SqlConnection("server=.;database=shuiku;uid=sa;pwd=;");
string sql="select * from xxb where xxid="+Request.QueryString["xxid"];
SqlDataAdapter da=new SqlDataAdapter(sql,conn);
DataSet ds=new DataSet();
da.Fill(ds);
TextBox11.Text=ds.Tables[0].Rows[0][0].ToString();
this.TextBox1.Text=ds.Tables[0].Rows[0][1].ToString();
TextBox2.Text=ds.Tables[0].Rows[0][2].ToString();
TextBox6.Text=ds.Tables[0].Rows[0][3].ToString();
TextBox4.Text=ds.Tables[0].Rows[0][4].ToString();
TextBox5.Text=ds.Tables[0].Rows[0][5].ToString();
TextBox7.Text=ds.Tables[0].Rows[0][6].ToString();
TextBox8.Text=ds.Tables[0].Rows[0][7].ToString();
TextBox9.Text=ds.Tables[0].Rows[0][8].ToString();
TextBox3.Text=ds.Tables[0].Rows[0][9].ToString();
}
用Session保存
画面2中取出转换.
你没有理解楼主的意思
楼主是一主框架有两个子框架
在两个子框架中互传
楼主我的理解是对的吧。哈哈我已经写好了。哈哈
如果还没有人正确回答的话,楼主你留下EMAIL我发给你吧
我只是想看看CSDN上到底有多少高人
几个版主算,SP1234算是一个
其它的还没有发现。楼主你做这个有什么用啊
我指功能,做无刷新聊天室??
我纠正我的言论
呵呵
yfqvip也是对的。我试了下。这样也是可以的。
稍微改正下
parent.frameName.document.getElementById("####").value
就可以了
还有就是
window.top.frameName.document.formName.ControlId.value也是可以访问的你要具体的话我也写好了
{ Session["UserName"] = UserName;
}再到页面B中UserName= Session["UserName"].ToString();就行了,这只是一个举例,具体看你要传什么了!!!
{
var totext=top.frames["frame1"].text1.innerText;
window.parent.document.all.Text2.value = totext;
}上述方法简单实用,稍微改下就行
如果是纯前台传值的话就用这种可以后台的最简单是用session了
{
SqlConnection sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings["sql_con"].ToString());
SqlCommand comm = sqlcon.CreateCommand();
comm.Connection = sqlcon;
comm.CommandType = CommandType.Text;
comm.CommandText = "select * from Iynew where id=" + NId;
comm.Connection.Open();
SqlDataReader dr = comm.ExecuteReader();
dr.Read();
// this.DropDownList1.Items.FindByValue(NId.ToString()).Selected = true;
this.Ntitle.Text = dr["Ntitle"].ToString();
Session["Picpath"] = dr["Npic"].ToString();
this.Adate.Text = dr["Adddate"].ToString();
this.source.Text = dr["AritSource"].ToString();
this.editor.Text = dr["Ariedit"].ToString();
this.Editor1.Text = dr["NCon"].ToString();
if (dr["Nshow"].ToString() == "1")
{
this.sh.Checked = true;
}
if (dr["Ntop"].ToString() == "1")
{
this.top.Checked = true;
}
dr.Close();
comm.Connection.Close();
comm.Dispose();
sqlcon.Dispose();
}