473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

passing txtbox value from page to frame then to other page

Hi

I am trying to pass value of the textbox along with another value to the query string.
when i am retriving the txtbox value it always shows me null,

my senario is like this

On my page div_admin.asp i have following things.
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim page, content,console,banner,navbar
  3.  
  4. content = Request.QueryString("c")
  5.  
  6. navbar = "<table background=""../images/subnav_bg_midslice.gif"" width=""100%%"" cellspacing=""2"" cellpadding=""2"" border=""0"">"
  7. navbar = navbar & "<tr>"
  8. navbar = navbar & "<td class=""bodytext""width=35><li><a href=""div_index.asp?c=USERS"">Users</a></li></td>"
  9. navbar = navbar & "<td class=""bodytext""width=35><FORM NAME=""frmSearch"" METHOD=""POST"" > <li><b>Find&nbsp;a&nbsp;User</b></li></td>"
  10. navbar = navbar & "</tr>"
  11. navbar = navbar & "<TR>"
  12. navbar = navbar & "<TD><INPUT TYPE=""TEXT"" NAME=""searchtext"" SIZE=""15""></TD>"
  13. navbar = navbar & "</TR>"
  14. navbar = navbar & "<TR>"
  15. navbar = navbar & "<TD><a href= ""div_index.asp?c=SEARCH"" class=""links""><IMG SRC=""../images/btnSearch.gif""></A></TD>"
  16. navbar = navbar & "    </TR>"
  17. navbar = navbar & "</table>"
  18.  
  19. Select Case content
  20.     case "EDITPRESS"
  21.         page = "editPressRelease.asp?" & Request.QueryString("pID")
  22.     case "USERS"
  23.         page = "frame_users.asp?qType=ALL"
  24.     case "SEARCH"
  25.             page="frame_users.asp?qType=SEARCH"
  26.                case else
  27.         page = "index.asp"
  28. End Select
  29. %>
  30. <SCRIPT LANGUAGE="JavaScript">
  31. function srchUser(){
  32.     myForm = document.frmSearch;
  33.     searchtext = myForm.searchtext.value;
  34.  
  35.     if (searchtext == ""){
  36.        alert("You have not entered any search parameters!");
  37.     }
  38.     else {
  39.        myForm.submit();
  40.     }
  41. }
  42. </SCRIPT>
  43.  
  44. <html>
  45. <body>
  46. <div id="navbar"><img src="../images/subnav_bg_top.gif"><%=navbar%><img src="../images/subnav_bg_btm.gif">
  47. <body>
  48. <html>
now user_frame.asp is like that only
Expand|Select|Wrap|Line Numbers
  1.  frameset rows="30%,*">
  2.     <frame name="sublist" src="list_user.asp?qType=<%=Request("qType")%>" marginwidth="0" marginheight="0" scrolling="auto">
  3.     <frame name="subcontent" src="index.asp" marginwidth="0" marginheight="0" scrolling="auto">
  4. </frameset>
now when i try to get the value in the list_user.asp page i alwyas get the null.

These frames are manages on the div_admin.asp page.


This is very urgent, i already spent about a day on it.
Any help from gurus will be highly appericiated.

thanks
hhaappyy
Sep 12 '07 #1
2 2163
Hi
I am looking to pass value form dynamically created textbox to the other page.

Please let me know the what will be th way for this?

my dynamically created field is like this


Thanks in advance
HHAAPPYY
Sep 13 '07 #2
jhardman
3,406 Expert 2GB
hhaappyy,

Try it without the frames. It should still work, and youwill be able to see the querystring if anything is written there. Also, you might want to consider switching to post (form) data instead of querystring, but it might not make a difference.

Jared
Sep 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: divya | last post by:
This is the problem I am having: I have an index page where I obtain input from the user (for example their date of birth). This information is passed to Page2. Page2 has frames. Outside of the...
5
by: Andy | last post by:
Hi Could someone clarify for me the method parameter passing concept? As I understand it, if you pass a variable without the "ref" syntax then it gets passed as a copy. If you pass a...
11
by: Dthmtlgod | last post by:
I am having a little difficulty in passing a value from a page to another page. I am going to provide excerpts from the code. I think I am close. This is from Page1.ASP <% Set Conn =...
1
by: spiff | last post by:
I am very very new to jscript. What I want to do is set a variable in one frame of a page, and then reload another frame so that it uses the new variable. Is this possible? I want to have a...
10
by: vbMark | last post by:
Hello, I am doing this: window.location="page2.php?subj="+subj+"&body="+body; to send information to another page. However, I don't want that second page to show up or display in any way....
4
by: Gibs | last post by:
Hi I have two aspx pages in a frame and in the top page i am creating the controls dynamically and putting in a place holder. I have a hyperlink in this page to populate the data in the bottom...
1
by: | last post by:
Hi, 1st, I did a search and could not find any info on this, the Google results were good, but I'm still have issues...So any help will be great. I have a frame page, which contains 3 frames...
3
by: Montu76 | last post by:
Hi All, I want to pass values from .apsx page(textbox value) to .ascx page. Any sort of help will be appreciated. Regards
13
by: sindhu | last post by:
Hello acoder. I want to know another type of passing values between pages I have three frames frame1 for main horizontal menu frame 2 for vertical submenu frame 3 which is is loaded based on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.