在aspx中将日期从一个页面转移到另一个页面 [英] Transfer Date from one page to another in aspx

查看:85
本文介绍了在aspx中将日期从一个页面转移到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两页第一页是父母和孩子。父页面包含文本字段和命令按钮。 链接按钮将子页面作为弹出窗口打开。子页面为文本框和按钮。当我单击该按钮时,它将传输子文本框数据父页面文本框。当我使用普通页面(不使用母版页)时,这工作正常。
父页面aspx:

I have two page one is parent and child. Parent page has text field and command button. The Link button open a child page as a popup. Child page as Text box and Button. when i click the button it will transfer child textbox data parent page text box. this is working fine when i use normal page(Not using master page on it).
Parent page aspx:

展开 | 选择 | Wrap | 行号

推荐答案

您好imtmub ,
如果检查代码生成的源html,你可能会发现TextBox1的ID已经改为 ctl00_Content1_TextBox1。


要获取实际ID,需要将TextBox控件的ClientID属性传递给弹出窗口,然后使用该属性将值传回。这是一个例子:

父母:
Hi imtmub,

If you check the source html generated by your code you''ll probably find that the ID of TextBox1 has been changed to something like ctl00_Content1_TextBox1.

To get the actual ID you need to pass the ClientID property of your TextBox control to your popup window and use that to pass the value back. Here''s an example:

Parent:
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


B博士

首先,我要感谢您的答复。

当我检查由我的代码创建的源html时,我的Textbox1 id改为ctl00_ContentPlaceHolder1_TextBox1"


然后我根据你的建议修改了我的java函数。我仍然面临同样的问题。文本框不会将数据传输到父页面文本框。你能看到我需要改变的其他信息吗?


谢谢
Dr B
First of all I have to say thanks for ur response.
When i check the Source html genreted by my code My Textbox1 id change to "ctl00_ContentPlaceHolder1_TextBox1"

Then I have modified my java function according to your suggestion. Still i am facing the same problem. The Textbox is not transfering data to parent page textbox. Can u see anyother info i need to change?

Thanks


你能告诉我你现在在每页上使用的代码吗? ?


谢谢,


B博士
Can you show me the code you''re using now on each page please?

Thanks,

Dr B


这篇关于在aspx中将日期从一个页面转移到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