Click here to Skip to main content
15,911,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I wants to append text with database value at time of binding in template feild in datrgrid ..

Bind("Databasefeild")

It is running
but I wants
Some text + Bind("Databasefeild")

How Will I do ?

Please help me ?
Posted

1 solution

Hi,
You can do using this code:
<asp:label name="SS" text="<%# GetAppendedText(Bind(" databasefeild=")) %>" ..="" xmlns:asp="#unknown">

and in your code behind:

C#
public string GetAppendedText(string Databasefeild)
{
   //TODO write code to return your string 
   //append text or edit value and then send it back
}


I hope it will help,
Cheers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900