Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX326-Sep-08 17:14
AlexeiXX326-Sep-08 17:14 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P26-Sep-08 21:04
Tina P26-Sep-08 21:04 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX327-Sep-08 10:27
AlexeiXX327-Sep-08 10:27 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P27-Sep-08 11:45
Tina P27-Sep-08 11:45 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX327-Sep-08 12:54
AlexeiXX327-Sep-08 12:54 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P27-Sep-08 14:10
Tina P27-Sep-08 14:10 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control [modified] Pin
AlexeiXX327-Sep-08 16:55
AlexeiXX327-Sep-08 16:55 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P28-Sep-08 0:28
Tina P28-Sep-08 0:28 
Hello there,

Thanks for the example...i tried to use the read only property as you mentioned above and accessed the text box from the page's code behind in this way TextBox textBx = pumpassembly.installationDateTextBox;

technically it should have the text box control in the textBx variable when I step through this code, but it returns NULL just as it was before when I was using FindControl approach????

By the way, just an FYI, I'm loading these user controls in the pre_render event...so they don't get loaded in the page load...anyways, but the code TextBox textBx = pumpassembly.installationDateTextBox; is being executed from a button called ADD on the page (Add buttons click event handler). The reason I'm mentioning this is because all of a sudden it occurred to me that what if the user control (whose text box we are trying to access) is not loaded at the time, but that's not true because the page has already been loaded at this time once and that's when user clicks the Add button. I'm sooooo confused Frown | :(


Also sorry i must have misunderstood, here is the ascx code you asked for.

<div style="margin-bottom: inherit; bottom:inherit; margin-top: inherit; position: relative; display: block;<br mode=" hold=" />    float: left; border-style:None; width: 600px; height:300px">
    <div style="position: relative; float: left;">
        <asp:label id="pumpAssemblyLabel" runat="server" font-bold="true" text="General Information" xmlns:asp="#unknown"></asp:label>    </div>
    
<asp:label id="_installationDateLabel" runat="server" text="Installation Date" xmlns:asp="#unknown"></asp:label>
    <asp:textbox id="_installationDateTextBox" runat="server" width="91px" xmlns:asp="#unknown"></asp:textbox>
    
    <asp:label id="_manufacturerLabel" runat="server" text="Manufacturer" xmlns:asp="#unknown"></asp:label>
    
    <asp:dropdownlist id="_manufacturerDropdown" runat="server" appenddatabounditems="True" xmlns:asp="#unknown">
        DataSourceID="Manufacturerds" DataTextField="ManufacturerName" DataValueField="ManufacturerID">
        <asp:listitem>---Select One---</asp:listitem>
    </asp:dropdownlist>
    <asp:objectdatasource id="Manufacturerds" runat="server" typename="DataAccessLayer.ManufacturerDataSource" xmlns:asp="#unknown">
        SelectMethod="GetManufacturerUsingDB"></asp:objectdatasource>
    <br />
    <asp:label id="_modellabel" runat="server" text="Model" xmlns:asp="#unknown"></asp:label>
    
    <asp:textbox id="_modelTextbox" runat="server" width="111px" xmlns:asp="#unknown"></asp:textbox>
    
    <asp:label id="_serialNumLabel" runat="server" text="Serial Number" xmlns:asp="#unknown"></asp:label>
    <asp:textbox id="_serialNumTextBox" runat="Server" width="113px" xmlns:asp="#unknown"></asp:textbox>
    <br /></div>


Thanks
Tina
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX328-Sep-08 5:51
AlexeiXX328-Sep-08 5:51 
QuestionQuestion regarding formatting/ displaying data in a drop down list Pin
Tina P26-Sep-08 0:41
Tina P26-Sep-08 0:41 
AnswerRe: Question regarding formatting/ displaying data in a drop down list Pin
NeverHeardOfMe26-Sep-08 0:50
NeverHeardOfMe26-Sep-08 0:50 
GeneralRe: Question regarding formatting/ displaying data in a drop down list Pin
Tina P26-Sep-08 21:05
Tina P26-Sep-08 21:05 
Questionserver.tranfer path error Pin
imranafsari26-Sep-08 0:26
imranafsari26-Sep-08 0:26 
AnswerRe: server.tranfer path error Pin
droth1726-Sep-08 1:54
droth1726-Sep-08 1:54 
QuestionCheck checkbox values in checkboxlist from database help (c#) Pin
AdamskiR26-Sep-08 0:11
AdamskiR26-Sep-08 0:11 
QuestionGet file name out of path Pin
varsh1226-Sep-08 0:01
varsh1226-Sep-08 0:01 
AnswerRe: Get file name out of path Pin
NeverHeardOfMe26-Sep-08 0:07
NeverHeardOfMe26-Sep-08 0:07 
GeneralRe: Get file name out of path Pin
J4amieC26-Sep-08 0:35
J4amieC26-Sep-08 0:35 
GeneralRe: Get file name out of path Pin
NeverHeardOfMe26-Sep-08 0:45
NeverHeardOfMe26-Sep-08 0:45 
QuestionReplace function is not working on ASP Pin
Amit Battan Ror25-Sep-08 23:00
Amit Battan Ror25-Sep-08 23:00 
AnswerRe: Replace function is not working on ASP Pin
NeverHeardOfMe25-Sep-08 23:28
NeverHeardOfMe25-Sep-08 23:28 
Questionwant to open a link Pin
UD(IA)25-Sep-08 22:10
UD(IA)25-Sep-08 22:10 
AnswerRe: want to open a link Pin
meeram39525-Sep-08 22:39
meeram39525-Sep-08 22:39 
QuestionChange the aspx page extension Pin
Kurle25-Sep-08 20:57
Kurle25-Sep-08 20:57 
AnswerRe: Change the aspx page extension Pin
meeram39525-Sep-08 21:13
meeram39525-Sep-08 21:13 

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.