Help with copying data from one gridview to another gridview on another page

Hello,
I have a page, frmJobListings.aspx, with a data grid that is populated with data from a table called, tblJobPostings.  I would like to copy all rows of data from three of the columns, JobRefNum, JobRequirements, and JobTitle on the page and populate a datagrid on another page called, frmJobDetails when I click on a button called, btnJobDetailBuilder.

Problem: When I click on the btnJobDetailBuilder the page frmJobDetails opens but does not display the datagrid, errors, or any information.  I know that I need to do a data bind, but not sure if or how to databind to the 'Response.Redirect  if that is what I need to do.
Please help.  I  have also listed the code I have tied to btnJobDetailBuilder and frmJobDetails below

btnJobDetailBuilder
***********************
Protected Sub btnJobDetailBuilder_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnJobDetailBuilder.Click
 
        Dim TemplateWorkOrderID As TextBox = GridView1.FindControl("TemplateWorkOrderID")
     
        Response.Redirect("~/MemberPages/RCM/frmMumBuild.aspx?JobRefNum=" & Server.UrlEncode(JobRefNum.Text) & "&JobRequirements=" & Server.UrlEncode(JobRequirements.Text) & "&JobTitle=" & Server.UrlEncode(JobTitle.Text), True)
    End Sub

frmJobDetails
****************
            <asp:GridView ID="gvJobs" runat="server" AllowSorting="True" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="LineNumber" />
                <asp:TemplateField HeaderText="Job Detail ID">
                    <ItemTemplate>
                        <asp:TextBox ID="JobDetailID" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Job Reference Number">
                    <ItemTemplate>
                        <asp:TextBox ID="JobrefNum" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Job Requirements">
                    <ItemTemplate>
                        <asp:TextBox ID="JobRequirements" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
     <asp:TemplateField HeaderText="Job Title ">
                    <ItemTemplate>
                        <asp:TextBox ID="JobTitle " runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>

Thank you again in advance,


ptown
0
ptown
2/19/2008 1:45:56 AM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

1 Replies
639 Views

Similar Articles

[PageSpeed] 45

I would suggest you to store the data in session object or cache in the frmJobListings.aspx and use the data from session/cahce in the frmJobDetails.aspx


Vikram
www.vikramlakhotia.com


Please mark the answer if it helped you
0
vik20000in
2/19/2008 3:02:24 AM
Reply:

Similar Artilces:

GridView's data sent to another GridView control on another page
I'm trying to get send a Gridview1 control's DATA on page1.aspx to Griedview2 on page1.aspx. I tried adding to a session varible like so:page1.aspxSession["gridsData"] = GridView1;page2.aspxif (Session["gridsData"] != null){    GridView2 = ( GridView )Session["gridsData"];}When page2.aspx loads, GridView2 does not display data. There is data there, because it is NOT null in the conditional statement. Is this the best solution??Thank you,Edski Use the data itself, not the Gridview, also, I would use the cache object instead of sessionDav...

GridView with two datasouces / Copying data from one gridview into another gridview and then updating database
I have two GridView controls GridView1 and GridView2. GridView1 displays data from table1 through an access datasource. I then have a button on the page when clicked it copies the data from GridView1 into a DataTable and then I assign datatable as the datasource for GridView2, now what I want to do is GridView2 to connect to table2 in the access datasource and update the database table. Essentially what I am trying to do is read data from one datasouce and update another datasouce. The reason why I want to do this is I want to use GridView1 and table1 data as template and dont want to modify...

Edit data with GridView Control ? or another control ? help
I use GrivView in ASP.Net 2.0 to show data from DataTable. And i want to edit some fields in some rows. How can I do it? If i touch EDIT button - all columns, which have ReadOnly=false, switch into EDIT mode. But I want, that in first raw I can edit 2,3 column and in second row only 3 column. How can I do it ? ...

gridview control in another gridview control
Hi ia have a questioni have a gridview control which contains button in one colum.now my question is i need another gridview to be placed in the  first gidviewso that when i click on the button the second gridview will populate the data.now my question is how to place second gridview in first gridview.or is there any approach like first grid itself acting as parent and child.please help me  Hi sirikalavalapalli:                I think nested gridview will help you. Check this link and it will show you how...

how to Copy Item one Gridview to another gridview
I have Two gridview left side where i populate data from Database and other will be empty at 1st time my requirement is when click any item and click to add button it will remove from that cell and add in to second gridviewsame thing happens through drag and drop system Drag from one gridview to another well but it will be helpfull how to remove and add one gridview to another can someone give me ideabye take careregardsvikrant Check out these links http://forums.asp.net/p/1169459/1955946.aspx http://www.codeproject.com/KB/HTML/SelectMoveRowsFromTables.aspx...

get data from Gridview in one page to textboxes in another page.
 Hi here iam having Gridview in one page .it is binded to some data.I used querystring to transfer data from Gridview to Textboxes in next page.now my question is i want to edit the textboxes and make changes reflect in database.i edited the textboxes by just deleting the value in Textbox and entering new value.but The changes i made to textboxes are not reflected at runtime.When i debug the codeThe values in TextBox are previous values. The changed values are not reflected.because of that iam not able to update the database.Is there property for textbox to take place the changes i made...

