Armando, you need to test your radio button list items using a foreach statement... Im more confortable with C#, if you are a VB person try to convert the below code to VB syntax protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { foreach (ListItem li in RadioButtonList1.Items) { if (li.Selected == true) { //execute some instruction } } } } Le me know if you are still confused Nila Fridley
Use a compare validator control[^] since there are only 2 option's, using this control this will be easy. "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine. M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
just an fyi- make sure you provide the html control name when incorporating it within the script string... server controls sometimes take a different name once the result page is sent from the server back to the client. Now, why would anyone be interested in server-side validation? Postbacks are very inefficient! To validate without making round trips to the server, look into using validation controls such as RegularExpression or CompareValidator. Nila Fridley
If the control is called LoginName by doing ToString will return the internal name for LoginName on the control create a public string Text { get { return(name); } } or override ToString inside the control to return the name Hope this helps Al My eMail control My Blog
Just write a java script function and call it in code behind "Aim to go where U have never been B4 and Strive to achieve it" http://groups.yahoo.com/subscribe/dotnetforfreshers http://himabinduvejella.blogspot.com
There are many ways to do this. The quit and dirty would be to pass the values via sessions or thru the url string. ex. myfirstpage.aspx?mybox1=value Hear,See,Learn,Understand,Practice Many can be good,but only ONE can be the best keep practicing
_radiobuttonlistname_.SelectedValue regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
Response.Redirect or Server.Transfer depending of what exactly you need to do. See Server.Transfer Vs. Response.Redirect[^] for more details. regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
Hi there, You can hook on KeyPress event on these 2 textboxes by using js. In the js code, you can do a comparision of these 2 textboxes, if equal, using window.open(....) to open a new page... Hope u get the idea... << >>
Just a suggestion, but IMO it's not the best ;P save the page's content into a hidden field before generating the page. Then, when user clicks on the button, just copy the value of the hidden field to the clipboard. Hope it gives u an idea... << >>
OOH RIGHT ¡¡¡ It really works this way... I saved my pictures in my server and wrote the path in the SQL TABLE COLUMN ...i still prefer to retrieve the picture and its name saved in the table 'cause I have allready developed an application for upload images to a SQL DB and I wish to use it THANX FOR UR TIME ¡¡¡