Can I modify WebUIValidation.js

Extract from MSDN : You are encouraged to read the script to see more of what is going on. However, it is not recommended that you modify these scripts, because their function is very closely tied to a particular version of the run time. If the run time is updated, the scripts may need a corresponding update, and you will have to either lose your changes or face problems with the scripts not working. If you must change the scripts for a particular project, take a copy of the files and point your project to them by overriding the location of the files with a private web.config file.It is perfectly fine to change this location to be a relative or absolute reference. For more details refer ASP.NET Validation in Depth

How to use the Same DataReader to populate two different ListBoxes

You cannot use the same DataReader to populate 2 Listboxes.But can try out the below workaround VB.NET … cn = New SqlConnection(‘Server=localhost;uid=sa;database=northwind;pwd=’) cmd = New SqlCommand(‘select * from products;select * from products’, cn) cn.Open() dr = cmd.ExecuteReader() ListBox1.DataSource = dr ListBox1.DataTextField = ‘productname’ ListBox1.DataBind() dr.NextResult() ListBox2.DataSource = dr ListBox2.DataTextField = ‘productname’ ListBox2.DataBind() C# … cn = new SqlConnection(‘Server=localhost;uid=sa;database=northwind;pwd=’); cmd= new SqlCommand (‘select * from products;select * from products’, cn); cn.Open(); dr = cmd.ExecuteReader(); ListBox1.DataSource = dr; ListBox1.DataTextField = ‘productname’; ListBox1.DataBind(); dr.NextResult(); ListBox2.DataSource = dr; ListBox2.DataTextField = ‘productname’; ListBox2.DataBind();

How to add an attribute to the Table generated by the DataGrid

VB.NET ’Bind DataGrid DataGrid1.Attributes.Add (‘Description’, ‘This table displays Product Description’ ) C# //Bind DataGrid DataGrid1.Attributes.Add (‘Description’, ‘This table displays Product Description’ ); Note : By doing a ViewSource you can find the Attribute Description for the Table that displays the DataGrid data