By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,137 Members | 2,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,137 IT Pros & Developers. It's quick & easy.

passing txtbox value from page to frame then to other page

P: 2
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
Share this Question
Share on Google+
2 Replies


P: 2
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
Expert 2.5K+
P: 3,405
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

Post your reply

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