Wrox Programmer Forums
|
BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Special Edition by Bill Evjen, Scott Hanselman, Devin Rader, Farhan Muhammad, Srinivasa Sivakumar; ISBN: 9780470041789
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2006, 10:59 AM
Authorized User
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I access return value of script in codebhd

I have one function in one class file in one of my class library project.
The function is :
public void LogOff()
        {
            StringBuilder sbScript;
            sbScript.Append("<script language ='javascript'>");
            sbScript.Append("function OnLogOff()");
            sbScript.Append("ans = window.confirm('Session would be closed,Are you want to save the last updated data?')");
            sbScript.Append(" if(ans ==true)");
            sbScript.Append(" { }");
            sbScript.Append("else");
            sbScript.Append(" { }");

        }
Can I want to user "ans" value as return of this function, so that I can do some processing on the basis of "ans" value.
Please guide me how can I do this?

Thanks,
Manish






Similar Threads
Thread Thread Starter Forum Replies Last Post
Access controls, vba and arabic script tunsted Access VBA 0 January 17th, 2008 01:22 PM
login script: user can't hit "return" for login dmerrill Java Basics 13 July 14th, 2006 07:25 PM
Error in VBA script of Access Surfingeurope Access VBA 3 January 30th, 2006 05:58 PM
How do I call Excel script from Access? vmerc Access VBA 8 August 16th, 2005 01:28 PM
Carrage return in Access to dotnet gonderdonk Access 1 January 22nd, 2005 10:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.