468,535 Members | 1,731 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,535 developers. It's quick & easy.

webcontrol and <form> tag

Hi

In my project I have got several webcontrol (ascx). How can I handle with
the problem:
I would like to have some ASPNET object (DropDownList, InputBox etc.) in one
webcontrol (this webcontrol is a part of Default.aspx page where I have
<form runat=server> tag. But this tag does not cover this webcontrol - let's
say "header" webcontrol 'cos it is needed by other webcontrols.
So ... telling in short I cannot have <form runat=server> in my control. The
question is how can I handle with this situation and how can I can build
i.e. DropDownList - yet with postback function.
Is it possible?

Darek
Feb 20 '06 #1
1 1280
ASCX UserControls become part of your page between the FORM tags that are
already there.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dariusz Tomon" wrote:
Hi

In my project I have got several webcontrol (ascx). How can I handle with
the problem:
I would like to have some ASPNET object (DropDownList, InputBox etc.) in one
webcontrol (this webcontrol is a part of Default.aspx page where I have
<form runat=server> tag. But this tag does not cover this webcontrol - let's
say "header" webcontrol 'cos it is needed by other webcontrols.
So ... telling in short I cannot have <form runat=server> in my control. The
question is how can I handle with this situation and how can I can build
i.e. DropDownList - yet with postback function.
Is it possible?

Darek

Feb 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.