Wrox Programmer Forums
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2010, 10:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Take a look at this:

<script type="text/javascript" src="http://localhost:51900/uu1/Default.aspx"
/>

I don't know why, but some browsers don't like the self closing tag in script elements. Try this instead:

<script type="text/javascript" src="http://localhost:51900/uu1/Default.aspx"></script>

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 3rd, 2010, 10:08 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

I worked from the localhsot, I wonder what happened to do that, because I tried yesterday and did no work.. Thanks alot
 
Old March 3rd, 2010, 10:19 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Thumbs up

Thanks alot for care of me,
and big Thanks to Mr. samjudsun.

Actually I have a graduate project with my students, and that project is "advertisement network"
Details:
The project is that advertisers give us their ads ( advertisement ), and then publishers take ads from us, It's similar to google adsense one.
so we provide the publisher an ad code, then he embed it in his website pages. To make the process is easy for the publisher, that code is in javascript, and has similar idea of the adsense one.

We had some difficulties in how that code will get ads from our server. But now is solved.

Required, 1) please guide us if we had an error concepts/ideas in our project
2) guide us to a code in javascript where we can develop the required code to be delivered for the publisher.

We hope we walk in the right way, if you have not understood us well, I suggest I have to clarify more. We'll regard you as a 2nd supervisor of our project, we will write your name in the documentation.

similar idea websites: http://www.adbrite.com , http://www.google.com/intl/en/ads/

Abdul-Rhman A. Alsri, Yemen, Hadhramout, Tareem.
 
Old March 4th, 2010, 05:44 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

where are you guys ?
 
Old March 4th, 2010, 05:55 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I help out on these forums for fun - if you have a specific problem then I'll try and help, but I'm not here to do the work for you.

If you don't know how to do something then can I suggest that it would be a bad idea to set it as an assignment for your students - how can you help them if you likely don't even understand the question.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 4th, 2010)
 
Old March 4th, 2010, 06:12 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

So I suggest I'll bring my problems here of my project.
 
Old March 4th, 2010, 12:11 PM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Code:
Response.Write(@"document.writeln(""<html><head><style type='text/css'></style></head><body>Hi msman88</body></html>""); ");
On the above I got only the following is printed on the browser:
Code:
document.writeln("Hi msman88");
I want to print it as string as it appears below:
Code:
document.writeln("<html><head></head><body>Hi msman88</body></html>");
So, edit the code to do that.

Last edited by msman88; March 4th, 2010 at 01:59 PM..
 
Old March 4th, 2010, 01:55 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Looks fine to me. You are after all outputting some Javascript - which is then running. And that javascript is then outputting some HTML, which the browser is parsing, and the only thing you see is the visible text, not the raw HTML.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old March 4th, 2010, 02:02 PM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Thumbs up

Sorry, I posted the code above with some mistakes, now I edited it.

changes:
Code:
Hi msman88
to
Code:
document.writeln("Hi msman88");
 
Old March 4th, 2010, 02:04 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I'm sorry, I have no idea what your problem is? Is this what you want to appear, or what IS appearing? I'm confused.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
he conversion of a char data type to a datetime data type resulted in an out-of-range adamhw Classic ASP Basics 3 December 23rd, 2009 07:18 AM
Method must have a return type Mr.Rendezvous BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 2 November 25th, 2009 05:21 PM
return type as Form neriam Beginning VB 6 1 August 9th, 2009 02:25 AM
Generic return type mega C# 2005 1 November 30th, 2006 07:27 AM
return type? Sibananda Tripathy J2EE 1 January 3rd, 2005 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.