Client Side Script Problem

C

comzy

Hi all,
I have a peculiar problem. After migrating my existing asp.net
2003 project to 2005 my project works fine without any problem. The
moment i thought of debugging it i came to face this peculiar problem
which is as follows.

when i run the project by typing the URL dirctly in the browser i can
see the following line in the view source:

<script src="/aspnet_client/system_web/2_0_50727/WebUIValidation.js"

Bu when i tried to run directly from the VS.NET 2005 IDE this line is
not getting included. can anyone help me out to solve this problem.

Thanks ,
Shiva.
 
N

Nathan Sokalski

Is the URL that you type directly in the browser exactly the same as the one
that the VS IDE uses (I would double check this)? Also, I would double check
your code for syntax errors, if the code you are being shown is

<script src="/aspnet_client/system_web/2_0_50727/WebUIValidation.js"

then you might want to add the closing ></script> in case this
is causing it to show the code (why it would show it in one scenario and not
the other, I don't know, but you would need to fix it either way). Also,
when it shows the code, does it display any errors along with it? If it
does, take a look at them to see if they help you in any way. I can't really
give any more suggestions without any more info, so good luck, if these
don't fix the problem try posting back with the results to my suggestions.
 
C

comzy

Dear Nathan,
Thanx for your reply. I gave the script for just a
reference. Am working as a System Architect and i have tried my all
possibilities. To be precise the WebUIValidation.js is getting
included when called from IIS by hitting the URL in the browser but
when i just directly run from the VS.NET 2005 IDE it is not including
the file and the it shows the error when it encounters the javascript
function which i have included in WebUIValidation.js file which
Microsoft has added them till V1.1 and i know now they are not
including the script in v2.0 instead they are referencing through
WebResource.axd handler.

My only question is why WebUIValidation.js is not getting included when
i run directly from the VS.NET 2005 IDE? Is there any common way for me
to include it? Hope you got my question.

Regards,
Shiva.
 
N

Nathan Sokalski

Ok, it sounds like I wouldn't be able to help much there, since I have never
actually used VS2005 or .NET 2.0, so I think you will have to wait for
someone with more experience using those versions. Sorry I couldn't help
more. Good Luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top