Home All Groups Group Topic Archive Search About
Author
24 Apr 2005 10:16 PM
Tomas Kepic
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

Author
25 Apr 2005 10:12 AM
Galin Iliev
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
Author
25 Apr 2005 5:44 PM
Tomas Kepic
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
>
>
>