Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old March 3rd, 2010, 09:00 AM
Imar's Avatar
Wrox Author
Points: 66,632, Level: 100
Points: 66,632, Level: 100 Points: 66,632, Level: 100 Points: 66,632, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,124
Thanks: 65
Thanked 1,386 Times in 1,366 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!
Reply With Quote
  #22 (permalink)  
Old March 3rd, 2010, 09:08 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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
Reply With Quote
  #23 (permalink)  
Old March 3rd, 2010, 09:19 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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.
Reply With Quote
  #24 (permalink)  
Old March 4th, 2010, 04:44 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

where are you guys ?
Reply With Quote
  #25 (permalink)  
Old March 4th, 2010, 04:55 AM
samjudson's Avatar
Friend of Wrox
Points: 8,436, Level: 39
Points: 8,436, Level: 39 Points: 8,436, Level: 39 Points: 8,436, Level: 39
Activity: 25%
Activity: 25% Activity: 25% Activity: 25%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,084
Thanks: 1
Thanked 180 Times in 179 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?
Reply With Quote
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 4th, 2010)
  #26 (permalink)  
Old March 4th, 2010, 05:12 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

So I suggest I'll bring my problems here of my project.
Reply With Quote
  #27 (permalink)  
Old March 4th, 2010, 11:11 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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 12:59 PM.
Reply With Quote
  #28 (permalink)  
Old March 4th, 2010, 12:55 PM
samjudson's Avatar
Friend of Wrox
Points: 8,436, Level: 39
Points: 8,436, Level: 39 Points: 8,436, Level: 39 Points: 8,436, Level: 39
Activity: 25%
Activity: 25% Activity: 25% Activity: 25%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,084
Thanks: 1
Thanked 180 Times in 179 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?
Reply With Quote
  #29 (permalink)  
Old March 4th, 2010, 01:02 PM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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");
Reply With Quote
  #30 (permalink)  
Old March 4th, 2010, 01:04 PM
samjudson's Avatar
Friend of Wrox
Points: 8,436, Level: 39
Points: 8,436, Level: 39 Points: 8,436, Level: 39 Points: 8,436, Level: 39
Activity: 25%
Activity: 25% Activity: 25% Activity: 25%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,084
Thanks: 1
Thanked 180 Times in 179 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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06: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 04: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 06:27 AM
return type? Sibananda Tripathy J2EE 1 January 3rd, 2005 03:03 AM



All times are GMT -4. The time now is 05:51 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.