|
-
Dec 10th, 2002, 07:09 PM
#1
Thread Starter
New Member
ASP.Net Problem with Linkbutton commandargument
I am trying to send command arguments when a linkbutton is clicked. I am having no problem sending a string as follows:
commandargument="Some String"
and I have no problems sending a bound value scuh as:
commandargument=<%# DataBinder.Eval(Container.DataItem, "SOME_VALUE")%>
Where I have a problem is in my desire to combine the two. I want to concatenate a string with the bound value. I continually get tag not properly formed errors or the binding string itself is returned. I have tried single quotes, double quotes, combinations of the two as follows:
commandargument="Some String" + <%# DataBinder.Eval(Container.DataItem, "SOME_VALUE")%>
commandargument="Some String"<%# DataBinder.Eval(Container.DataItem, 'SOME_VALUE')%>
commandargument='Some String<%# DataBinder.Eval(Container.DataItem, "SOME_VALUE")%>'
commandargument="Some String<%# DataBinder.Eval(Container.DataItem, "SOME_VALUE")%>"
CAN THIS BE DONE??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|