simple User Control ASCX

S

SStory

Hi all,

I built an ASCX file (control) that hits my database, gets all state
abbrevs, from the database or Cache if available.

That works fine, but it doesn't seem to remember state and I can't gain
access to the actual user control, via it's name in my code behind
file--says it is not declared.

Any ideas?

Thanks

Shane
 
J

John Saunders

"SStory >" <[email protected] <remove the 'online.' to send me
mail> wrote in message ....
myParam = cmdAddRepAvailLoc.Parameters.Add("@State", SqlDbType.Char)
myParam.Value = StatesAddLoc.SelectedItemText 'this is the line it errors
on

Value is set to an property of the user control that returns the
selecteditems text

What gives here?

NullReferenceException means that a variable isn't set to anything (i.e.,
it's set to "Nothing"). I'd bet that "StatesAddLoc" is that variable.

I see you're using VB. Is Option Strict set to "On"?
 
S

SStory

Haven't gotten debugger installed correctly.

I have IIS on a separate machine with v 1.1 .net runtime installed.

What do I need to do to get debugger working. It says.

Error while trying to run project. Unable to start debugging on the web
server. The debugger is not properly installed. Run setup to install or
repair the debugger.

What do I need to do.

Do I run setup on the other machine and say install remote components or
what?
 
J

John Saunders

"SStory >" <[email protected] <remove the 'online.' to send me
mail> wrote in message news:%[email protected]...
Haven't gotten debugger installed correctly.

I have IIS on a separate machine with v 1.1 .net runtime installed.

What do I need to do to get debugger working. It says.

I'm afraid I've never had that problem, so I don't know how to fix it. We
always run IIS on each developer's workstation (and just make sure it stays
up to date).

You might want to post in .framework.aspnet with a subject indicating your
problem, or do an MSDN and/or Google search on the error message you're
getting. There must be documenation in VS.NET on how to set up debugging.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top