473,509 Members | 10,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cohabiting html\server-side controls

I want to be able to disable\enable controls on the client via client-side
scripting. I'm trying to avoid a postback. I'd like to use HTML and
server-side controls on the same page. In code-behind of "submit button" how
do I get the value of the HTML Controls? How do you provide a "rich"
experience without roundtrips? Can you? What is the prefered way to
architect these pages? Any pointers to whitepapers/docs would be
apprecieated?
Nov 18 '05 #1
1 1015
In order to get at the values of HTML controls, you simply need to include a
runat="server" attribute in the tags, after which you will be able to access
these controls in the same way that you can access your server controls.
Then, you can just JavaScript your heart out to make a nice rich experience,
and pick up all of the values on the other side.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"eNathan" <pa**@enathan.net> wrote in message
news:OP**************@tk2msftngp13.phx.gbl...
I want to be able to disable\enable controls on the client via client-side
scripting. I'm trying to avoid a postback. I'd like to use HTML and
server-side controls on the same page. In code-behind of "submit button" how do I get the value of the HTML Controls? How do you provide a "rich"
experience without roundtrips? Can you? What is the prefered way to
architect these pages? Any pointers to whitepapers/docs would be
apprecieated?

Nov 18 '05 #2

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

Similar topics

5
2785
by: Ad Astra | last post by:
I am completely new to PHP and am finding installation the most difficult part to understand and implement. Could someone please review the rather long missive below and assist me? I have...
2
1145
by: Steven | last post by:
Hi all, What is the exact difference between a Webserver control and a HTMLserver Control? Why would you use one or the other? Thanks! Steven. ASP.NET Newbie
3
2252
by: Gary B. Levy | last post by:
I need to install (for a developer associate. I am NOT a developer)VB.NET versions 6 & 7 on two dissimilar hardware platforms, both running Windows XP Professional with Service Pack 2. Both are...
0
7237
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
7347
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
7506
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
5656
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
4732
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
3218
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...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
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...

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.