Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ascx & aspx- Question

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Hello Guys,

I have a question which may be a simple one for you guys.

Ok i have a Login control(login.ascx)...if i put it on a aspx page(login.aspx)
page...everything works fine...if user enter wrong credential, message which says "sorry
your login is incorrect" appears fine...

but when i drop this login control into another control MyLogin.ascx
instead of a aspx page...i get the following error..."cannot have more
than one form tags"...

then i went in and removed the form tags but now i dont get the
invalid login message

How do i solve this problem??

Thanks

-DNG
 
you have to have one runat="server" form tag on the aspx page using the control. there should be no form tags in either of the ascx pages. if you make it like that i beleive it should work
 
thanks for the reply...i am very new to the .net framework and getting confused in understanding what goes where??

I figured the problem myself after reading couple of articles online...

Thanks anyways...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top