|
try this code.
sqlDataAdapter da = =new sqlDataAdapter("Select col from tbl_test',conn);
Dataset ds = new DataSet;
da.fill(ds,"tab");
DataTable dt = new DataTable();
dt = ds.table(0);
DataRow dr = DataRow();
for each dr in dt.rows
Messagebox.show(dr.row[o].ToString());
next
|
|
|
|
|
sorry man...
more errors in your coding...
1. we cant user DataRow dr=DataRow();
2. there is no messagebox.show in asp.net 2.0
Can anyone help me plz?
i needed : i have set of values in my dataset and i want to create new row in datatable and insert the dataset value one by one. i.e., if dataset consist of 10 values, then ten rows is to be created and the row[0].column[0] to row[9].column[0] should contain the dataset values.
|
|
|
|
|
|
Can anyone suggest some good, online DNN resources? I'd like an architectural overview, i.e. how modules fit into a portal framework etc. as well as some guidelines for using standard modules. The official online documentation is only describable as sad.
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Can anybody explain about the caching and its types. What r the differences among the output caching, fragment caching and application caching. And What abt Data caching. tnx in adv.
Balasubramanian K.
|
|
|
|
|
Explained in your latest post.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi friends i have an issue with grid view update functionality
The problem is when i edit one of my grid view columns and click update
The GridView1_RowUpdating method which contains the
string textlastname = ((TextBox)GridView1.Rows[e.RowIndex].FindControl("TextBox1")).Text;
returns the old value in the column instead of the newly edited value.
I need to get the newly edited value in the textlastname.
TextBox1 is the id of the control
Any help is highly appricated
praveen
|
|
|
|
|
check the "textlastname" value before update and by default set textlastname=""
|
|
|
|
|
|
hi friend
this is wrong method.
you want to retrive data from GridView.
first you select row.
then select column.
|
|
|
|
|
how to implement dialogbox using javascript ?
dheeraj
|
|
|
|
|
check here:<a href="http://www.codeproject.com/KB/scripting/Tabbed_dialog_Javascript.aspx">http://www.codeproject.com/KB/scripting/Tabbed_dialog_Javascript.aspx</a>[<a href="http://www.codeproject.com/KB/scripting/Tabbed_dialog_Javascript.aspx" target="_blank" title="New Window">^</a>]
|
|
|
|
|
|
|
|
is the visible property of your control set to true?
Is the container in which you are displaying this control set to visible?
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
The visibility of the control set to true.but the control is not displayed.the control is a share piece captcha control.the control in design is given by me in the early post.but when we run the page the control cannot display the random number we have to enter and check.plaese help me.
|
|
|
|
|
hi,
how to block right click for a particular textbox using javascript in firefox to prevent copy/paste option.
Ashok
|
|
|
|
|
|
|
hi,
i dont need to block right click for the whole page all r giving this one. i need only to block for a particular textbox
Ashok
|
|
|
|
|
Also try this:
oncontextmenu="return false;", put that in the body tag of your page
|
|
|
|
|
hi,
ya i m using this only. but if i use this, i cannot right-click for a whole page. i need only to block for a particular textbox not for whole page
Ashok
|
|
|
|
|