Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 Professional 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 March 14th, 2007, 07:38 AM
Authorized User
 
Join Date: Nov 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Somesh
Default Problem in passing data to next page.

Hi all,

I am doing work in a project,where I have a html page. In that page I have a Button which will run onclick() in javascript. Before end of the javascript function it is generating a string having the sql query. Now I need to pass the string to the next page(Result.aspx)to run the SQl query.

Problem is that when I am trying to do this then I am not getting the previous string. It is just passing the empty string.

Does anyone solve this problem? I shall be very glad if anyone can send me any suggestion. Hope you know this.

Somesh.

someshchaterjee
__________________
somesh chaterjee
 
Old March 14th, 2007, 11:23 PM
Registered User
 
Join Date: Mar 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Somesh....
can u explain how u are passing that string..
i think u need to pass it as querystring...

 
Old March 15th, 2007, 12:02 AM
Authorized User
 
Join Date: Nov 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Somesh
Default

Hi
santosh.kundlik

Thanks for showing interest to my posting.I need to pass the string as a normal string because the query is generating there and it is displaying there into a textbox.

just how can i display a value of any variable in the aspx page.
i tried like..
<% String aa = "job";
%>

<input type = "text"... value = <%=aa%>>
its printing me only <%=aa%> in that text box.

how do i rectify that?

Somesh

someshchaterjee
 
Old March 15th, 2007, 05:58 PM
Authorized User
 
Join Date: Mar 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JoinTTT
Default

If is your current page pure html page, it is impossible to post data from first to second page. If you your first page is aspx then I can say the solution.

 
Old March 15th, 2007, 10:16 PM
Authorized User
 
Join Date: Nov 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Somesh
Default

Hi,
Thanks for showing interest of my posting.
The page is absolute HTML page. Any way I have done that part.
Somesh

someshchaterjee





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sessions, and passing data to another page mrjoka ASP.NET 2.0 Basics 2 March 13th, 2007 10:21 AM
Data access page help. passing feild values Peter@mptechcenter.com Access 0 November 26th, 2006 05:29 PM
Data Access Page Problem Help jdbash1 Access VBA 0 June 5th, 2006 02:18 PM
Data Access Page Problem please help! jdbash1 Access 0 June 5th, 2006 02:16 PM
passing data btwn asp page and javascript include Justine Classic ASP Professional 8 August 20th, 2004 02:23 AM





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