473,898 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing Value One Form To Another Form

idsanjeev
241 New Member
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")%>>Rep ly</a></td>
FOR STORING IN COOKIES
response.cookie s("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 2837
jhardman
3,406 Recognized Expert Specialist
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 New Member
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 Recognized Expert Specialist
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 New Member
Thanks
i found it.
Oct 30 '07 #5

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

Similar topics

2
2555
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, radio, checkbox, and dropdown. When the form Submit button is clicked, I then need the input data either written to another location on the same page, or written to another page (a different frame would be fine)
3
14972
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) { document.images.src = eval("mt" +menu+ ".src") } alert("imgOff_hidemenu"); hideMenu=setTimeout('Hide(menu,num)',500);
1
9732
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 why. Any suggestions or help would be appreciated. Thanks Alex Jans
8
4419
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 click a button to determine whether the zip code is unique. If the zip code is not unique, another form/dialog is displayed (fclsLookup) - lookup form/dialog. The zip code is passed to the lookup form/dialog by reference. I then load a...
3
3468
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 am wanting to then use this value within an element of a form on the current page -
13
2530
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 Error GoTo err_zoom strFormName = formName
7
10398
by: AMP | last post by:
Hello, I have this in form1: namespace Pass { public partial class Form1 : Form { public Form2 form2; public Form1() {
9
1772
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 Hello()
4
5946
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 them I just set their datasource. I am guessing this is probably what is causing the problem. Is there a better way to do this? Anyway this all works happily and things show up when the record already exists but I have 2 problems ; 1) When I add...
0
9839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10857
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9658
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8034
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7187
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4705
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4295
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3303
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.