By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,727 Members | 1,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,727 IT Pros & Developers. It's quick & easy.

webforms.js embedded resource

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.