[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Changing ASP.NET control property with Javascript

Asked by sunny575 in Programming for ASP.NET, .NET Framework 2.x, JScript

Tags: .NET, C#, Javascript

Hello Guys,

  I am not sure whether asp.net control property can be changed using Javascipt? I am trying to change control property on server side kinda handling it in Onclick event of a button. But is it possible to change the property using javascript. Any help would be appreciated

Thanks,
Sunny
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
 <script type="text/javascript" language="javascript">
    function display()
    {
       If ( document.getElementById('TBox')!= null)
                document.getElementById('TBox').style="display:none";
     } 
    </script> 
    <asp:TextBox ID="TBox" runat="server"></asp:TextBox>
     <asp:Button ID="bttn1" runat="server" Text="ServerBttn" OnClick="javascript:display();" />
[+][-]11/04/09 10:44 PM, ID: 25747221Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 10:57 PM, ID: 25747263Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 10:57 PM, ID: 25747264Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625