I do it like this:
Sub
If Not methodInput = "" Then
SubmitButton.CommandArgument = methodInput
End If
End Sub
Steve
>I am collecting a querystring in the onPageLoad and I want to supply that to
>the CommandArgument. I have a protected variable named methodInput in the
>codebehind I assign the query string to. I know we can't use <%%> in a
>server tag... is there a way to accomplish this?
>
><asp:LinkButton id="SubmitButton" CommandName="submit"
>CommandArgument='<%=methodInput%>' OnCommand="DoSubmit"
>runat="server">Submit</asp:LinkButton>
>
>Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 |
>[EMAIL PROTECTED]
>
>
>*************************************************************************
>PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
>for the exclusive use of addressee and may contain proprietary,
>confidential and/or privileged information. If you are not the intended
>recipient, any use, copying, disclosure, dissemination or distribution is
>strictly prohibited. If you are not the intended recipient, please notify
>the sender immediately by return e-mail, delete this communication and
>destroy all copies.
>*************************************************************************
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
--
<mailto:[EMAIL PROTECTED]>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/