Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 January 21st, 2010, 03:05 AM
Authorized User
 
Join Date: Nov 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in triangular calling c#->javascript->c# on single click of search button

Hello to all forum members,

I have a search button which search records in the form, then I have to call a java script which return some values, on the base of these values I have I Have to populate Grid View.

Actually when I clicked on search button.

I) It hits to database and takes records and

II) These records are passed to java script

III) Then java script returns a value location. On the base of java script values and code behind search criteria values i Have to populate grid view. I am using asp.net and c# technology. How can achieve all three steps by single click of search button.


Even i am unable to populate grid on form refresh from that java script code.

All three steps I have to perform in Single click on Search button.

I achieved this but I have to click search button twice.


All three steps I have to perform in Single click on Search button .
I achieved this but I have to click search button twice .

Last edited by vishnu108mishra; January 21st, 2010 at 03:08 AM..
 
Old January 21st, 2010, 09:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

I'm confused, js is executed on client side, and C# on the server, so are you going from one place to another with the data???

Probably it works because it has the data to execute the las C# part when you click for the second time ;)
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chpt 7 >> Pg 245 >>Try It Out #4-5 harrison4411 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 2nd, 2006 06:26 PM
Achitecture ? SQL -> XML -> ASP -> PDF or HTML Frm jstrong Classic ASP XML 0 July 9th, 2005 01:18 PM
project unavaliable problem >>plz help anass BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 21st, 2005 01:16 AM
VB.Net -> Filename -> DTS Package -> tempdB daniel Pro VB.NET 2002/2003 1 October 7th, 2004 01:46 PM





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