Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Javascript return value

Reply
Thread Tools

Javascript return value

 
 
Srinivasan
Guest
Posts: n/a
 
      04-29-2004
I want to include javascript confirm inside the Button_Click even procedure and contine the process based on the user selection. The real problem is how to assign javascript confirm return value to the private variable declared inside Button_Click event. Please any one help me.

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
 
Reply With Quote
 
 
 
 
Rick Spiewak
Guest
Posts: n/a
 
      04-30-2004
You can't do this with a private variable, but you can with a Protected
variable. Here's a simple example of embedded use within a javascript block
in the .aspx page, referencing a variable in the code-behind:
..
..
..
<%If sPopupedWindow <> "" Then%>
newwindow=window.open("<%=sPopupedWindow%>");
<%End If%>

</SCRIPT>

references:

Protected sPopupedWindow As String

"Srinivasan" <seenusathya@-NOSPAM-hotmail.com> wrote in message
news:%...
> I want to include javascript confirm inside the Button_Click even

procedure and contine the process based on the user selection. The real
problem is how to assign javascript confirm return value to the private
variable declared inside Button_Click event. Please any one help me.
>
> ---
> Posted using Wimdows.net NntpNews Component -
>
> Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup

engine supports Post Alerts, Ratings, and Searching.


 
Reply With Quote
 
 
 
 
coollzh
Guest
Posts: n/a
 
      04-30-2004
you can use a Hidden Input Server Control named "hdConfirm"
if(window.confirm("delete?"))
hdConfirm.text ="yes";
else
hdConfirm.text = "no";

when your page is posted back ,you can get the value the hdConfirm Hidden
Control,if yes, do some .....

"Srinivasan" <seenusathya@-NOSPAM-hotmail.com> дÈëÏûÏ¢
news:#...
> I want to include javascript confirm inside the Button_Click even

procedure and contine the process based on the user selection. The real
problem is how to assign javascript confirm return value to the private
variable declared inside Button_Click event. Please any one help me.
>
> ---
> Posted using Wimdows.net NntpNews Component -
>
> Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup

engine supports Post Alerts, Ratings, and Searching.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Function take in value and return value CSINVA ASP .Net 6 11-07-2007 12:49 PM
Getting ID, calling url, search for value, return value Tim Fröglich ASP .Net Web Services 1 01-10-2006 09:18 PM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
getting return value from function without return statement. Seong-Kook Shin C Programming 1 06-18-2004 08:19 AM
Return a return value from Perl to Javascript PvdK Perl 0 07-24-2003 09:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57