please help with syntax

  • Thread starter Thread starter Mario Krsnic
  • Start date Start date
M

Mario Krsnic

Hello everybody,
I would like to write in the codebehind the following html-code:
<img src="folder/default.aspx?src=image.jpg&code=5&id=2" style="width: 39px;
height: 19px;">&nbsp;<br />
so that it appears in a textbox. How to do it?
Thank you!
Mario
 
Check out
Me.RegisterStartupScript

This will programatically add the html on startup for the aspx page from the
codebehind.
 
Harry,
This will programatically add the html on startup for the aspx page from
the codebehind.

I do not want to add the html on my page. I want to offer to the visitors in
a textbox this html-code, so that they can insert this code in their pages.
The problem is that I am not able to write this code as codebehind to appear
in the quoted way. What should I write in the codebehind to get in the
textbox this:
<img src="folder/default.aspx?src=image.jpg&code=5&id=2" style="width:Mario
 
TextBox1.Text = @"<img src=""folder/default.aspx?src=image.jpg&code=5&id=2""
style=""width:39px; height: 19px;"">&nbsp;<br />";
 
Thank you , Saber,
that is what I need!

Saber said:
TextBox1.Text = @"<img
src=""folder/default.aspx?src=image.jpg&code=5&id=2"" style=""width:39px;
height: 19px;"">&nbsp;<br />";
 
Back
Top