If you only allow the use to select one item, you may use the RadioButtonList control instead. You can use a datasource control to feed to the RadioButtonList, or programmatically bind data to the control using the DataSource property and DataBind method. You can read more about how to use this control in MSDN.
25th October 2006 (pivot)
23rd May 2007
30th May 2007
27th June 2007
the last four date info should actually be populated from checkboxlist or radiobuttonlist. user should only be able to select only one date and not more than 5 events. i need to capture event name and their preferred date.
i am at lost when binding the data to checkboxlist
You'll have many ways to check if the user select one or more items:
+ Use the server side code to count the number of the selected checkboxes in the Items collection.
+ Keep using the radiobuttonlist, but may consider adding another checkbox and place it right at the beggining of the category name to give the user an option to not choose any item.
Try doing a search on this site or elsewhere. Threading is a common knowledge area, you should find plenty of examples. Be warned though, you may actually have to do some reserch, thinking and work on your own.
I have performed two way sorting on Datagrid and its working very smoothly(When we first click on header of any column, grid wil b sorted in Acsending Order and when we clcik second time on column header, grid will be sorted in descending order).
Now what I need is that there should be two Arrows Up/Down with each header of Datagrid, Now if we click on Down Arrow the Grid should be sort in Descending Order and When we click on Up Arrow datagrid should be sorted in Ascending Order.
Thanks for your reply BUT this all I have done, I need to have two Arrow Buttons with each Column Header and when user click on Up Arrow grid should be sorted in Ascending order and vice versa. I hope its clear now...
I am told to convert all the response which is coming from server which is in aspx format to html format and then display. the purpose of doing like this is to increase the browsing speed. All the link in the web page is linked to their respective .html files. Can anyone tell me how to do this.
If you want to speed up the site there are other steps you can take. Try reading "Speed Up Your Site" by these guys: http://www.websiteoptimization.com/speed/. This book is really good even though it is a couple years old. It's worth the read.
In .net you can disable viewstates if your are not using them and try to keep your control IDs shorter. The less characters that are sent to the client the faster the site will be.
Although, if your .aspx pages are NOT "doing" anything then static HTML pages would be faster as it won't have to process any code server side.
I know its possible to provide security for ASP.NET webservice through Security settings provided by IIS. But I would like to know how to secure each individual [WebMethods] methods requset that arrive from disparate client.