Assign TextBox Value From 1 Form to Another Form on another page

I have searched for days without finding the answer that Im looking for.

I have created a marketing request form table called tblRequestForm with a few basic fields. [RequestFormID] , [FormTitle] , [Department] , [YourName].

I also have created another table called tblRequests that has these fields. [RequestID] , [RequestFormID] , [RequestTitle] , [RequestDescription].

I am trying to fill out the RequestForm on page1.aspx then on insert, postback the [RequestFormID] automatically into FormRequest on page2.

 I am really new to this and help would be great.

~Mickey Elliott~

“When you have confidence, you can have a lot of fun. And when you have fun, you can do amazing things.”
11/30/2007 10:09:16 AM 93655 articles. 6 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 24
Get it on Google Play
Get it on Apple App Store

Use a session variable.

Jeanre Swanepoel
Software Engineer
Bluegrass Technologies
11/30/2007 11:52:05 AM

can any one be specific about the code..?

~Mickey Elliott~

“When you have confidence, you can have a lot of fun. And when you have fun, you can do amazing things.”
12/3/2007 7:58:03 AM

Hi dear...

Using the Session Variable is the Good Approach. All you need to do is when the Fields are inserted in the database Use  the Session Variable like...


'--Suppose the  values are inserted in the Db then do the following in page1.aspx


Session.Add("RequestFormID", value_of_RequestFormID) 'The value_of_RequestFormID will be the one which is inserted into database

Session.Add("FormTitle", value_of_FormTitle)

 Session.Add("Department", value_of_Department) 

 Session.Add("YourName", value_of_YourName)  


'-----------------------Now you will be navigated to page 2------------------------------------------

'----------------------In the code bedind of Page2.aspx do the following



Response.write(session.item("Department") )





Hope this Post will help you.. 



N@vEeD Kh@N
12/3/2007 8:42:23 AM

Similar Artilces:

Passing Values from a Web Form to Another Web Form
Hello All! I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx. What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options. Thanks!   How about using cross-...

calling a web form from another web form
I would like to know what is the best way to open a web form from another web form. I would like to call it from a button control. Thanks Well, if I've grasped your question right, there are many methods to do that: 1)Response.Redirect > To navigate to another page from code and is equal to clicking a hyperlink. I suggest this as I think it's closer to your question. 2)Server.Transfer > This ends the current web form and begins a new web form. It's usable when you want to pass some variables i.e (Label1.Text) to the next immediate page. It's not safe though and not used to send p...

Web Form embedded in another Web Form
Hi,  I have programmed a Web Form which acts like a scientific calculator. I would like to embedd this calculator in the upper left hand corner of another accounting Web Form. I don't want to host the calculator on the same server as the accounting page. I.e. I want them to have distinct URLs. Classically, I would do this using frames, but is there a better way using ASP? Is there some sort of Panel which can display the webpage at a specific URL which I can just drag onto my accounting Web Form? Thanks,  P1000   Frames are the only way to embed a webform inside ano...

Hi...passing textbox value one form to another form...
how  to pass the one form textbox value to another form datagrid  (pop-up window Datagrid) ...Jani... Hi, refer my article as Answer if this reply helps youMVP ASP/ASP.NetASP.Net Hosting : Host DepotMy Site : ASPSnippets  To pass data from one form to another form you can use the following:1. TextBox txtName  = (TextBox)Page.PreviousPage.FindControl("textboxid");     textboxid is the id of the TextBox  that is generated at runtime you can find it in  page source of the previous page(Pag...

Retrieving image from 1 form to another form. (VB.Net & MS Access)
Hello!I'm getting the image in 1st form from database. When I'm moving to 2nd form how can i get the same image in form load?Thanks & RegardsPrasanna T Hi, Based on my understanding, you can display an image which is stored in the database on the form, and you want to display this image on another page.  If I have misunderstood you, please feel free to let me know. If we want to display the same image that is stored in the database, we can save the image into the folder and then refer to this image path using Image control on another page. I hope this helps. Thomas...

synchronizing chunk of data of one web form for another web form
I'm making a web application. In one web form; i'm taking inputs from user. Now; there is some info given by user in this page which is needed for web form which is going to be displayed next. i want to display that info automatically on that web form so that user doesn't have to re-input that info in this next web form. Info from first page would be inserted into database when user clicks on the submit button. then that next web form would be displayed. and the chunk of info from previous page should be displayed there!!! how can i do this?? cany anybody help?? nobody can help me!! I...

Posting to Web Form with DropDownList from another form
I have a page with a drop down list that displays data on post back from the drop down list selected index change event. (call this form1) I need the ability to post to this page from another form (call this form2). there are about 6 options in form1. form2 will contain only 2 of these options displayed as simple hyperlinks. when the user clicks these links from form2 it needs to simply force a post back with that value from form2. id like to do this without javascript and id like to use the drop down list server control. anyone have a quick simple way to accomplish this? than...

Can my web page with a form submit to other web pages forms?
I was wondering if I created an aspx page that had a form on it that I could use the submit button to submit this form's contents to other web pages forms(servers accepting those form's data). I am thinking this would be a great way to update data on particular web pages without having to actually visit those similar web pages. Any ideas, examples would be much appreciated. Thanks in advance.  Yes you can.  It's called Cross Page Posting: might ...

