ASP Web Calendar Problem

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

    #1

    ASP Web Calendar Problem

    Hi, this is a repost of a problem

    I am new to .Net and for my first application I have a form with a couple of
    databound dropdown lists, these work fine, i also have a button which pops
    up a calendar and allows the user to select a date, which fills in a
    textbox, all this works fine as individual processes, the problem is that if
    the user selects anything from the dropdowns, then selects the calendar, it
    completely clears the dropdowns of data, (in fact it clears the whole form)
    which also loses the original selections, can anyone help?

    Regards

    Dave


  • Peter Rilling

    #2
    Re: ASP Web Calendar Problem

    The calendar is a very clunky implementation. It performs a postback with
    practically every operation that you do. In that, you code must be ready
    for such postback events. Sounds like you have initialization logic that is
    run running when a postback happens. Look for conditions such as
    if(!this.IsPost back){...} (or something like that).

    "Dave" <rowland_d@hotm ail.com> wrote in message
    news:boh0rm$9r6 $1@newsreaderg1 .core.theplanet .net...[color=blue]
    > Hi, this is a repost of a problem
    >
    > I am new to .Net and for my first application I have a form with a couple[/color]
    of[color=blue]
    > databound dropdown lists, these work fine, i also have a button which pops
    > up a calendar and allows the user to select a date, which fills in a
    > textbox, all this works fine as individual processes, the problem is that[/color]
    if[color=blue]
    > the user selects anything from the dropdowns, then selects the calendar,[/color]
    it[color=blue]
    > completely clears the dropdowns of data, (in fact it clears the whole[/color]
    form)[color=blue]
    > which also loses the original selections, can anyone help?
    >
    > Regards
    >
    > Dave
    >
    >[/color]


    Comment

    • Dave

      #3
      Re: ASP Web Calendar Problem

      Thanks Peter, will try that


      "Peter Rilling" <peter@nospam.r illing.net> wrote in message
      news:OIdjdwXpDH A.1676@TK2MSFTN GP09.phx.gbl...[color=blue]
      > The calendar is a very clunky implementation. It performs a postback with
      > practically every operation that you do. In that, you code must be ready
      > for such postback events. Sounds like you have initialization logic that[/color]
      is[color=blue]
      > run running when a postback happens. Look for conditions such as
      > if(!this.IsPost back){...} (or something like that).
      >
      > "Dave" <rowland_d@hotm ail.com> wrote in message
      > news:boh0rm$9r6 $1@newsreaderg1 .core.theplanet .net...[color=green]
      > > Hi, this is a repost of a problem
      > >
      > > I am new to .Net and for my first application I have a form with a[/color][/color]
      couple[color=blue]
      > of[color=green]
      > > databound dropdown lists, these work fine, i also have a button which[/color][/color]
      pops[color=blue][color=green]
      > > up a calendar and allows the user to select a date, which fills in a
      > > textbox, all this works fine as individual processes, the problem is[/color][/color]
      that[color=blue]
      > if[color=green]
      > > the user selects anything from the dropdowns, then selects the calendar,[/color]
      > it[color=green]
      > > completely clears the dropdowns of data, (in fact it clears the whole[/color]
      > form)[color=green]
      > > which also loses the original selections, can anyone help?
      > >
      > > Regards
      > >
      > > Dave
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...