They all have validationgroup1. I am using a radiobuttonlist control instead of separate radio buttons which is why all the validation groups are 1. Sounds like that could be the problem. Should i use 2 radio buttons instead?
You really are a genius! I changed it to separate rb and validationgroups 1 & 2. That worked but it is not requiring me to enter the info even though it says it is required. i can click submit and it moves on.
Ok thi problem is caused cause the button must have a validation group, but which one ?
Here's how to procee remember in our code behind we have which validation to enable and to disable all the rest, add the validationgroup to the button accordingly
Mwaning if ur enabling rfv1.enabled = true
write down
button.validationgroup = "1"
awaiting ur feedback
Regards
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.
Marked as answer by carla-rae on Mar 09, 2007 08:34 AM
you are forever my hero. [:D] Trial and error helped me figure out which one (couldn't look at the code and tell). When I grow up, i want to have your brain for programming!
i have a question that is simple and i believe i know the answer. i plan to have this form save the info as an xml file and then email it to the owner. is that realistic or will it cause headaches? it seemed the easiest and quickest way to get the info to
him.
I was looking up information when I got your post and had realized the same thing you told me. Thank you for everything. I'll use the code and test it later today. It's almost 5:30 am and I think i can finally sleep knowing the main source of my irritation
has been solved. [|-)] Hope you don't mind I've added you to my favorites. One day soon I'll be able to help someone else because of you!
carla-rae
Member
2 Points
18 Posts
Re: Web Form Dilemma
Mar 09, 2007 07:23 AM|LINK
New Designer
Ramzi.Aynati
Contributor
2240 Points
531 Posts
Re: Web Form Dilemma
Mar 09, 2007 07:36 AM|LINK
yes , i gave u an example, use radiobuttons and u can bind them by their property groupname, like this they'll act same as radiobuttonlist
awaiting ur reply
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.
carla-rae
Member
2 Points
18 Posts
Re: Web Form Dilemma
Mar 09, 2007 07:47 AM|LINK
New Designer
Ramzi.Aynati
Contributor
2240 Points
531 Posts
Re: Web Form Dilemma
Mar 09, 2007 08:08 AM|LINK
hehe Thanx carla
Ok thi problem is caused cause the button must have a validation group, but which one ?
Here's how to procee remember in our code behind we have which validation to enable and to disable all the rest, add the validationgroup to the button accordingly
Mwaning if ur enabling rfv1.enabled = true
write down
button.validationgroup = "1"
awaiting ur feedback
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.
carla-rae
Member
2 Points
18 Posts
Re: Web Form Dilemma
Mar 09, 2007 08:39 AM|LINK
you are forever my hero. [:D] Trial and error helped me figure out which one (couldn't look at the code and tell). When I grow up, i want to have your brain for programming!
i have a question that is simple and i believe i know the answer. i plan to have this form save the info as an xml file and then email it to the owner. is that realistic or will it cause headaches? it seemed the easiest and quickest way to get the info to him.
New Designer
Ramzi.Aynati
Contributor
2240 Points
531 Posts
Re: Web Form Dilemma
Mar 09, 2007 09:10 AM|LINK
Hehe, u will... [;)]
Concerning mailing the info, well ther's a way, but u cannot save to XML, coz u have no structered data.
I can give u the code to save ur forms data into a string, and then u can send a mail with this string as body.
Try this
Dim SW as new System.IO.
StringWriterdim HTW as System.Web.UI.HtmlTextWriter =
new System.Web.UI.HtmlTextWriter(SW)Form.RenderControl(HTW)
dim body as string = sw.Tostring() ' All the form content as shown in the page will be included in body
In order for not throwing an error include the following in ur codeBehind
and leave it empty as is
Public
Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
' Confirms that an HtmlForm control is rendered for the ' specified ASP.NET server control at run time. End SubGlad to be of help Carla
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.
carla-rae
Member
2 Points
18 Posts
Re: Web Form Dilemma
Mar 09, 2007 09:27 AM|LINK
I was looking up information when I got your post and had realized the same thing you told me. Thank you for everything. I'll use the code and test it later today. It's almost 5:30 am and I think i can finally sleep knowing the main source of my irritation has been solved. [|-)] Hope you don't mind I've added you to my favorites. One day soon I'll be able to help someone else because of you!
Thanks again Ramzi! [cool][Yes]
New Designer
Ramzi.Aynati
Contributor
2240 Points
531 Posts
Re: Web Form Dilemma
Mar 09, 2007 09:44 AM|LINK
Of course you will.
Glad to be of help carla, Good Night. [:D]
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.