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.
[quoted text, click to view] "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....