Form as Child of another Form
Hi. Maybe my first mail describing the problem was too complex. A simple question then: Why do edit controls don't work correctly, if created in a child form of another form? --- snip --- void __fastcall TForm1::Button1Click(TObject *Sender) { TfrmTest* frmTest = new TfrmTest(Application); frmTest->Parent = this; frmTest->Show(); } --- snap --- If 'TfrmTest' contains edit-controls they no longer accept focus using the mouse. Any help would be appreciated. Thanks Eike Petersen > {quote:title=Eike Petersen wrote:}{quote} > ...

How to call One FORM from Another FORM IN VB.NET

Load Text box of one web form with selected list item of list box of another web form
one help please Problem is i have two web forms  1.  ForiegnkeyTest.aspx  2. foroginkeytable.aspx   step 1 1 ForiegnkeyTest.aspx one web form <head runat="server"><script language="javascript" type="text/javascript">   function popWin()   {         var confirmWin = null;      confirmWin ='foroginkeytable.aspx','anycontent',   'width=455,height=435,status');   }  </script> &...

Forms or No Forms
Hope this isn't a repeat.  I looked and didn't find anything. Say for example you had a web page with around 20 fields retrive and update to a database with differing datatypes.  Some fields will have some special controls (dropdowns, radios, buttons, etc) that interact with other parts of the page.  What is the best and/or most efficient code to make the page. Would you use a Formview bound to a standard SQL connection and edit the templates. Use a Formview bound to an Object Data Source and edit within the templates. Or use an Object Data Source and bind the...

Pass values from a web form to another page using a button
I'm trying to do a simple survey, where a user fills out a form and then clicks submit. The button sends them to a new page along with their answers from the form. How do I get it to send the values to the new page? Thanks you can do redirect at the end of button_click handler and pass the parametersAnatoly Lubarsky...

Posting values from one web form to another aspx page
How would I post the values from a form in my application to another form in someone elses application using I understand it differs from asp 3.0 as pages in 1.1 post to themselves and a redirect doesn't post the values to the other form. Any help would be appreciated. If its on the same server try Context.Items["name"] = myText; Server.Transfer("page.aspx"); The application is on a different server. Would/Could/Should I have my aspx page redirect to a asp page which would then collect and transmit the values to the "other" app...

Web resources about - Assign TextBox Value From 1 Form to Another Form on another page -

Aqua (user interface) - Wikipedia, the free encyclopedia
Aqua is the GUI and primary visual theme of Apple Inc. 's OS X operating system . It is based around the theme of water, as its name suggests, ...

Wikipedia:Sockpuppet investigations - Wikipedia, the free encyclopedia
WP:RFCU redirects here. You may be looking for Wikipedia:Requests for comment/User conduct ( WP:RFC/U ), CheckUser policy ( Wikipedia:CheckUser ...

Help - is a social service . Users can post short(140 character) status messages which are broadcast totheir friends and colleagues on the ...

City of Whitehorse, YT : Contact
Employment - Bylaws - Document Library - FAQ - Contact Us Search Query Textbox Home Home About Whitehorse Notify Me Contact Us Employee Links ... Help
Help for uploading pictures Noun explanation Group pictures: a basic unit which stands for a piece of news photo in system; include: information ...

Metamorphose: All-In-One File/Folder Renamer For Windows, Mac & Linux
Previously, we’ve reviewed many batch file-renaming applications like ReNamer (read review), NameChanger (read review), File Grinder (read review) ...

How to build a Twitter extension for Chrome
Ars takes a close look at the Chrome Web browser's new extension system. In …

ASUSTeK Computer Inc. -Support- RSS
... RSS Service, please follow the instructions below. STEP 1. Select the product to subscribe. STEP 2. The RSS link will be shown on the Textbox ...

authonomy writers and readers - Daniel Escurel Occeno's profile - authonomy writing community
... of the Point Guard”. It is entered in writing contest.In the TEXTNOVEL website simply type in “Lee Chon” in the textbox search ...

Baseball Prospectus
Forgot Your Password? Enter your username in the textbox below. Username: If you don't remember your username, please contact Customer Service ...

Resources last updated: 1/23/2016 4:30:05 PM