Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CodeBehind and JavaScript
Message
De
26/07/2004 16:22:10
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00927353
Message ID:
00928060
Vues:
32
>Would that be accessing Client-side or server-side JavaScript?
>I use the JavaScript to work with the OCX and the OCX is client-side.
>From the sounds of the replies I've seen, I think I'll need to add a HTML button to update my OCX alarm via the client-side JavaScript I am using.
>
>Thanks.
>
>>>I thought I had this resolved and then I realized I didn't...
>>>
>>>Is there anyway to call a JavaScript Function from the CodeBehind?
>>>
>>>I have an web form app using an OCX and FRAMES.
>>>The FrameSet has 2 sections, which we'll call Header and Main.
>>>
>>>The Header frame is basically static. In Header I have an OCX alarm control which I can access via a JavaScript... even from the Main frame.
>>>
>>>The Main frame is dynamic and contains my app. Part of my app is a reminder system. It displays to me a record and allows me to update my table by modifying the record and clicking an update button which executes code on the CodeBehind page. After the record is updated, if there is a time in the reminder field, I want to create an entry in the OCX alarm in the Header frame.
>>>
>>>I believe I can do it if I add a sepparate HTML button to give me access to the JavaScript, but I'd rather do it with a function call from inside the CodeBehind Update routine.
>>>
>>>Is this possible or am I wasting my time?
>>>
>>>TIA,
>>>Rick
>>
>>Rick,
>>
>>I'm not sure it this is exactly what you want but you can access the response.write and do the following:
>>
>>Response.Write("<script language='javascript'>alert('" & customMessage.Message.ToString & "')</script>")
>>
>>
>>Hope this helps
>>
>>Carl

Yes, it would be client-side. I guess that is what you're trying to accomplish. Are you using the .NET framework for your OCX?
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform