We help IT Professionals succeed at work.

How to read detailsview fields values

Harreni
Harreni used Ask the Experts™
on
How to read detailsview fields values

1 minutes ago

Dears,

I have SqlDataSource and detailsView, and I want to read detailsView fields values to use them instead of the dots below:
private void On_Inserted (object sender, SqlDataSourceStatusEventArgs e)

{

SQLDATASOURCE1.InsertParameters.Add("ServerID", ..........................................);

}

Open in new window


Please provide me with examples ..Thanks a lot..
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Something like:

string test =(string)((DataRowView)dv.DataItem)["field name here"];
Hi Harreni,

Please check this out,

http://www.vkinfotek.com/detailsview/detailsview-fields-programmatically.html

Hope this helps.

Thanks.

Author

Commented:
Thanks a lot disrupt and veenaravind for your help