<code>Control ctrl = this.Master.FindControl(textboxID);
TextBox txt = ctrl as TextBox;
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
I am using php 5 and getting an error message like this
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Basically (and as very clearly stated), PHP Global variables no longer effect the session. What appears to have happened is that somewhere in the script there is the code:
global $GlobalVariable = "<small>In earlier versions of PHP the global variable scope used to include the session array, however that has been disabled for security reasons.</small>";
echo $_SESSION['GlobalVariable']; //This is what is causing the error. It is not necessarily a echo command.
- unknown PHP Developer on "Job Prospect"
Requirement: * Experience working with XML, XSL, XPath
I have a standard DHTML File Upload form (transporting the file over the post command). Now when a user clicks the submit button I don't want a new page to be loaded, I want the file to be uploaded over an AJAX call. So that not the whole page needs to be reloaded! XMLHttpRequest Object can deal with POST data, but how can I give it the POST data of the file?
The -1 means the database driver does not support record-counts for record sets.
A quick way of achieving a record count is to use the recordset GetRows() method to extract the data into a two-dimensional array. Then you can do Ubound(arr, 2) to get the number of elements in the 2nd dimension.
i want to change background of my web form at run time using C# code in Asp.net web application.
By using HTML tags i can do it like using "document.body.background"
but i want to know how to use it in C#.
Not exactly what I want it to do beacuse then you still have to specify the table height in pixels. What I need is the table to be centered, when the screen resolution is chnaged to smaller it doent show scrollbars in the window.
Last Visit: 31-Dec-99 19:00 Last Update: 4-Mar-24 18:25