Is there a correspondance for each server side control to be equivalent to a client side html control

Where can find the list and can use that equivalence and what is its usage pls


Thanks a lot, I appreciate your taking the time to help me.
9/29/2006 2:53:45 AM 24353 articles. 1 followers. Follow

4 Replies

Similar Articles

[PageSpeed] 1

What exactly do you mean? A correspondence of what?

All controls have a ClientID property, which for most controls tells the DOM element ID that will be used in the HTML rendering. Aside from that certain controls might offer additional client-side functionality, but there's no one standard.



10/3/2006 11:01:47 PM

I mean. When I am using html control in my aspx page like:  <input type=text ..> 

and I need to manipulate the properties of that control in code behind, i ll need to create: htmlInput then I can assign my htmlinput control to the htnl control and work with its properties.

I m not sure. sorry i m a bit confused.

Thanks a lot, I appreciate your taking the time to help me.
10/6/2006 1:25:36 AM


u can access properties and methods of an html control  by declaring an HtmlControl object give it a name in this case "frame", cast the control found by the page to (HtmlControl)

HtmlControl frame = (HtmlControl)Page.FindControl("frameee");

and then frame.Attributes("Src") = "";

Happy Coding 

Haissam Abdul Malak
| Blog |
10/6/2006 6:19:32 AM

You can do what Haissam said but you have to add the runat="server" attribute to each HTML element that you want to access programmatically. You can add the runat="server" to just about any element, even things as simple as <img> tags and <br> tags.



10/10/2006 10:47:53 PM

Similar Artilces:

How to access dynamically Html controls (client side controls) using C# server side scripts
Folks,I have problem try to to access dynamically Html controls (client side controls) using C# server side scripts. Please give me helps.     The error is as follows Exception Details: System.InvalidCastException: Specified cast is not valid.Source Error: Line 79: { Line 80: Control c = Page.FindControl("ddlTC" + i); Line 81: ((DropDownList)c).DataSource = mdt; Line 82: ((DropDownList)c).DataTextField = "ClassID"; Line 83: ((DropDownList)c).DataValueField = "Course"; My aspx page source codes: ...<...

What are diff Server-side control and Client-side control ?
What are diff Server-side control and Client-side control ? and diff server -side coding and client -side coding ? please help I have answered the first part of your question in your previous posting. Server-side coding languages are ASP, ASP.NET, PHP, CGI (Perl) and many, many more. They are used to create dynamic web content (based on additional information that is attached to the request) and are often used to extract information from databases. Client-side coding languages are JavaScript, VBScript, EMACScript and are used to create dynamic content that responds to the u...

Combining a server-side control with a client-side control!
Hi all, I am trying to combine a server-side control with a client-side control. I have created a listbox in both sides, the client-side control's code is: <select size="4" name="lstFruit" id="Select1" ondblclick="lst_dblClick" visible="false"> <option value="Banana">Banana</option> <option value="Apple">Apple</option> <option value="Mango">Mango</option> <option value="Orange">Orange</option> </select> The other one is the server-side control which has this code:   I wanted to add the ondblClick attribute to the se...

Validation Controls in .NET ( Client side or server side?)
 i have a very basic question. We have all these validation controls in ( required field, range validator and others) question is the required field validator is a server side control. So does that mean that it does a post back? it client side or server side control  The only controls that post back are buttons and other inputs where you set AutoPostback="True", such as a dropdownlist or a textbox.  Another way of posting back is using an UpdatePanel and placing a trigger in it for a specified control and/or event. All controls are considered clien...

Server-side versus Client-side controls?
Hi, I'm new to ASP.NET, and I was wondering how negligible the performance impact of using server-side controls over client-side controls is? Should I avoid using server-side controls and use client-side ones whereever I can? Or should I not care? From apurely aesthetic point-of-view, it would be nice to use mostly all server-side controls to keep everything consistent. What are your thoughts on this? Thanks. There are up's and down's of both server-side and client side controls.  Read this article and you will have a better understanding on which is better.http://www.eggh...

List of client side function of extenders and controls for client side
Hello All,I am using AJAX control toolkit for my current project. Now I need to find out what client side functions I can call on an extender. Lets say I am using a PopControlExtender. Now I want to show the popup from a JS funtions.If I can do a guess then it would be something like this$find('ppce').show();From where I can find what client side functions I can call on those extensders. This is really a frusterating thing. I learn about extenders only from Learn tutorials, no help here and there. Can anybody please tell me where are documentations about all the extenders in the tool...

Server Side control invoking a Client Side event
I need to figure out how to get a server side control to process the "OnMouseOver" event. Since server side controls do not have the onmouseover event associated with them, how would you make for example, a DropDownList have a "OnMouseOver" event associate with it? The DropDownList must be server side. I guess the idea here is to set client-side events on the server-side control. Any help will be appreciated. You may try something like this: In server side code DDL1.Attributes.Add("onmouseover", "javascript:alert('Hi')") Th...

