By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,403 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,403 IT Pros & Developers. It's quick & easy.

Hyper Link problem

P: n/a
Hi pals,

I am using 2 web forms (pages). In first page, i have Datagrid control
and on second page i have a hyper link control to the first page and Add
value to the data grid/Database.

Problem:

when I click on the hyperlink on the second page, i am getting the first
page with cahed data. But i didn't declare/Use code for cache data. when i
Refresh the first page then it ddipalying the modified values in Datagrid

what problem is it? anybody know what it was,Please help me.

Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
pm
Could you give me more details? I am sure I can help you if you do.

"VIJAY KUMAR" wrote:
Hi pals,

I am using 2 web forms (pages). In first page, i have Datagrid control
and on second page i have a hyper link control to the first page and Add
value to the data grid/Database.

Problem:

when I click on the hyperlink on the second page, i am getting the first
page with cahed data. But i didn't declare/Use code for cache data. when i
Refresh the first page then it ddipalying the modified values in Datagrid

what problem is it? anybody know what it was,Please help me.

Jul 21 '05 #2

P: n/a
Thank you for your response Mr. pm

In the fist page called "default.axpx" have a datagrid to show records the
database
and have butons for ADD,EDIT,DELETE.

When user click on ADD button, i am redirecting the page to "add.aspx".
Here I am adding the values in the required fileds. and Press "ADD Record"
button. This form add this record into the database and again postback to
same form. if the user want to add one more he/she fill the form again and
press "Add Record" button again. other wise user click on link "List" which
leads to "default.aspx" page ( i wrote an webcustom control(link.ascx) for
Links which appear left side of the page.)

when user Click on link "List", the link leading to the default.aspx page
but it not displaying the newly added record.when i refresh the page by
pressing the F5, then only its showing the new/Modifeid records.

Even i trace my program using "trace.axd". In this page its not showing
the default.aspx wheni clicked on the Link "List".

Problem:
Even it showing the default.aspx page, why it showing the Updated values?
when I am using Response.Redirect, everthing works normal. But i Can't use
Response.Redirect. So I have to use NavigationUrl in the HyperLink webcontrol

I hope I am Clear....

Jul 21 '05 #3

P: n/a
pm
1) you Response.Redirect to the new page.
2) User adds as many records as they like.
3) User clicks link that points to default.aspx.
<asp:Hyperlink runat=server NavigateURL="default.aspx"/> or something like
that.
4) Page does not display new records and previously existing records from
database.

My guess is that it is a URL QueryString/Database QueryString problem.

Set break point on if (!Page.IsPostBack) and determine if the data SHOULD be
coming back given how it was added versus how it is now persisted in the
database.

Keep in touch, I am happy to help.

"VIJAY KUMAR" wrote:
Thank you for your response Mr. pm

In the fist page called "default.axpx" have a datagrid to show records the
database
and have butons for ADD,EDIT,DELETE.

When user click on ADD button, i am redirecting the page to "add.aspx".
Here I am adding the values in the required fileds. and Press "ADD Record"
button. This form add this record into the database and again postback to
same form. if the user want to add one more he/she fill the form again and
press "Add Record" button again. other wise user click on link "List" which
leads to "default.aspx" page ( i wrote an webcustom control(link.ascx) for
Links which appear left side of the page.)

when user Click on link "List", the link leading to the default.aspx page
but it not displaying the newly added record.when i refresh the page by
pressing the F5, then only its showing the new/Modifeid records.

Even i trace my program using "trace.axd". In this page its not showing
the default.aspx wheni clicked on the Link "List".

Problem:
Even it showing the default.aspx page, why it showing the Updated values?
when I am using Response.Redirect, everthing works normal. But i Can't use
Response.Redirect. So I have to use NavigationUrl in the HyperLink webcontrol

I hope I am Clear....

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.