Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / January 2005

Tip: Looking for answers? Try searching our database.

Using " '  ' /' /' " in RegisterStartupScript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick Marti - 27 Jan 2005 23:35 GMT
The function bellow is really ok as long I only write a text in the
document.write(). But I wish to place also a image on my frame side, but for
it I need to have in "  " another " " and maybe in thats again the " " I
think it should be a way for my pic

Many thanks for help
Greetings
Patrick Marti

==================================
// I had to cut a bit my function to show here
==================================

private void Page_Load(object sender, System.EventArgs e)
{
   scriptString += "function ShowPic(){";
   scriptString += "document.write('Mein Bild')";
    "...  document.write(<img src=C:/Inetpub/wwwroot/A/Ima/Gr1.jpg>)}";
    .......................
    this.RegisterStartupScript("Startup", scriptString);
==============================================
"Patrik Löwendahl [C# MVP]" - 28 Jan 2005 10:14 GMT
When inserting " in C# strings you should prefix it the " with a \.

so:

string s = "Hello \"world\"";

as an example

Signature

Patrik Löwendahl [C# MVP]
http://www.lowendahl.net/ || http://www.cshrp.net
Please reply only to the newsgroup.

> The function bellow is really ok as long I only write a text in the
> document.write(). But I wish to place also a image on my frame side, but for
[quoted text clipped - 17 lines]
>      this.RegisterStartupScript("Startup", scriptString);
> ==============================================

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.