Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop Down List Control and Client Side Script
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00928903
Message ID:
00929199
Vues:
22
Tom,

I should have read the title of your message more carefully, it does say "client side". Sorry for missing it.

I have done one project in ASP.NET where I was using client side script. I am not sure it was as sophisticated as what you are trying to do. But I will look it up and if I see that something there may lead to a solution for you, I will let you know.

BTW, when I started with ASP.NET (and I am still at the starting line <g>), I was doing both VB and C#, not knowing which way to go.
So I guess you are on the right track and fortunately <g>, you only have to choose between two options <g>.

>Good morning Dmitry;
>
>It is ASP.NET and it does error. I just wonder if a property in the drop down list control exists that allows client side access? Here is an example of what I am getting at:
>
>Take a server control textbox. From the Code Behind to use the contents of the textbox you use:
>
>Dim Name
>Name = txtName.Text
>
>Now to access the same textbox from the Client side (HTML):
>
><script language=”vbScript”>
>     Dim Name
>     Name=  Form1.txtName.Value
></script>
>
>Did you add the code to the Client Side or Code Behind page?
>
>On the Code Behind Page I can make the control visible or not but from the script side it throws an error.
>
>Thank you for your response by the way. I do not ask many questions and I receive even fewer responses! :) It is always nice to know there is someone out there that tried to help. There is a lot to learn and we are still arguing which language to use – VB.NET or C sharp. I am learning both! First I define what I want to do and use VB.NET and then do it is C sharp.
>
>Back to the black hole! :)
>
>Tom
>
>
>
>
>>Hi Tom,
>>
>>You posted the message in ASP.NET category but your code looks like WinForm (e.g. Form1). Could that be a problem?
>>
>>I have a drop down list in my ASP.NET page and just for testing I added code like you have to my page code (except I use C#) and I get no error message.
>>
>>HTH
>>
>>>I have a drop down list control with Visible set to False.
>>>Desired: An HTML button control and client side code to make the control visible.
>>>
>>>An example (VB.NET) of what does not work:
>>>
>>>
>>>Sub btnEdit_OnClick()
>>>     form1.ddlProduct.Visible = true
>>>end sub
>>>
>>>
>>>The above code causes the following error - Object doesn’t support this property or method:
>>>
>>>Does anyone have a solution? Thank you in advance.
>>>
>>>Tom
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform