Get a single value from dataSet in asp.net Get a single value from dataSet in asp.net asp.net asp.net

Get a single value from dataSet in asp.net


Probably, like following code part you can get the Title and try this coding before

rptList.DataSource = ds;  rptList.DataBind();  

The following code part can get the Title from dataset

string title = ds.Tables[0].Rows[0]["Title"].ToString();


string title = ds.Tables[0].Rows[0][0].ToString();

I used the index instead of the title name. Personal preference.


Not sure what you mean by decrypt but if you want to modify the Title by applying some logic on it then instead of binding text with Title you can create a method which takes Title as input and returns the decrypted text. You can bind you label to this method, passing it the Title.