473,508 Members | 2,292 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 2851
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******@vadivelk.net> wrote in message
news:uF*************@TK2MSFTNGP02.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
'MaintainScrollPositionOnPostback' 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*@REpoMOweVErpick.com> wrote in message
news:Ou*************@TK2MSFTNGP03.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
'MaintainScrollPositionOnPostback' 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
24116
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...
5
8196
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...
1
2915
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...
2
1876
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...
0
2180
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...
20
2869
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...
4
4387
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...
2
2398
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...
2
8695
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...
0
7224
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
7323
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,...
0
7380
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...
1
7039
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
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5050
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...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1553
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 ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.