473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Using ASP .NET without Javascript

Hi all,

lately I've been trying to build my first ASP .NET application.

This is the way I use buttons to submit forms:
[input id="btnSubmit" type="submit" value="Cook it!"
onserverclick="InsertNewRecipe" runat="server"]
(putting square brakets as I don't know how Google Groups treats HTML

These are the sample properties I use for ALL my validators:
http://img148.imageshack.us/my.php?i...board017fj.jpg

So the question is: why do I keep getting ASP .NET generating
_UNWANTED_ Javascript?

Thanks,
Lorenzo

Nov 19 '05 #1
4 1047
Hi,

start from here

Client Script in Web Forms Pages
http://msdn.microsoft.com/library/de...InWebForms.asp

It's tell you which controls do require JavaScript.

Second thing is that you can set Page's ClientTarget to "downlevel" which
indicates that no script is sent to the client (as far as is possible within
the controls you use).

Here's also a bit more information
ASP.NET Server Controls and Browser Capabilities

http://msdn.microsoft.com/library/de...pabilities.asp

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


Nov 19 '05 #2
Teemu Keiski wrote:
http://msdn.microsoft.com/library/de...pabilities.asp


Hi Teemu,

thanks for the reply.

I'm reading at the link above

downlevel Renders with HTML 3.2 capabilities; that is, no CSS support.
Does this mean that I can't use the CssClass property of the controls I
put on the page?

Thanks,
Lorenzo

Nov 19 '05 #3
More likely it means that the controls do not render inline styles within
their HTML elements (like style="width:300px"), but I cannot remember if it
disables totally outputting the CssClass attribute (which just spits out the
class="classname" to the tag). With quick look seems that it shouldn't (and
you can always put attributes out with Attributes property).

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Nov 19 '05 #4
Teemu Keiski wrote:
More likely it means that the controls do not render inline styles within
their HTML elements (like style="width:300px"), but I cannot remember if it
disables totally outputting the CssClass attribute (which just spits out the
class="classname" to the tag). With quick look seems that it shouldn't (and
you can always put attributes out with Attributes property).


Hi Teemu,

thanks, got kinda of the same suggestion here:
http://discuss.joelonsoftware.com/de...et.12.157029.2

So it seems there is a hope. However, don't know if it's just a Beta 2
bug of Visual Web Developer 2005 which I'm using but setting the
ClientTarget @Page directive to downlevel (which oddly engough is not
available through intellisense) doesn't seem to have any effect.

Thanks,
Lorenzo

Nov 19 '05 #5

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

Similar topics

14
by: Randell D. | last post by:
Folks, Here's my problem: I am createing an array in a file using the reslut of some PHP and MySQL processing. An example of my array would be examlpe="example one"; examlpe="example...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
20
by: Andrew Poulos | last post by:
If I have a page with a bunch of content and some javascript in the head how do I notify the javascript disabled users that enabling javascript would enhance their experience. At the moment I'm...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
10
by: eggie5 | last post by:
Is it possible to get a file without using a form post? I want to get the data (bytes) of a file, text or binary, and just save it to a variable. Similar to the post body of a form that has a...
6
by: Michael Landberg | last post by:
Hi I am crewating a website using HTML and Javascript. The website can be seen by everybody that has internet. Do I have to consider that some people don't have javascript enabled in their...
6
by: bushi | last post by:
hi everyone! i have diplayed my hyperlinks in a iframe.when i redirect to next page.the next page also open in the same frame,but i want to open a new browser window,when i click on the...
2
by: ChrisO | last post by:
I've been pretty infatuated with JSON for some time now since "discovering" it a while back. (It's been there all along in JavaScript, but it was just never "noticed" or used by most until...
1
by: soms2m | last post by:
HELLO ALL, I want to fill the parent window height with respect to the sub window height which is loading using ajax (mootools). For example if the parent window height is normal and the loading...
7
by: JDOMPer | last post by:
Don’t misunderstand me – I use AJAX, but I think there is a far simpler, elegant alternative that just uses Javascript, the DOM and Php ( hence - JDOMP) for data transfers, and is cross-browser...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...
0
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,...
0
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...

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.