I have a asp.net form where if the user checks a check box I need to disable
some of the fields. I don't need to make a trip to the server for anything
at this point so is this is a case of using javascript to disable the fields
or should I be using Ajax do that? As probably can be seen from my post I
have never used Ajax yet.
Bill 7 1321
Bill,
You may consider Ajax only if you need to immediately react to the checks.
Since you don't, all you need to do is to make sure that the checkbox's
AutoPostBack property is not set to true and your server-side app will pick
up the values on the next postback.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message
news:OI******** ******@TK2MSFTN GP02.phx.gbl...
>I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from my post I have never used Ajax yet.
Bill
So you are saying to just use Javascript to disable the controls that need
to be?
Bill
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Bill,
You may consider Ajax only if you need to immediately react to the checks.
Since you don't, all you need to do is to make sure that the checkbox's
AutoPostBack property is not set to true and your server-side app will
pick up the values on the next postback.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message
news:OI******** ******@TK2MSFTN GP02.phx.gbl...
>>I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from my post I have never used Ajax yet.
Bill
What do you want to disable the controls for?
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message
news:OP******** ******@TK2MSFTN GP04.phx.gbl...
So you are saying to just use Javascript to disable the controls that need
to be?
Bill
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>Bill,
You may consider Ajax only if you need to immediately react to the checks. Since you don't, all you need to do is to make sure that the checkbox's AutoPostBack property is not set to true and your server-side app will pick up the values on the next postback.
-- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message news:OI******* *******@TK2MSFT NGP02.phx.gbl.. .
>>>I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from my post I have never used Ajax yet.
Bill
as you mentioned you dont need to make a trip to the server to disable some
fields.so dont.
here partial update will make no sense.
"Bill Gower" <bi*******@char ter.netдÈëÏûÏ¢ ÐÂÎÅ:OI******** ******@TK2MSFTN GP02.phx.gbl...
>I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from my post I have never used Ajax yet.
Bill
Because they are not applicable if the checkbox is checked.
Bill
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:uR******** ******@TK2MSFTN GP04.phx.gbl...
What do you want to disable the controls for?
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message
news:OP******** ******@TK2MSFTN GP04.phx.gbl...
>So you are saying to just use Javascript to disable the controls that need to be?
Bill
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in message news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>>Bill,
You may consider Ajax only if you need to immediately react to the checks. Since you don't, all you need to do is to make sure that the checkbox's AutoPostBack property is not set to true and your server-side app will pick up the values on the next postback.
-- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message news:OI****** ********@TK2MSF TNGP02.phx.gbl. .. I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from my post I have never used Ajax yet.
Bill
Then yes, your best option is client-side disabling with javascript.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Because they are not applicable if the checkbox is checked.
Bill
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:uR******** ******@TK2MSFTN GP04.phx.gbl...
>What do you want to disable the controls for?
-- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message news:OP******* *******@TK2MSFT NGP04.phx.gbl.. .
>>So you are saying to just use Javascript to disable the controls that need to be?
Bill
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in message news:%2******** ********@TK2MSF TNGP06.phx.gbl. .. Bill,
You may consider Ajax only if you need to immediately react to the checks. Since you don't, all you need to do is to make sure that the checkbox's AutoPostBack property is not set to true and your server-side app will pick up the values on the next postback.
-- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Bill Gower" <bi*******@char ter.netwrote in message news:OI***** *********@TK2MS FTNGP02.phx.gbl ... >I have a asp.net form where if the user checks a check box I need to >disable some of the fields. I don't need to make a trip to the server >for anything at this point so is this is a case of using javascript to >disable the fields or should I be using Ajax do that? As probably can >be seen from my post I have never used Ajax yet. > Bill > >
I'd suggest using JavaScript in this case.
No need for AJAX here.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Bill Gower" <bi*******@char ter.netwrote in message
news:OI******** ******@TK2MSFTN GP02.phx.gbl...
>I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from my post I have never used Ajax yet.
Bill
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gaffar |
last post by:
Hello.
My name is Gaffar. I am handling an module in a Project. This application interface is slow and inefficient. So Client told "implement an AJAX Solution which will increase speed and efficiency and user's experience".
So, My problem is what is AJAX Solution. How to implement that. what are the feataures. Please give with a sample solution.
Thanx in advance.
Regards
Gaffar.
|
by: Joel Byrd |
last post by:
I want a website that works in the following way: It has a main
content div, and of course menu items. When you click a menu item, it
should use AJAX to change the main content div to the content of the
page of the menu item you clicked. So, for example, if you clicked
"About Us", then in the main content div, you would see the content of
the about us page. Now, this is pretty simple if the content of a
given page is just text (I just...
|
by: evgenyg |
last post by:
Hello !
We have the following situation - when Ajax request is sent what's
being returned by the server is usually an XML (which is used for DOM
updates) but sometimes it's HTML which is a whole new page that should
replace an existing one. I.e when we issue an Ajax request we don't
know what will be returned and analyze the response to act accordingly.
Now, the way to replace the current document with a new one used to be
easy and...
|
by: GTi |
last post by:
I have a bizare Ajax POST problem.
I use Ajax POST to send data to the server.
The server get the POST and answer back.
BUT if I POST the data once again I recieve the same answer that the
first post give me, even if the answer is different. I have used HTTP
Analyser Std V2.1.1.15 and I see that the answer is different. But the
Ajax .responseText is the same as the first POST. It looks like it use
the cached respons.
In the RFC the...
|
by: petermichaux |
last post by:
Hi,
Some servers return JavaScript as the response to an AJAX request. When
the response JavaScript is eval'ed it calls other JavaScript functions
already in the browser to update elements, etc. This seems like a good
system because it allows so much freedom in creating the desired
behavior in the browser. The required data doesn't have to be converted
to XML or JSON on the server. The browser doesn't have to have
templates for...
| |
by: Pugi! |
last post by:
I want to create a virtual filesystem. When you open page you see a
number of 'folders' represented by a name and an icon. When you click
on the icon an xmlhttprequest is send retrieving the subfolders and
files. When you click on thus created representation of a subfolder a
new xmlhttprequest is send to the server to retrieve the subfolders and
files for that subfolder.
On the serverside I create a domdocument (php) which contains...
|
by: HarryA |
last post by:
Hello all, what would be a good book or
article to learn AJAX with HTML/CSS/javascript
on the client side and Perl on the server side?
I am NOT interested in XML, PHP, CGI::
AJAX or other 'tools' that unburden the
user from javascript, etc.
thanks in advance.
|
by: geevaa |
last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3
XMLHttpRequest and AJAX for PHP programmers
James Kassemi
Introduction:
Although the concept isn't entirely new, XMLHttpRequest technology is
implemented on more sites now than ever. Compatibility is no longer an
issue (IE, Mozilla and Opera all support it), and the benefits to
using it are amazing. There are too many PHP programmers avoiding any
|
by: =?Utf-8?B?R2VyaGFyZA==?= |
last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit
(using .net version 3.5) is closed before the Ajax enable controls complete
loading, then IE locks up. Does it in both IE7 and IE8. There is no issue
when the controls are allowed to complete loading.
Can you please tell me the best practice that handles this?
Thanks.
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |