at ur datagrid ItemDataBound event
if(e.Item.ItemT ype == ListItemType.He ader)
CheckBox chBox = new CheckBox();
chBox = (CheckBox)e.Ite m.FindControl(c ontrol name);
if this is checked then...
if(e.Item.ItemT ype == ListItemType.It em)
either loop into all rows or else if possible get the instance of that
column where checkbox is present and check all the boxes...
...
User Profile
Collapse
-
The server name or address could not be resolved'.
hi,
I had a web proj which i overwrite with another copy of solution from a n/w place
to update the files...
but after doing this the web doesnt load...
all other web applications doesnt have this probs...
the err msg is get is :-
The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/Servicing'. 'The server... -
vinaykeshav replied to How to retrieve all the records from database into textboxes using dataadapterin .NETdeclare an int global..
private static int i =0;
at next u increment and at back u decrement it..
txtname.Text =ds.Tables[0].Rows[i][0].ToString();
txtroll.Text =ds.Tables[0].Rows[i]["roll no"].ToString();
this might help u.....Leave a comment:
-
-
Drop a DataGrid Web control onto the page and resize it to the size you would like.
Then drop an HTML Label Control onto the page. This is the same as a <div>. I am using the html version, since I do not need any of the extra features (or overhead) associated with a Web control. I would recommend giving this control an id, so that it is easier to find when making further changes.
Next, I can drag the datagrid...Leave a comment:
-
then u can tk the instance of form and u get its state like minimized or max..
which u can use as event.....Leave a comment:
-
to view the list u need to use the listbox / datagrid ,,, u can display all items inside the textbox using a comma seperator......Leave a comment:
-
-
txtname.Text =ds.Tables[0].ds.Tables["details"].Rows[0]["name"].ToString() ;
txtname.Text =ds.Tables[0].ds.Tables["details"].Rows[0]["roll no"].ToString() ;
please specify the row no like zeroth .....Leave a comment:
-
for a textbox i am sure that u wil not fetch more than one row of data
so,,..
[CODE=cpp]connection = new SqlConnection() ;
connection.Conn ectionString = "Persist Security Info=False;" +
"Integrated Security=SSPI;d atabase=northwi nd;" +
"server=localho st;Connect Timeout=30";
connection.Open ();
dataadapter = new SqlDataAdapter( "select * from customers", connection);...Leave a comment:
-
In SQL Query Analyzer, back up a database by running the following command:
BACKUP DATABASE DatabaseName TO TAPE = TapeDriveName WITH FORMAT, BLOCKSIZE=65536 , NOUNLOAD
Notes• This command formats the tape with a block size of 64 KB. Therefore, the tape can be used by SQL Server 2000 and Windows Server 2003.
try to backup using above cmd and try restoring .....Leave a comment:
-
u should have the virtual directory for ur appln and pt it to the actual web dir at the iis
and also the windows auth user should be administrator or should have admin
privilages......Leave a comment:
-
as i read the solutions from others ..
it seems that u cant decide the no of cols at design time.
if u need to use a single datagrid and when ur bindind datagrid u cant add cols at runtime...
so the solution is that the datasource should b having the constant no of cols
before binding... so at some case if for example a col name appears for some case and doesnt for others then at the case where it doesnt appear u should...Leave a comment:
-
in the example i have provided it uses the dataadapter itself,
and datagrid is a control where the data is getting binded...Leave a comment:
-
[CODE=cpp]connection = new SqlConnection() ;
connection.Conn ectionString = "Persist Security Info=False;" +
"Integrated Security=SSPI;d atabase=northwi nd;" +
"server=localho st;Connect Timeout=30";
connection.Open ();
dataadapter = new SqlDataAdapter( "select * from customers", connection);
dataset = new DataSet();
dataadapter.Fil l(dataset, "table1");...Leave a comment:
-
our .mdf file may b corrupted..
first tk a backup of some other db and while restoring make sure the name of the db is same......Leave a comment:
-
create a dummy db under ur db server and then on right click u have the
option to restore the database.. using this u can achieve thisLeave a comment:
-
if u have an date col under this table then..
select top 5 * from test order by desc of date colLeave a comment:
-
DataTable dt =new DataTable();
dt=ds.Tables["details"];
//ds.Tables["details"].NewRow();
dt.NewRow();
that was the gud soln to the probs i thought u could have done this..
thats taking new row from the datatable instead of ds..Leave a comment:
-
how are you binding data to ur datagrid is it using list ?
and y do u want to create column at runtime...Leave a comment:
No activity results to display
Show More
Leave a comment: