Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Sending values of GridView, Datatable in asp.net in session

Sending values of GridView, Datatable in asp.net in session

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdata-structureshelpquestion
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashutosh_karna
    wrote on last edited by
    #1

    Hello Friends, I am new to ASP.net. I want to make an asp.net page (which look like a spreadsheet)wherein, the user enters some data in one or more columns. Clicks the button, & the required result is displayed on another page. I made a simple editable gridview in asp.net (default.aspx) and put some numeric data & clicked the button. Now how can I pass the values ( as an array) stored in one or more columns to another page(result.aspx) to carry out further analysis. I want to call following method to data array(values stored in column of previous page) public static double Mean(double [] data) //DATA IS THE COLUMN OF GRIDVIEW { int n = data.length; double mean = Sum(data)/n; return mean; } Please Help with Proper Coding for storing GridviewColumn in session & then retrieve it onto another page to call the method above. PLEASE HELP

    C 1 Reply Last reply
    0
    • A ashutosh_karna

      Hello Friends, I am new to ASP.net. I want to make an asp.net page (which look like a spreadsheet)wherein, the user enters some data in one or more columns. Clicks the button, & the required result is displayed on another page. I made a simple editable gridview in asp.net (default.aspx) and put some numeric data & clicked the button. Now how can I pass the values ( as an array) stored in one or more columns to another page(result.aspx) to carry out further analysis. I want to call following method to data array(values stored in column of previous page) public static double Mean(double [] data) //DATA IS THE COLUMN OF GRIDVIEW { int n = data.length; double mean = Sum(data)/n; return mean; } Please Help with Proper Coding for storing GridviewColumn in session & then retrieve it onto another page to call the method above. PLEASE HELP

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      ashutosh_karna wrote:

      Please Help with Proper Coding for storing GridviewColumn in session & then retrieve it onto another page to call the method above.

      You should read the link in my sig. The most common way to do what you want, is to store the data in a database, and pass an id on the URL to a page that uses that id to read and display the data

      Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups