473,385 Members | 1,396 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,385 software developers and data experts.

Passing Value One Form To Another Form

idsanjeev
241 100+
SIR I AM PASSING VALUE FROM ONE FORM TO ANOTHER FORM THROUGH COOKIES BUT IS CAN ONLY TRANSFER LAST VALUE
HOW CAN PASS VALUE AFTER CLICKIN ON LINK
I AM USING THE CODE IS
FOR LINK
<td><a href=voicereply.asp?opt1=<%=R("top_id")%>>Reply</a></td>
FOR STORING IN COOKIES
response.cookies("vtopid")=R("top_id")
TO PASS ON NEXT PAGE AND WANT TO INSERT TOPID IN TO TABLE
FOR DISLAY
Expand|Select|Wrap|Line Numbers
  1. <table border=0 width=400 > 
  2. <%
  3. For Each stropt1 in Request.QueryString
  4. %>
  5. <tr><TD ><th><font face="monotype corsiva"><b>Topic ID</b></center></font></th></TD><%Response.Write "<td>" & Request.QueryString(stropt1) & "</td></tr>"%>
  6. </tr>
  7.      <%next %>
  8. </table>
  9.  
AND CODE FOR INSERT IN TO TABLE IS
Expand|Select|Wrap|Line Numbers
  1. vtopid=request.form("vtopid")
  2.     vtopid=trim(vtopid)
  3. R.Open "Select * from topic ", conn, adOpenStatic, adLockOptimistic, adCmdText
  4. R.Addnew
  5. R("top_id") =request.cookies("vtopid")
  6. <input type="hidden" name="vtopid" value="<%=vtopid%>">
  7.  
SO PLESE ANY BODY HELP ME TO STOR THATS TOPID WHICH IS DISPLAYED
Oct 27 '07 #1
4 2812
jhardman
3,406 Expert 2GB
SO PLESE ANY BODY HELP ME TO STOR THATS TOPID WHICH IS DISPLAYED
OK, but how do you want it stored?

Jared
Oct 28 '07 #2
idsanjeev
241 100+
i want to store thats topid which is displyed by querystring
i have also another problem in storing value i am using two table topmaster and reply top_id is primary keyin topmaster and its forgien key in reply is top_id and rep_id i wants to store more than on value in repply table refrence of topid but it constrains error generated when no of data in topmaster and reply is not same so how can i control it .i wants to if one record in master table then more than one record stored in reply and when topid is change it outomatic start with value oneat all change of topid
Oct 29 '07 #3
jhardman
3,406 Expert 2GB
The following code will append a new top_id to the end of the cookie "vtopid"
Expand|Select|Wrap|Line Numbers
  1. response.cookies("vtopid")=request.cookies("vtopid") &","& R("top_id")
I think this is what you are looking for. To use them, you can send these all to an array like this:
Expand|Select|Wrap|Line Numbers
  1. myTopIDArray = split(request.cookies("vtopid"), ",")
I hope this helps.

Jared
Oct 29 '07 #4
idsanjeev
241 100+
Thanks
i found it.
Oct 30 '07 #5

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

Similar topics

2
by: Richard | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** HI, I am working on a project where I need to input data to a (local) HTML page using multiple form elements, such as text,...
3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
1
by: Al Jans | last post by:
Hi, I'm having a problem passing a value from a field on one form to another field on another form. The value is being passed between forms, however it's not being displayed and i've got no idea...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
3
by: michael | last post by:
let me keep it clean, quick and simple. I am passing a variable into another window and am reassigning the value on the new page - window.document...value = opener.document. ....value and...
13
by: Deano | last post by:
Apparently you can only do this with one value i.e Call MyAssetLocationZoom(Me!txtLocation, "Amend data") This runs; Public Sub MyAssetLocationZoom(ctl As Control, formName As String) On...
7
by: AMP | last post by:
Hello, I have this in form1: namespace Pass { public partial class Form1 : Form { public Form2 form2; public Form1() {
9
by: itarizin | last post by:
Today I found as ignorance owe me.. Let me explain what I'm tring to do and fail (fail: in my needs) For example, I've my stupid class: public class Hello { private int x = 0; public...
4
by: John Sheppard | last post by:
Hello there I was wondering if anyone could help me, I am trying to pass a typed dataset to a dialoged child form by reference. I have binding sources sitting on the child form. So to refresh...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.