CAN YOU PLEASE HELP ME OUT W/ My FORM REFRESH PROBLEM???

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

    CAN YOU PLEASE HELP ME OUT W/ My FORM REFRESH PROBLEM???

    Hi guys i'm back again!!
    i'm having a small problem with refreshing my form after saving data
    in my database! here's what i'm trying to do:
    * In my UpdateDB.asp form i display my database records and the user
    can make changes on whatever record he wants;
    * after he'll have to save changes by hitting the save button on the
    form;
    * when i receive the "save" action, i update the database; set a
    session variable that i'll use later to true ( Session("Update DB")=
    TRUE) and DISABLE the Save Button.
    *once i'm done with it i reset my session variable to false (
    Session("Update DB")= FALSE); and WOULD LIKE to "ENABLE" the save
    button; but i can't.

    Everything works just fine but i can't "ENABLE" my save button???? how
    can i refresh the page and get back the save button ?? i thought that
    after resetting my session variable to false would help me but i don't
    know how to use it??

    Can you please help me with it???

    Thanks!
  • Jai Aggarwal

    #2
    Re: CAN YOU PLEASE HELP ME OUT W/ My FORM REFRESH PROBLEM???

    Could you post some code.


    "HolaGoogle " <holaasp@yahoo. com> wrote in message
    news:cd87ec55.0 307080846.34edb 5eb@posting.goo gle.com...[color=blue]
    > Hi guys i'm back again!!
    > i'm having a small problem with refreshing my form after saving data
    > in my database! here's what i'm trying to do:
    > * In my UpdateDB.asp form i display my database records and the user
    > can make changes on whatever record he wants;
    > * after he'll have to save changes by hitting the save button on the
    > form;
    > * when i receive the "save" action, i update the database; set a
    > session variable that i'll use later to true ( Session("Update DB")=
    > TRUE) and DISABLE the Save Button.
    > *once i'm done with it i reset my session variable to false (
    > Session("Update DB")= FALSE); and WOULD LIKE to "ENABLE" the save
    > button; but i can't.
    >
    > Everything works just fine but i can't "ENABLE" my save button???? how
    > can i refresh the page and get back the save button ?? i thought that
    > after resetting my session variable to false would help me but i don't
    > know how to use it??
    >
    > Can you please help me with it???
    >
    > Thanks![/color]


    Comment

    • Peter

      #3
      Re: CAN YOU PLEASE HELP ME OUT W/ My FORM REFRESH PROBLEM???

      You need to put a bit of code in to alter the Save button's disabled
      property on the load event of the page such as...

      <script type="text/javascript">
      function initPage() {

      document.form1. cmdSave.disable d="<%=LCase(Not (Session("Updat eDB")))%>
      }
      </script>

      <body onLoad="initPag e();">

      If you get any probs with type Just alter Session("Update DB") to
      CStr(CBool(Sess ion("UpdateDB") ))

      Make sense?

      Peter.

      "Jai Aggarwal" <dontbother.sen ding.me.spam@yo uknow.com> wrote in message
      news:aCNQa.2218 22$cI2.33548@ne ws.easynews.com ...[color=blue]
      > Could you post some code.
      >
      >
      > "HolaGoogle " <holaasp@yahoo. com> wrote in message
      > news:cd87ec55.0 307080846.34edb 5eb@posting.goo gle.com...[color=green]
      > > Hi guys i'm back again!!
      > > i'm having a small problem with refreshing my form after saving data
      > > in my database! here's what i'm trying to do:
      > > * In my UpdateDB.asp form i display my database records and the user
      > > can make changes on whatever record he wants;
      > > * after he'll have to save changes by hitting the save button on the
      > > form;
      > > * when i receive the "save" action, i update the database; set a
      > > session variable that i'll use later to true ( Session("Update DB")=
      > > TRUE) and DISABLE the Save Button.
      > > *once i'm done with it i reset my session variable to false (
      > > Session("Update DB")= FALSE); and WOULD LIKE to "ENABLE" the save
      > > button; but i can't.
      > >
      > > Everything works just fine but i can't "ENABLE" my save button???? how
      > > can i refresh the page and get back the save button ?? i thought that
      > > after resetting my session variable to false would help me but i don't
      > > know how to use it??
      > >
      > > Can you please help me with it???
      > >
      > > Thanks![/color]
      >
      >[/color]


      Comment

      Working...