Showing posts from February, 2012
if you want to add style on Grid Rows in asp.net using c# just copy and past the below code in your .cs file. protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow…
if you want to hide a button in asp.net after some action here is the code just copy and past it in your .cs file. button1.Visible = false;
it is very Cool to highlight your code or just format your code in such a way that it should looks easy to every one and understandable to user. here is the Code lines if you want to use Code highlighter in your BLOGGER. Just copy it and follow the …
Below code will check that if there is no record in Data table than it will add a new row in data Grid to show a message that there is no Record in the DataTable. Just Copy and past the Code. grd_abc.DataSource = ds.Tables["abc"]; …