|
-
Jul 18th, 2005, 03:55 AM
#1
Thread Starter
Addicted Member
[resolved]asp.net communicate with client side objs
is it possible to make asp.net controls communictte a client side object? how? for example i have a button in asp.net then it will execute a vb script on the client side? i know asp.net is in server side but my application is a combination of both...
is it possible?
Thanks,
Jewel
Last edited by jewel; Aug 3rd, 2005 at 05:32 AM.
xoxo
-
Jul 18th, 2005, 08:04 AM
#2
Re: asp.net communicate with client side objs
-
Jul 18th, 2005, 08:12 AM
#3
Thread Starter
Addicted Member
Re: asp.net communicate with client side objs
thanks this is a great article, i just browsed through it and it seems like the solution, still have to try it though..thanks a lot
Jewel
-
Jul 20th, 2005, 01:53 AM
#4
Re: asp.net communicate with client side objs
What about a simple Page.RegisterStartupScript and Page.RegisterClientScriptBlock?
-
Jul 26th, 2005, 10:36 PM
#5
Thread Starter
Addicted Member
Re: asp.net communicate with client side objs
hi registerstartupscript works but I don't know how to get the value of the variable inside the script from the code behind...
Thanks,
Jewel
-
Jul 27th, 2005, 04:21 AM
#6
Re: asp.net communicate with client side objs
Elaborate on what your requirements are. I am not sure what you mean by "value of the variable inside the script". When does this variable get set?
-
Jul 27th, 2005, 04:29 AM
#7
Thread Starter
Addicted Member
Re: asp.net communicate with client side objs
hi sorry my question was really messy...
HTML Code:
<script>
var strValue;
function PopWin()
{
strValue = txtVal.value;
}
</script>
is there a way for me to get the value of strValue from code behind?
-
Jul 27th, 2005, 04:32 AM
#8
Re: asp.net communicate with client side objs
Assign what's in strValue to a hidden field on your page. Then you can use your codebehind to look at it. (Make sure that the hidden field is runat="server" and all that stuff)
-
Aug 3rd, 2005, 04:32 AM
#9
Thread Starter
Addicted Member
Re: asp.net communicate with client side objs
thanks...
got it to work...
-
Aug 3rd, 2005, 05:11 AM
#10
Re: asp.net communicate with client side objs
Add [Resolved] to the thread title.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|