custom control and sql connection

Discussion in 'ASP .Net Web Controls' started by Mircea S., Jan 25, 2005.

  1. Mircea S.

    Mircea S. Guest

    hi all,

    i've created a custom web control in asp.net (vb) to implement basic
    login/profile functionality. i use this control in a aspx page, passing
    through properties all the settings i need, including the connection string
    for sql database. all these properties values are stored in the viewstate
    bag.

    the control is simple, just some write-only properties and the
    CreateChildControls method where i add the child controls programmatically.
    the sql connection i use it here, because i fetch some info from the
    database.

    the problem i'm facing is that when posting back the page, sometimes i get
    the error "SQL Server does not exist or access denied" even if the sql
    server is up'n'running. after this error, if i reload the page i still get
    the same error. funny is that it gets running again after i recompile the
    solution.

    does anybody knows what could it be?

    tia,
    mircea
     
    Mircea S., Jan 25, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonah Olsson
    Replies:
    1
    Views:
    584
    Scott Allen
    Apr 5, 2005
  2. HalcyonWild
    Replies:
    2
    Views:
    939
    HalcyonWild
    Dec 19, 2005
  3. J R M
    Replies:
    2
    Views:
    434
    Charlie@CBFC
    Jun 1, 2006
  4. Matt Sokol
    Replies:
    2
    Views:
    392
    Theo Tillotson
    Aug 7, 2003
  5. Jonah Olsson
    Replies:
    2
    Views:
    208
    Jonah Olsson
    Apr 5, 2005
Loading...

Share This Page