473,406 Members | 2,705 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,406 software developers and data experts.

HTML controls in ASP.NET

Could you tell me how to hide an HTML list box using client side script.

Nov 18 '05 #1
4 940
On Fri, 10 Sep 2004 08:38:42 -0700,
http://www.visual-basic-data-mining.net/forum <si******@gmail.com> wrote:
Could you tell me how to hide an HTML list box using client side script.


I believe the JS is:
var oCtrl = document.getElementById('myControlClientID');

Are you asking how to emit this script from an ASP.NET form? See
Page.RegisterClientScriptBlock and/or Page.RegisterStartupScript.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
<html_list_box_id>.style.display = 'none';

"http://www.visual-basic-data-mining.net/forum" <si******@gmail.com> wrote in message news:#5**************@TK2MSFTNGP14.phx.gbl...
Could you tell me how to hide an HTML list box using client side script.

Nov 18 '05 #3
Craig Deelsnyder:

Thanks a lot for answering my question. I appreciate it.
--
forum member
http://www.visual-basic-data-mining.net/forum
"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:opsd3adelo75dg5d@g51y101...
On Fri, 10 Sep 2004 08:38:42 -0700,
http://www.visual-basic-data-mining.net/forum <si******@gmail.com> wrote:
Could you tell me how to hide an HTML list box using client side script.


I believe the JS is:
var oCtrl = document.getElementById('myControlClientID');

Are you asking how to emit this script from an ASP.NET form? See
Page.RegisterClientScriptBlock and/or Page.RegisterStartupScript.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #4
Shiva:

Thanks a lot for your time. I appreciate it

--
forum member
http://www.visual-basic-data-mining.net/forum
"Shiva" <sh******@online.excite.com> wrote in message news:%2***************@TK2MSFTNGP11.phx.gbl...
<html_list_box_id>.style.display = 'none';

"http://www.visual-basic-data-mining.net/forum" <si******@gmail.com> wrote in message news:#5**************@TK2MSFTNGP14.phx.gbl...
Could you tell me how to hide an HTML list box using client side script.

Nov 18 '05 #5

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

Similar topics

1
by: Hari | last post by:
What is the difference between HTML controls, HTML server controls , ASP.Net controls? Which will give more performance?
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Matthew Louden | last post by:
Personally, I am totally confused with the following control terms and usage and advantages of each one in ASP.NET web application. Here's what I know so far.. 1. HTML Client Control: understood...
5
by: siaj | last post by:
Hello All, Can any one give me a clue when to use Web Server controls/ HTML server controls/HTML Controls. As I understand .. HTML controls should be used if u dont need to refer it in the code...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
by: Brian Kitt | last post by:
I have a C# application that builds dynamic HTML and renders it. Because it is rendered in this way, the input controls are not server controls. I write the entire page, which has a variable...
4
by: SAI | last post by:
Both have "TextBox" element and "Runat server". I don't understand the difference. Please advise. Thanks.
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
19
by: ThatsIT.net.au | last post by:
I come from a classic asp background, but have started using ASP.NET about 12 months ago, but I'm still not sure about the pros and cons of using controls v HTML spat out from code as you would in...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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
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,...

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.