inserting record present in one gridview in one page into gridview in other page
hi,i have two .aspx pages.one page(watch.aspx) have gridview with fields  given below.the fourth column is a hyperlink column                                                        watch.aspx                      ...

How to transfer records from one gridview to another gridview on same page
i have a problem, have got a gridview where all products are populated, now i want user to select the products he wants to order and store all the products selected in another gridview on same page. Currently i can transfer only one record on second grid view if i select another product from first gridview it will overwrite the record in second gridview.Lastly i want to insert all the records from 2nd gridview to database.Thanks Read the below post. Here i showed how we can transfer data from a page tpo another page. In first page user selects some data from gridview then transfer th...

How to post data from gridview on one page to detailview on another page when select is used
I need to get data from gridview on one page to detailview on other page when I use select statement.I am able to do this on same page by using following code but not able to do this on different pageprotected void GridView1_SelectedIndexChanged(object sender, EventArgs e)    {        DetailsView1.PageIndex = GridView1.SelectedIndex;    } Is it possible that when I use select in gridview on a particular page then only that row data appear on detail view of another page. please let me know asap. Find the Best Webhosts ...

Gridview control embedded in another gridview control
I am writing an ambulance crew scheduling application on the web and I need some help completing the last part.  I have an access database that has three tables: user table, shift table (describing the shifts available), and a schedule table (that stores shift by shift_id and user by user_id).  I have a gridview control that will display the available shifts but I cannot get the embedded gridview control that will display the user that is signed up for each shift to display because I cannot figure out how to use the OnRowDataBound method.  I need a simple VB example of how to...

problem in duplicating row from getting one gridview to another gridview in the same page
I am getting itemcode, itemdescription for the first gridview but I displays only item description on the gridview. Then I add items by using checkbox from the first gridview to another gridview on the same page. Then I used "Session". However when i choose the same item again, it will add new row in the second gridview. If it is same itemcode, it should overwrite. Can anyone pls help me. Here's an example for you: ASPX <%@ page language="C#" masterpagefile="~/MasterPages/Default.master" autoeventwireup="true" co...

How to use sqldatasource to display data on another web page?(gridview to gridview)
Hi, i am new here. i have problem using sqldatasource to display a selected indiviual data from a gridview to another page's gridview. I was told to use repeater but i am not taught before. I do know how to display on the page itself but not on the other page. Can anyone teach me how to do it? thks in advance:)  ...

There is a Gridview Control in the tmplate field of another GridView Control.
    For instance,a gridview displays the information of the  students in a class.A table is recording the information except their mark.There is another table recording the mark of the students whose foreign key is the primary key of the previous table.   string strSQLconnection=".................."; SqlConnection sqlCononection=new SqlConnection(strSQLconnection); SqlCommand sqlCommand=new SqlCommand("select * from stuendent where classID=1",sqlConnection); SqlConnection.Open(); SqlDataReader reader=sqlCommand.ExecuteReader(); GridVie...

Data presentation control in another Data presentation control
 Hello,I want to make a menu with datalist or gridview control.Basically,the menu will be like this,Categories     Sub Categories.For example, for COMPUTING category there will be NOTEBOOKS DESKTOPS etc.There will be a image for CATEGORIES and linkbuttons with Subcategories.If I put a datalist inside a datalist and a link button inside the second datalist visually it satisfies my need.However,CommandArguments come from database to linkbutton.Andwhen one of these command buttons is cliked it must go to proper page.I dont know how to wrie an event_handler ,specifically, for...

Web resources about - Help with copying data from one gridview to another gridview on another page - asp.net.presentation-controls

GridView SelectedItem Binding Gotcha in WinRT
Last night when I was doing some WinRT hacking I was trying to setup databinding to the selected item in the GridView control and I ran into ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Advanced Search Gridview Latest News Releases All ...

CNW Group
... Services Beyond the Wire About CNW my CNW CNW Access CNW Directories Financials Webcasts Events my CNW All News Releases Advanced Search Gridview ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Add a Filter Gridview Latest News Releases All Today ...

New CmdLets of Powershell 2.0
New CmdLets of Powershell 2.0

Price Drop: Softbox
... objects- create product reflection- changing the background with something more interestingUse it as:- softbox- honeycomb softbox- gridview ...

Profile.aspx: ASP Alliance
.NET,ASP,ASP.NET,SQL,XML,HTML,ADO,ADO.NET,JavaScript,JScript,CSharp,VBScript and VB tutorials from AspAlliance.

Quick Answers - CodeProject
Questions - Free source code and tutorials for Software developers and Architects.; Updated: 25 Oct 2012

DotNetKicks.com - Upcoming stories
DotNetKicks.com is a community based news site edited by our members. It specialises in .NET development techniques, technologies and tools including ...

View Features - ExtendASP
Call 847-681-9827 or Request a Demo View Features Testimonials Pricing About Us Coming Soon ExtendASP exposes every feature, more than any other ...

Resources last updated: 1/21/2016 5:14:57 AM