473,385 Members | 1,766 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,385 software developers and data experts.

Client side scripting with ASP.net server controls

Hi:

I would like to avoid a round trip to server for small things like changing
enabled status of a dropdown list ASP.NET control. Can I apply client side
scripting to change this property? Using the client side debugger, I see I
can get a reference to control, but enabled property is not supported.

Charlie
Nov 18 '05 #1
2 1382
e
What client side langauge are you using? Javascript enable/disable syntax
would be this:

myObject.disabled = true;

And I'm guessing vb scripting would be this:

myObject.enabled = false

Sounds like you're attempting "myObject.enabled = false" in javascript?

"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi:

I would like to avoid a round trip to server for small things like changing enabled status of a dropdown list ASP.NET control. Can I apply client side scripting to change this property? Using the client side debugger, I see I can get a reference to control, but enabled property is not supported.

Charlie

Nov 18 '05 #2
You can do that, but your results may be more complicated and unexpected
than you think. ASP.Net is designed to make these sort of changes from the
server side, and bypassing it can sometimes lead to unexpected results.
ASP.Net is optimized to make PostBacks far less costly than ASP Page
requests did, which required re-interpreting the VBScript with every
request. I personally feel that it is better to try to work within the
constraints of the architecture of the technology, as a general rule.

However, if the enabled/disabled state of the client-side HTML object has no
effect on much of anything else, you can certainly use JavaScript to do it.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi:

I would like to avoid a round trip to server for small things like changing enabled status of a dropdown list ASP.NET control. Can I apply client side scripting to change this property? Using the client side debugger, I see I can get a reference to control, but enabled property is not supported.

Charlie

Nov 18 '05 #3

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

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
4
by: Brian W | last post by:
Hi All, I know this is a dumb question, but I'll ask it anyway... How do you do client-side scripting with an ASP control? For example I have: <asp:hyperlink id="Hyperlink1"...
5
by: Ben | last post by:
I want to enable/disable a text field cleint side based on a value in a dropdownlist, what is the 'best'/'standard' approach for handling this in ..net? I know i just just throw an on change...
1
by: Chris | last post by:
Hi, I have jsut started to learn ASP development and have read many articles regarding which is the best to use regarding JavaScript or VBScript. All of the learning that I have done so far has...
5
by: Kursat | last post by:
Hi, I want to add new collapsable panel items using java script at client side. Is this possible to create Ajax components like collapsable panel without server round trip? Thanks in advance.
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.