473,396 Members | 2,098 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,396 software developers and data experts.

Converting Web Site to Web Application (AJAX web service goes missing)

I have just completed (almost) an exercise to convert a web site to a web
app (acedemic reasons - just to see the differences).

A few bumps on the road such as copying class files to the new solution and
wondering for a while why the classes did not show up. It was because the
properties for the class file were "content" rather than "compile". Also
copied all my images to a newly created image folder outside the IDE. There
is no context menu item to refresh a folder in the Web App so it was out of
the car and back in to fix that.

One problem remains. I have Javascript code to log some information. In
the Web site code it works great. You have to add the
<System.Web.Script.Services.ScriptService()_ (using VB) attribute to the
class file for the web service and it then works. I copied the same code to
the Web App and when I do the Javascript call it fails saying it cannot find
the Web Service.

Any ideas??

I have not posted code until someone lets me know what parts of the code are
needed for helping.

Thanks,
Lloyd Sheen

Nov 15 '07 #1
1 1247
PS

http://www.asp.net/learn/ajax-videos/video-82.aspx

This is where I got original code to convert web service to be used from
AJAX.

LS
"Lloyd Sheen" <a@b.cwrote in message
news:uJ**************@TK2MSFTNGP04.phx.gbl...
>I have just completed (almost) an exercise to convert a web site to a web
app (acedemic reasons - just to see the differences).

A few bumps on the road such as copying class files to the new solution
and wondering for a while why the classes did not show up. It was because
the properties for the class file were "content" rather than "compile".
Also copied all my images to a newly created image folder outside the IDE.
There is no context menu item to refresh a folder in the Web App so it was
out of the car and back in to fix that.

One problem remains. I have Javascript code to log some information. In
the Web site code it works great. You have to add the
<System.Web.Script.Services.ScriptService()_ (using VB) attribute to the
class file for the web service and it then works. I copied the same code
to the Web App and when I do the Javascript call it fails saying it cannot
find the Web Service.

Any ideas??

I have not posted code until someone lets me know what parts of the code
are needed for helping.

Thanks,
Lloyd Sheen
Nov 15 '07 #2

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

Similar topics

19
by: Jon Davis | last post by:
I'm reposting this because I really need some advice. I have a web app that makes many queries to the database on every page. In order to save development effort, I've consolidated all database...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
4
by: www.gerardvignes.com | last post by:
I'd like to join or start a small group of Ajax web developers who are willing to smoke test each others Ajax applications, quid pro quo. I can smoke test on W2K SP4 with IE6, FF2, SM 1 and O9. ...
19
by: nyhetsgrupper | last post by:
Hi, Which project type do you prefer? Is the web site or web application project the best solution? The application I am about to write is completly new so migrating from vs 2003 is not an issue,...
0
by: RubyRue | last post by:
New to developing. We are working on a project using asp.net and c# where data is pulled out of an sql database via multiple tables and displayed via a details view. The user can then update the...
5
by: Gav | last post by:
I'm writing a windows application (using C# VS 2005 Pro) to access a MS SQL database and although it is working fine (up to now) I'm not sure I'm going about it in the best way. Can anybody point...
1
by: Lloyd Sheen | last post by:
When I use VS 2005 Pro I have the following happen: 1: File / New Project I get two "installed" templates ASP.NET web application and ASP.NET web service 2: File / New Web Site I get...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or...
1
by: =?Utf-8?B?SG93YXJkIFBpbnNsZXk=?= | last post by:
I'm trying to convert a Web Site to the Web Application project model and I'm running into compile errors that do not seem to be covered by the guidance I found at "Converting a Web Site Project to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.