Click here to Skip to main content
15,888,020 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Masterpage-Contentpage Data Sharing Pin
Bradml30-Mar-07 13:15
Bradml30-Mar-07 13:15 
GeneralRe: Masterpage-Contentpage Data Sharing Pin
RickyD22-Apr-07 2:30
RickyD22-Apr-07 2:30 
AnswerRe: Masterpage-Contentpage Data Sharing Pin
DavidNohejl1-Apr-07 21:54
DavidNohejl1-Apr-07 21:54 
<code>Control ctrl = this.Master.FindControl(textboxID);
TextBox txt = ctrl as TextBox;
if(txt!null)
{
 text = txt.Text;</code>
}


Other way could be exposing TextBox's text via public property of masterpage, cast this.Master to exact type of masterpage and access that property.

It gets tricky when you need to do this before masterpage is created, e.g in InitializeCulture() in my case, best I came up in that case was hack using hidden fields and Reqest.Form.


"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

GeneralRe: Masterpage-Contentpage Data Sharing Pin
RickyD22-Apr-07 2:37
RickyD22-Apr-07 2:37 
QuestionJavascript obfuscator. Pin
sergeyv200230-Mar-07 8:28
sergeyv200230-Mar-07 8:28 
AnswerRe: Javascript obfuscator. Pin
Dmitry Khudorozhkov31-Mar-07 2:47
Dmitry Khudorozhkov31-Mar-07 2:47 
AnswerRe: Javascript obfuscator. Pin
Hesham Amin1-Apr-07 6:46
Hesham Amin1-Apr-07 6:46 
Questionsession error in php Pin
kumar bharat bhusanam30-Mar-07 5:37
kumar bharat bhusanam30-Mar-07 5:37 
AnswerRe: session error in php Pin
Bradml30-Mar-07 13:14
Bradml30-Mar-07 13:14 
QuestionAJAX File Upload Form Submission Pin
RedDragon2k30-Mar-07 5:31
RedDragon2k30-Mar-07 5:31 
AnswerRe: AJAX File Upload Form Submission Pin
Dmitry Khudorozhkov31-Mar-07 2:42
Dmitry Khudorozhkov31-Mar-07 2:42 
Questiongetting RecordCount = -1 Pin
Ankur.Bakliwal30-Mar-07 3:48
Ankur.Bakliwal30-Mar-07 3:48 
AnswerRe: getting RecordCount = -1 Pin
andyharman30-Mar-07 6:17
professionalandyharman30-Mar-07 6:17 
QuestionWindow Dimensions Pin
L Viljoen29-Mar-07 3:01
professionalL Viljoen29-Mar-07 3:01 
AnswerRe: Window Dimensions Pin
Not Active29-Mar-07 5:41
mentorNot Active29-Mar-07 5:41 
AnswerRe: Window Dimensions Pin
Vasudevan Deepak Kumar29-Mar-07 9:31
Vasudevan Deepak Kumar29-Mar-07 9:31 
GeneralRe: Window Dimensions Pin
L Viljoen29-Mar-07 21:35
professionalL Viljoen29-Mar-07 21:35 
QuestionHow to create web page embedded with media player without using ActiveX controls? Pin
A.Venkata ramana29-Mar-07 1:29
A.Venkata ramana29-Mar-07 1:29 
AnswerRe: How to create web page embedded with media player without using ActiveX controls? Pin
Vasudevan Deepak Kumar29-Mar-07 9:31
Vasudevan Deepak Kumar29-Mar-07 9:31 
QuestionChanging Background image at run time Pin
EEmaan28-Mar-07 23:57
EEmaan28-Mar-07 23:57 
AnswerRe: Changing Background image at run time Pin
L Viljoen29-Mar-07 1:07
professionalL Viljoen29-Mar-07 1:07 
QuestionHTML Valign Pin
L Viljoen28-Mar-07 23:08
professionalL Viljoen28-Mar-07 23:08 
AnswerRe: HTML Valign Pin
Bradml29-Mar-07 0:00
Bradml29-Mar-07 0:00 
GeneralRe: HTML Valign Pin
L Viljoen29-Mar-07 1:01
professionalL Viljoen29-Mar-07 1:01 
AnswerRe: HTML Valign Pin
RichardGrimmer29-Mar-07 5:54
RichardGrimmer29-Mar-07 5:54 

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.