473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

please help with syntax

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
Jan 2 '07 #1
4 988
Check out
Me.RegisterStartupScript

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

"Mario Krsnic" <pd********@sofortsurf.dewrote in message
news:en**********@online.de...
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


Jan 2 '07 #2
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:
>39px; height: 19px;">&nbsp;<br />
Mario
Jan 2 '07 #3
TextBox1.Text = @"<img src=""folder/default.aspx?src=image.jpg&code=5&id=2""
style=""width:39px; height: 19px;"">&nbsp;<br />";

"Mario Krsnic" <pd********@sofortsurf.dewrote in message
news:en**********@online.de...
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


Jan 3 '07 #4
Thank you , Saber,
that is what I need!

"Saber" <saber[.AT.]oxin.irschrieb im Newsbeitrag
news:uq**************@TK2MSFTNGP02.phx.gbl...
TextBox1.Text = @"<img
src=""folder/default.aspx?src=image.jpg&code=5&id=2"" style=""width:39px;
height: 19px;"">&nbsp;<br />";

"Mario Krsnic" <pd********@sofortsurf.dewrote in message
news:en**********@online.de...
>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



Jan 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: sam | last post by:
When I run this SQL query: SELECT u.*, o.* FROM users u, orders o WHERE TO_DAYS(o.order_date) BETWEEN TO_DAYS('2003-09-20')-10 AND TO_DAYS('2003-09-20')+10
72
by: Raymond Hettinger | last post by:
Peter Norvig's creative thinking triggered renewed interest in PEP 289. That led to a number of contributors helping to re-work the pep details into a form that has been well received on the...
30
by: Martin Bless | last post by:
Why can't we have an additional 'print' statement, that behaves exactly like 'print' but doesn't insert that damn blank between two arguments? Could be called 'printn' or 'prin1' or 'prinn'...
4
by: Scotter | last post by:
Hi folx - Here is the code I'm trying (but it errors out with "Item cannot be found in the collection corresponding to the requested name or ordinal."): ...
9
by: Martin | last post by:
Due to the the large numbers of MS trained programmers unemployed we are looking at using MS Development environments. VB programmers are currently 10 a penny. However I find C a bit more...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
16
by: Ding Lei | last post by:
Dear fellows, I am currently a Java programmer, using it for around 3 years, & felt quite bored with it. IMHO, Java is too strict on lots of things, unlike Perl, There is usually only one or two...
2
by: Erik | last post by:
Hi Everyone, I'm having real problems compiling some source for eVC4++. The errors I am getting are below: It all seems to be centred around winsock. If I move the afsock.h reference to before...
7
by: Jeff | last post by:
Hi - For my VB.NET app, I have a SQL2K database that I use to create a dataset with multiple data tables. I've created a dataview (dvReportsTo) of one of the tables, SCPMaster, and I've bound a...
7
by: =?Utf-8?B?QWxleGFuZGVy?= | last post by:
Hi! I want to learn C# in the near future. But for now, I would be more than happy if someone could translate this short c# source code into c++. (I searched the web for c++ equivalents but after...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.