Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I am having trouble assigning the following string to

the literal control on my page.

 

<TABLE id="Table1">

<TR><TD><DIV>

<asp:Literal ID='litJob' Runat='server'></asp:Literal>

</DIV></TD></TR>

</TABLE>

 

In the code behind I have the following

 

strVal = "<asp:LinkButton CommandName='Job_Cd'

onfiltered='LinkButton_Command' runat='server'

Text='Food & Lodging' CommandArgument='35000000'

id='lb10'></asp:LinkButton>"

 

litJob.text = strVal

 

When I run the page nothing shows up. When I do a view

source on the page, I can see the above string, but in

a garbled form.

 

Can't I assign <asp:> class object descriptions to a

literal or a label?

 

Thank you,

 

Burak

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...