|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Referencing to .ascxin my application I create a USER CONTROL with name "test.ascx" with one textbox named "User" and one button "Submit". In my default page "default.aspx" I add this user contorol to page with using: Control AAA = LoadControl("test.ascx"); FirstTest.Controls.Add(AAA); and referencing <%@ Reference Control = "test.ascx" %> in html page. I also use ASP:PLACEHOLDER for FirstTest Control. My problem is that I don't know how can I reference in my "default.aspx" page to value stored in User textbox in "test.ascx". So I can't use value stored in textbox User in other parts of my projects. I can't see it! Please help me someone, I'm beginner in ASP and I can't continue. Please help me. I have this problem and I can't solve this for o -- Tomas Try just dragging USERControl from Solution explorer into your webpage
directly thus you will see where it is placed. set properly name to usercontrol then declare control in page code class and you are ready if you have troubles with this write me, pls Regards Galin Iliev Show quoteHide quote "Tomas Kepic" <TomasKe***@discussions.microsoft.com> wrote in message news:BB72CD00-3B89-4C74-82AE-06455EA56CD3@microsoft.com... > Hi all, > > in my application I create a USER CONTROL with name "test.ascx" with one > textbox named "User" and one button "Submit". > > In my default page "default.aspx" I add this user contorol to page with > using: > > Control AAA = LoadControl("test.ascx"); > FirstTest.Controls.Add(AAA); > > and referencing <%@ Reference Control = "test.ascx" %> in html page. I > also > use ASP:PLACEHOLDER for FirstTest Control. > > My problem is that I don't know how can I reference in my "default.aspx" > page to value stored in User textbox in "test.ascx". > > So I can't use value stored in textbox User in other parts of my projects. > I > can't see it! > > Please help me someone, I'm beginner in ASP and I can't continue. Please > help me. > > > > I have this problem and I can't solve this for o > -- > Tomas Hi Galin,
I dragged My UserControl from Solution explorer into my webpage, as you wrote, but I don't know how to set property name to usercontrol. Can you write me some example? This property should I write in HTML view (default.aspx) or in "codebehind" default.aspx.cs. Thanx for your time, and sorry that I'm asking you with this boring questions, but I'm just beginner in ASP.NET. Tomas Show quoteHide quote "Galin Iliev" wrote: > Try just dragging USERControl from Solution explorer into your webpage > directly > thus you will see where it is placed. > set properly name to usercontrol > then declare control in page code class and you are ready > > if you have troubles with this write me, pls > > Regards > Galin Iliev > > "Tomas Kepic" <TomasKe***@discussions.microsoft.com> wrote in message > news:BB72CD00-3B89-4C74-82AE-06455EA56CD3@microsoft.com... > > Hi all, > > > > in my application I create a USER CONTROL with name "test.ascx" with one > > textbox named "User" and one button "Submit". > > > > In my default page "default.aspx" I add this user contorol to page with > > using: > > > > Control AAA = LoadControl("test.ascx"); > > FirstTest.Controls.Add(AAA); > > > > and referencing <%@ Reference Control = "test.ascx" %> in html page. I > > also > > use ASP:PLACEHOLDER for FirstTest Control. > > > > My problem is that I don't know how can I reference in my "default.aspx" > > page to value stored in User textbox in "test.ascx". > > > > So I can't use value stored in textbox User in other parts of my projects. > > I > > can't see it! > > > > Please help me someone, I'm beginner in ASP and I can't continue. Please > > help me. > > > > > > > > I have this problem and I can't solve this for o > > -- > > Tomas > > >
Protected Shadows With Events.
dynamic textbox empty string Datalist and LoadTemplate Weird "defined in multiple places" error DropDownList with default values Gridview OnPageIndexChanging not firing in beta 2 How do I set the value of a checkbox on my repeater control? Losing selectedIndex on Control inherted from ListBox during postback Enabled / Disabled my control textbox onfocus event |
|||||||||||||||||||||||