How to connect button event and datagrid in different files

M

mohit

Hi,
I have two files : Text.aspx and Default .aspx.
Default.aspx has a Detagrid web control and Text.aspx has a Button web
control.

For this buttton event I want something like if I press the button it
should cause to increase the datagrid of the Default.aspx by one row.

How to do this ???

Any ideas ???
 
E

Elton Wang

Basically, web application is stateless, unless you record page state in
someway, e.g. Session, Cookies, and so on.



My idea is that when Default page open you record the datagrid state, e.g.
row count, in Session or Cookies. Then in Text.Button click event reset the
state, and redirect to Default page. In Default page load datagrid based on
state in Session or Cookies.



HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top