473,569 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

webforms.js embedded resource

I'b developing a web app to be viewed on various mobile devices, and I want
the app to be as light as possible. I noticed that some of my pages have a
link to the embedded resource webforms.js in the rendered page. Is this
javascript required, and how can I turn it off?
Jun 28 '06 #1
4 2856
It is pretty simple,

In Visual Studio, if you select the properties window of this particular
JS file, you can see a property called "Build Action". If you set this
property to "Content" then the file wont be added as a embedded
resource, so it means you have to manually specify the location when
ever you need to refer it.

-
Vadivel Kumar
http://vadivelk.net

Jeremy Chapman wrote:
I'b developing a web app to be viewed on various mobile devices, and I want
the app to be as light as possible. I noticed that some of my pages have a
link to the embedded resource webforms.js in the rendered page. Is this
javascript required, and how can I turn it off?

Jun 28 '06 #2
when I say webforms.js, I'm referring to the resource in the system.web.dll
of the dotnet framework. The framework is including a link to this resource
on the rendered page (via a WebResource.axd url). I want to stop it from
adding this link to my page, because my page doesn't use any of the
javascript in this resource so it's an unneeded http get.

"Vadivel Kumar" <va******@vadiv elk.net> wrote in message
news:uF******** *****@TK2MSFTNG P02.phx.gbl...
It is pretty simple,

In Visual Studio, if you select the properties window of this particular
JS file, you can see a property called "Build Action". If you set this
property to "Content" then the file wont be added as a embedded resource,
so it means you have to manually specify the location when ever you need
to refer it.

-
Vadivel Kumar
http://vadivelk.net

Jeremy Chapman wrote:
I'b developing a web app to be viewed on various mobile devices, and I
want the app to be as light as possible. I noticed that some of my pages
have a link to the embedded resource webforms.js in the rendered page.
Is this javascript required, and how can I turn it off?

Jun 28 '06 #3
Jeremy Chapman wrote:
when I say webforms.js, I'm referring to the resource in the
system.web.dll of the dotnet framework. The framework is including a
link to this resource on the rendered page (via a WebResource.axd url). I
want to stop it from adding this link to my page, because my page
doesn't use any of the javascript in this resource so it's an unneeded
http get.


I've seen these JavaScript AXD file(s) included when you set Form properties
such as 'defaultbutton' or 'defaultfocus'. Also the
'MaintainScroll PositionOnPostb ack' page directive might be adding an AXD
resource.

Ben
Jun 29 '06 #4
I've tried setting those properties to false or null in the page oninit, and
on page tag and in the web config. still no luck.

"Ben Amada" <be*@REpoMOweVE rpick.com> wrote in message
news:Ou******** *****@TK2MSFTNG P03.phx.gbl...
Jeremy Chapman wrote:
when I say webforms.js, I'm referring to the resource in the
system.web.dll of the dotnet framework. The framework is including a
link to this resource on the rendered page (via a WebResource.axd url). I
want to stop it from adding this link to my page, because my page
doesn't use any of the javascript in this resource so it's an unneeded
http get.


I've seen these JavaScript AXD file(s) included when you set Form
properties such as 'defaultbutton' or 'defaultfocus'. Also the
'MaintainScroll PositionOnPostb ack' page directive might be adding an AXD
resource.

Ben

Jun 29 '06 #5

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

Similar topics

1
24143
by: james | last post by:
What class / method should I be using to get the full path to an embedded resource ? In my case I have an .xml file that my app uses, it is set as embedded resource, and I have a control that needs to load it, but I do not want to hard code the path since that may change for different installs. i.e. GetPathForResourceOfName (...
5
8213
by: Drew | last post by:
Assembly asm = Assembly.GetExecutingAssembly(); me = new Bitmap(asm.GetManifestResourceStream("me.gif")); I have used this before without any problem, but now I get: An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll Additional information: 'null' is not a valid value for 'stream'.
1
2927
by: n! | last post by:
I have an irritating problem with VS.NET2003, C#. I wrote some code that would build my application menu from an XML resource file. Purely to make it easy for me to edit, so I've added this file as an embedded resource. My irritation, is that when I update the resource file and nothing else. VS does not build the project with the newly...
2
1881
by: Kyle Kaitan | last post by:
I have an assembly (AppResources.dll) which contains a number of embedded resource files. Most of these are key/value pairs of relevant strings; a few are images and sounds; some more are XML files. My application will load the resources into memory as they are needed. I would like to be able to read and write to these embedded resources. ...
0
2187
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have multiple web forms. When you compile the application, it creates a DLL. If you view this DLL using ILDASM (the manifest), it shows info about the...
20
2881
by: Martin Rosén-Lidholm | last post by:
Although an impossible question to answer, I fell urged to raise it anyhow. Given a fairly complex ERP application scenario, what's your estimation for the X-ratio dev. time for WebForms app
4
4398
by: Jason Pettys | last post by:
In an ASP.NET project I am setting the content type of my .ascx and ..aspx files to Embedded Resource for a separate reason. When I do this they get embedded as "RootNamespace.Filename" but I would like them to be embedded as "RootNamespace.Folder.Filename". I see that the .resources files are embedded with the containing folder...
2
2407
Frinavale
by: Frinavale | last post by:
I am attempting to use embedded resources in an Ajax Enabled ASP.NET Web Application. I'm using Visual Studio 2008 and VB.NET server side code. The project is called "EmbeddedResources" with the namespace "EmbeddedResources" My resources are not included when the content is rendered in the browser. I have marked my JavaScript resource as...
2
8710
by: steve | last post by:
I have the following routine for retrieving error message strigs from a resource file which is embedded in the project. But when it is called I get the error messsage "Could not find any resources.." shown underneath the code. The error message indicates that it is looking for resource ResourceExceptions.resource which is not what was embedded...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6290
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.