Hyper Link problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VIJAY KUMAR

    #1

    Hyper Link problem

    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

    #2
    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]

    Comment

    • VIJAY KUMAR

      #3
      RE: Hyper Link problem

      Thank you for your response Mr. pm

      In the fist page called "default.ax px" 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.as px" page ( i wrote an webcustom control(link.as cx) 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.Redire ct, everthing works normal. But i Can't use
      Response.Redire ct. So I have to use NavigationUrl in the HyperLink webcontrol

      I hope I am Clear....

      Comment

      • pm

        #4
        RE: Hyper Link problem

        1) you Response.Redire ct to the new page.
        2) User adds as many records as they like.
        3) User clicks link that points to default.aspx.
        <asp:Hyperlin k runat=server NavigateURL="de fault.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.IsPostBa ck) 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.ax px" 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.as px" page ( i wrote an webcustom control(link.as cx) 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.Redire ct, everthing works normal. But i Can't use
        > Response.Redire ct. So I have to use NavigationUrl in the HyperLink webcontrol
        >
        > I hope I am Clear....
        >[/color]

        Comment

        Working...