Connecting Tech Pros Worldwide Forums | Help | Site Map

Hyper Link problem

VIJAY KUMAR
Guest
 
Posts: n/a
#1: Jul 21 '05
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.


pm
Guest
 
Posts: n/a
#2: Jul 21 '05

re: Hyper Link problem


Could you give me more details? I am sure I can help you if you do.



"VIJAY KUMAR" wrote:
[color=blue]
> 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.
>[/color]
VIJAY KUMAR
Guest
 
Posts: n/a
#3: Jul 21 '05

re: Hyper Link problem


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....

pm
Guest
 
Posts: n/a
#4: Jul 21 '05

re: Hyper Link problem


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:
[color=blue]
> 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....
>[/color]
Closed Thread