Subscribe to Subscribers

Forums » .NET » ASP.NET »

How to use multi Forms in a single ASPX page?


Posted Date: 30 Nov 2009      Posted By:: DoubtTgr     Member Level: Silver    Member Rank: 1027     Points: 1   Responses: 4



hai all,
i need to know how to display two different forms while clicking Advance Link.
i have registration page with fileds like Fistname,lastname,password,email. this is standard one.
if user click Advance link then i need to show City,state,pincode,phone fileds.

i have only one Button.

if i have two forms it will easy for me validate.




Thanks in Advance
DoubtTgr




Responses

#448687    Author: saikrishna alladi      Member Level: Silver      Member Rank: 0     Date: 30/Nov/2009   Rating: 2 out of 52 out of 5     Points: 2

hi,
asp.net does not allow multiple forms in a single page

instead that u use panels

Thanks & Regards
Saikrishna Alladi


 
#448695    Author: Anitha G      Member Level: Bronze      Member Rank: 0     Date: 01/Dec/2009   Rating: 2 out of 52 out of 5     Points: 2

You can have multiple forms in asp.net page but you can make only one visible at a time. You cant have both the forms visible at the same time. You can use either Panel to acheive this.

 
#448758    Author: MuhiReks      Member Level: Gold      Member Rank: 76     Date: 01/Dec/2009   Rating: 2 out of 52 out of 5     Points: 2

1.use Div tag , Inside Div design your show City,state,pincode,phone fileds.

once user click the Advance , then visible the Div Tag content. So based on that you can do your validation

2. First page get all information to convert into Session , After calling the second page , you append the 2nd page information with the first page and do your validation.

hope this help!

thnx
Muhil





 
#448849    Author: Ankur      Member Level: Gold      Member Rank: 75     Date: 01/Dec/2009   Rating: 2 out of 52 out of 5     Points: 2

you can do it by taking two panels perform toggling b/w them ,use div tag and make them visible false true ,the best way you can use ajax tabs it will help you give the required effect too

Regards
Ankur

Dont forget to rate it if it help


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : What is javascript code to validate comma separated numbers?No multiple comma,no prefix
Previous : Drag and Drop the controls at runtime in ASP.NET application
Return to Discussion Forum
Post New Message
Category:

Related Messages

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.