Passing Server Side Control to Client Side Script
Hi All, I have an asp:DropDownList and an asp:TextBox on my form. I want to disable or enable the textbox depending on the selection in the dropdown. I am using master pages and the problem is that when I use the onChange event for the dropdown on the client side, I don't know the ID of the the textbox on the client side to disable or enable it.  How can something like this be done? Thanks,AKA You can use the ClientID property of a control to determine the ID, something like:  <script type="text/javascript"> function ShowMeTheID(){ alert('...

Client-Side enabling of a Server-Side disabled control?
Recently I came into a situation that required me to enable a control client-side, which was previously disabled server-side. Let me explain using a checkbox as an example. When I run chkMyCheckBox.enabled = false, the resulting HTML includs a dynamically created a span that encloses the control. This span is does not have an ID and has the attribute disabled="disabled". This inturn disables the control and it's associated label. Problem being, I see a way to enable the control on the client-side, which requires me to enabled the span as well. Has anyone needed to do this bef...

Changing Server-Side Control Properties by Client-Side
Hi, I have 4 server side button control. These are for choices of a competition website(A,B,C,D) and I have 1 client side button control named "Changer" on the same page. When I click the Changer I want it to disable A, if it is disabled I want it to disable B... The main question in this topic is "How can I change properties of a server-side control by client-side" My javascript side is not very well. How can I do this? Please help me. I got it guys. Thank You very much.. Hi, Here is the javascript for enable and disable two server side buttons with id Button1 and Butt...

Client side clock using server side controls
Is it possible to create a client side clock using a server side control (label or textbox) in C# without accessing JavaScript?  If so, how? In principal it is possible, it depends how often you need to reload this clock ... if every second than: 1. It is no sens to do I mean 2. You need than to make setTimeout client script, to refresh page every second With FastPage it seems more real task ...

server-side control inside another server-side control
Hi everyone. I have a requirement where I need to create a custom server side control which will contain a series of ASP controls -- no problem there. However, this component also needs to itself be placed inside a server side control, and then placed into the I'll have a custom server-side component inside a custom server-side component. Is that even possible? Everytime I start to think about it I get a headache. Thanks Matt  It's perfectly possible. Just give it a try and you'll see that it works.-- "Mark As Answer" if my reply helped you -- Yup...

Calling a client side control event from a server side function
I would like to know how to raise an event on a client side only control from a server side function.   For example, I have Button1 whose onclick is handled at the server. The logic behind the function will do 1 of 2 things, change the text of a label to indicate a problem or navigate to a new page.  I cannot use redirect because i need the new page to appear inside 2 of 3 existing frames.  I can manage this using an anchor on the client.  All I need to do is automatically click the anchor after I post back from the event.I tried the following line of c...

How to take value from client side control from server side code?
Hi all, I would like to know that, how to access client side control in server side code? Here is an example.. I am having the textBox in client side like <input type="text" id="textBoxUsername" name="textBoxUsername"/> I need to take the value from this textBox in button click event which is server side code. private void buttonShow(object sender, System.EventArgs e) { //I need to access this textBox here. } How to do that? Thanks R. eswaran. hi you need to make it run at server. <input type="text" id="textBoxUsername"...

Web resources about - Is there a correspondance for each server side control to be equivalent to a client side html control -

Albert Einstein’s personal correspondance now fully searchable online
Albert Einstein may be gone, but his scientific legacy certainly lives on. So too does his knowledge, thanks to the Hebrew University of Jerusalem, ...

App Store - Chakra Tuning
Get Chakra Tuning on the App Store. See screenshots and ratings, and read customer reviews.

Bell's theorem - Wikipedia, the free encyclopedia
In theoretical physics , Bell's theorem (a.k.a. Bell's inequality ) is a no-go theorem , loosely stating that: It is the most famous legacy of ...

Dynamic Duo of the Day
geek news - This fascinating correspondance between Gene Roddenberry and Isaac Asimov is proof that two nerds are better than one. Originally ...

Microsoft fingers Russians over Rustock spam botnet
A report issued in the wake of Microsoft's legal take-down of the Rustock …

Email Closings
If you want your written correspondance to make maximum impact on an individual, the handwritten letter is always best. File this in my list ...

Google’s Transparency Report: A Good And Troubling Thing
... by a government ID like a driver’s license. Online, many of us view Facebook as our identity service. Prior to email, our private correspondance ...

Dump Bachmann Action Alert: Complain to the FEC A...
A couple weeks ago, Michele Bachmann sent out a fundraising appeal that included a letter from the "non-profit" Edwatch. An organization that ...

It’s not often when an equipment supplier has to stand up and apologize in public. This is one of those times. And we are one of those companies ...

Resources last updated: 12/11/2015 10:55:12 PM