Wrox Programmer Forums
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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 April 13th, 2010, 08:53 AM
Registered User
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading string from Javascript

I have a javascript that contains a definition for a specific string.
I want to read this string in my Asp.Net C# code.

How can I do that ?
Thanks,
Ran
 
Old April 13th, 2010, 10:18 AM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

Unless there is other restrictions, the simplest way is to:
1) have your javascript store this value in a hidden field on the page;
2) on sever side, your C# reads it.
 
Old April 13th, 2010, 10:22 AM
Registered User
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Peter,
Can you please supply an example it is difficult to understand from your comment.
Thanks,
Ran





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading an encrypted connection string. asp125 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 August 27th, 2008 09:52 AM
Reading xml string from remote server niravp Classic ASP XML 2 June 10th, 2006 02:37 PM
Reading asp.net controls values from javascript naidukap ASP.NET 1.0 and 1.1 Professional 3 October 27th, 2005 02:55 PM
Reading XML string using asp itHighway Classic ASP XML 2 March 10th, 2005 11:54 PM
Reading string data from an input file Omega_st1 Visual C++ 0 October 15th, 2003 05:10 PM





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