File format problems with JS-Files in Visual Studio?

M

macap.usenet

Hello,

I´ve a strange problem with some JS-Files I´ve downloaded from www.extjs..com.

I´m including the JS-Files with the ClientScript manager:

ClientScriptManager man = Page.ClientScript;

// render the yui-ext scripts
man.RegisterClientScriptResource(typeof(Base),
"ExtJS.adapter.ext.basetest.js");
man.RegisterClientScriptResource(typeof(All), "ExtJS.ext-
all.js");

//...


while Base and All are two Wrapper-Classes which look like this:

using System;
using System.Collections.Generic;
using System.Text;

#region Assembly Resource Attribute
[assembly: System.Web.UI.WebResource("ExtJS.adapter.ext.basetest.js",
"text/javascript", PerformSubstitution=true)]
#endregion

namespace etask.Core.Controls.ExtJS.adapter.ext
{
class Base
{

}
}


The code itself seems to work fine, because I do not get any error
message like "file not found".

But my problem is, that the JS-Files seem to be empty. I also used
firefox and the firebug plugin to debug my application and the firebug
plugin also shows empty files (see: http://img403.imageshack.us/my.php?image=picture0001ag8.png)

I had this problem once in the past and played a bit around with
renaming the js file, creating a new one, copying the content and so
on and so on... And I cannot reconstruct how, but from one minute to
another my coded worked. Now I am having this problem again.

I am not sure, but I guess that there is maybe a problem/ bug with the
JavaScript-Filehandling of Visual Studio.
Could this be true? Maybe something with the Encoding?

Did anybody ever had this problem before?


Regards,
Martin
 
N

Nikolay Podkolzin

Which versio of Visual Studio are you using?

Visual Studio 2008 no longer support J#
 

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

Top