In a text field in ASP.NET how would I concatenate a string with a variable, method call, or database entry?
For example:
Text="<some string> + MethodCall()"
Text="<some string> + variable"
In a text field in ASP.NET how would I concatenate a string with a variable, method call, or database entry?
For example:
Text="<some string> + MethodCall()"
Text="<some string> + variable"
To concatenate a string with a database entry in a repeater:
Text='<%# "Entry: " + ((<class name storing database values>)Container.DataItem).Entry%>'>
To concatenate a string with a database entry outside a repeater:
Text='<%# "Entry: " + <class name storing database values>.<Get Entry Name Method>%>'>
To concatenate a string with a method:
Text='<%# "Entry: " + <method name>%>'>
The method should return a string.