Click here to Skip to main content
15,904,655 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPersist Gridview Data Pin
kjosh13-Aug-07 6:33
kjosh13-Aug-07 6:33 
AnswerRe: Persist Gridview Data Pin
ToddHileHoffer13-Aug-07 7:55
ToddHileHoffer13-Aug-07 7:55 
GeneralRe: Persist Gridview Data Pin
kjosh14-Aug-07 3:36
kjosh14-Aug-07 3:36 
QuestionGridview with validation Pin
kjosh13-Aug-07 5:15
kjosh13-Aug-07 5:15 
QuestionAccess parent page controls from Iframe [modified] Pin
rana7813-Aug-07 4:42
rana7813-Aug-07 4:42 
AnswerRe: Access parent page controls from Iframe Pin
Michael Sync13-Aug-07 5:49
Michael Sync13-Aug-07 5:49 
GeneralRe: Access parent page controls from Iframe [modified] Pin
rana7813-Aug-07 5:54
rana7813-Aug-07 5:54 
GeneralRe: Access parent page controls from Iframe Pin
Michael Sync13-Aug-07 6:28
Michael Sync13-Aug-07 6:28 
AFAIK, you can't access the control of parent page from Code-behind. So, you have to use Javascript for accessing the parent page. After that, you have to look a tick to access this client-side value from Code-behind..

For example: There are one textbox called Textbox1 and IFRAME in Default.aspx. There is another page called Default2.aspx which suppose to be shown in IFRAME of Default.aspx page. We add one button called Button1 in Default2.aspx (ChildPage). We wanna get the value of Textbox1 that is placed in Default.aspx (parent page) from Default2.aspx (childpage).

So, we have to write the following ocde in Form_load event of default2.aspx.

Button1.Attributes.Add ("onclick", "alert(top.document.getElementById('TextBox1').value);");

Yeah. I know that it's not exactly what you want. But the idea is that you have to get the value of controls of the parent page by using Javascript. Then, try to find the way to access the those values from Code-behind. (Using Server-side hidden field is one of the communication between client-side script and server-side script. )

Hope it helps.

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

AnswerRe: Access parent page controls from Iframe Pin
Nick.cheng.liu13-Aug-07 6:21
Nick.cheng.liu13-Aug-07 6:21 
GeneralRe: Access parent page controls from Iframe Pin
Michael Sync13-Aug-07 6:31
Michael Sync13-Aug-07 6:31 
GeneralRe: Access parent page controls from Iframe [modified] Pin
Nick.cheng.liu13-Aug-07 6:39
Nick.cheng.liu13-Aug-07 6:39 
GeneralRe: Access parent page controls from Iframe Pin
rana7813-Aug-07 6:46
rana7813-Aug-07 6:46 
QuestionDelete Empty row from Gridview Pin
kjosh13-Aug-07 4:26
kjosh13-Aug-07 4:26 
AnswerRe: Delete Empty row from Gridview Pin
Michael Sync13-Aug-07 6:44
Michael Sync13-Aug-07 6:44 
QuestionRetaining viewstate of dynamic controls Pin
Krugger40413-Aug-07 4:07
Krugger40413-Aug-07 4:07 
AnswerRe: Retaining viewstate of dynamic controls Pin
John-ph13-Aug-07 6:30
John-ph13-Aug-07 6:30 
QuestionUpdating gridview after changes to database Pin
JacquesDP13-Aug-07 3:44
JacquesDP13-Aug-07 3:44 
AnswerRe: Updating gridview after changes to database Pin
kubben13-Aug-07 4:00
kubben13-Aug-07 4:00 
AnswerRe: Updating gridview after changes to database Pin
Blue_Boy13-Aug-07 21:08
Blue_Boy13-Aug-07 21:08 
GeneralRe: Updating gridview after changes to database Pin
JacquesDP13-Aug-07 21:27
JacquesDP13-Aug-07 21:27 
GeneralRe: Updating gridview after changes to database Pin
Blue_Boy13-Aug-07 21:30
Blue_Boy13-Aug-07 21:30 
Questionhow to set default orientation(Landscape) for Internet Explorer Browser. Pin
Amit Agarrwal13-Aug-07 3:34
Amit Agarrwal13-Aug-07 3:34 
QuestionASP.Net 2.0 TreeViewControl Pin
ranandbe13-Aug-07 3:14
ranandbe13-Aug-07 3:14 
QuestionHow to Enable and disable controls in .aspx page using javascript Pin
Balagurunathan S13-Aug-07 2:48
Balagurunathan S13-Aug-07 2:48 
AnswerRe: How to Enable and disable controls in .aspx page using javascript Pin
sathish s13-Aug-07 3:25
sathish s13-Aug-07 3:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.