943,540 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 8071
  • ASP.NET RSS
May 18th, 2005
0

requiredfieldvalidator problem

Expand Post »
I have created a new ASP.NET application in VB.NET and I have made a login page that is call if the user are not logedd in and rediret to the start page.
In my internal page I have a dinamic menu that is generated by sub that check the database to the list of data.
In my page I must put a new form to make a registration of new user, but it is not possible to make two runat server form in one page, then I have insert all in the same form, but when I click on the menu start the "requiredfieldvalidator" of the form and ask me to insert the required field, but if I click on the mrnu I don't want that this happens.
Who can help me to solve this problem??

Thanks a lot for your attention.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
lorf14plus is offline Offline
20 posts
since May 2005
May 23rd, 2005
0

Re: requiredfieldvalidator problem

I find this a little hard to follow/understand.

Let me see if I get this??

You have a menu system, the user selects registration page? From this menu that selection should then take the user to the registration page??

I am a little confused with this line :
"then I have insert all in the same form, but when I click on the menu start the "requiredfieldvalidator" of the form and ask me to insert the required field, but if I click on the mrnu I don't want that this happens."

What control is the requiredFieldValidator associated with?

Maybe if you provide some code, we could better help you?

A step by step sequence of events in your application would also help.


Quote originally posted by lorf14plus ...
I have created a new ASP.NET application in VB.NET and I have made a login page that is call if the user are not logedd in and rediret to the start page.
In my internal page I have a dinamic menu that is generated by sub that check the database to the list of data.
In my page I must put a new form to make a registration of new user, but it is not possible to make two runat server form in one page, then I have insert all in the same form, but when I click on the menu start the "requiredfieldvalidator" of the form and ask me to insert the required field, but if I click on the mrnu I don't want that this happens.
Who can help me to solve this problem??

Thanks a lot for your attention.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 24th, 2005
0

Re: requiredfieldvalidator problem

OK the problema it's not easy.
I have implement your login page with authentication and validation.
In all pages I have added a menu htat are created dinamically from the database with a form and linkbutton.
In some of page I have the necessity to insert a form to update or insert the date in the database, who can I make it??
I attach the zip with the code of this page.
Thanks a lot for your help
Attached Files
File Type: zip ASP.NET.zip (94.6 KB, 26 views)
Reputation Points: 10
Solved Threads: 1
Newbie Poster
lorf14plus is offline Offline
20 posts
since May 2005
May 30th, 2005
0

Re: requiredfieldvalidator problem

I understand a great deal more what you are trying to do, but you have to understand that with the requiredfieldvalidator there is no way around this. If you have the form up with that control on it and then click the menu, it will fire that event. The only way around it is to do a check but another means other than the requiredfieldvalidator.

Saying that I would recommend that you use a javascript / vb script based menu system instead of trying to do the same thing with asp.net.

Sorry I couldn't give you a better solution, but I am unable to run your code, and looking through it that was the best I could come up with.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 31st, 2005
0

Re: requiredfieldvalidator problem

Thank you for your answer I have made a partial solution with a creation of a fame page where in the headere I create the asp.net menu and in the main I insert my registration form that work perfectly.
I know that it's not the best solution for it but I must study the asp.net command and I don't like to use javascipt. In javascript i have created many of menu dinamically but it's not my intention to do.
I must prepare for an examination at the university an ASP.NET application and I'd like to eliminate any javascipt or putting in only the necessary element of it.
I thank you more for your help. :lol: :lol:
Reputation Points: 10
Solved Threads: 1
Newbie Poster
lorf14plus is offline Offline
20 posts
since May 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: help connecting a form to a database.. error message
Next Thread in ASP.NET Forum Timeline: ASP.Net Directory Problems





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC