The code you have gets the value from the database.
You can use a datareader or dataset to get the value and use in
.cs
file.
For example if you have used a repeater control then in
ItemCommand
event or
ItemDataBound
event you can get that value something like
string title=DataBinder.Eval(e.Item.DataItem,"Title").ToString();