Hi, I have this strange error coming up in VS2008, where is says a variable in not declared in HTML view, when it clearly is declared in the codebehind:
Can anyone help with why this might be happening? I've tried all sorts of things, even recreating the page from scratch, but this keeps coming up. Any pointers in any direction would be appreciated.
Wow, what theme is that? You could try clearing the temporary ASP.NET files folder.
You could also use a Repeater instead of the <ul>. In the Repeater, define the <ul> with the <li> as the template and bind the repeater to your list items.
Ha ha. I wasn't going to mentions the colours, but now that we have...
Do you not find that difficult to read and work with? I tend to stick to the default colours that ship with Visual Studio, I have never felt the need to change it. But I guess everyone has their own preference.
Actually my error handlers are deliberately just skeletons at this stage - I want to tackle the site's functionality first and then look at how to do this properly.
Paul Orton
VB6
Visual Web Developer 2008 Express Edition
Microsoft Visual Basic 2012 Express
Actually my error handlers are deliberately just skeletons at this stage - I want to tackle the site's functionality first and then look at how to do this properly.
MsgBox, or more correctly MessageBox, will work on your local development machine, because it is both the server and the client. However, when you go to put that application onto the server, and then access it from another machine, the message box will not actually appear.
If you are trying to display the error to the user, you should really write it out to a label, or inject some JavaScript to display an alert, or something similar, on the client.
Me, too, but black....?
I like a silver background - very restful on the eyes!
I'm with the other guy. First thing I do when I get a new environment is switch it to a black background. The lighter colors just give me headaches after a while. Even my desktop is just plain black.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
This is what I'm using. Also a dark background, but the colors aren't as contrasting as the OP's. It's basically this vssetting file, but I've changed the font to Consolas. You may have seen the Consolas font used heavily on Office 2007.
Note that the background colour is a custom colour (after our little discussion I changed the original - the one in the screenshot I posted - to something a little lighter. If you want the original colour it's just plain old Silver).
Paul Orton
VB6
Visual Web Developer 2008 Express Edition
Microsoft Visual Basic 2012 Express
This is what I'm using. Also a dark background, but the colors aren't as contrasting as the OP's. It's basically this vssetting file, but I've changed the font to Consolas. You may have seen the Consolas font used heavily on Office 2007.
I quite like this but the colours are still a little harsh for my sensitive eyes! I love the font, though - off to try that out now!
Paul Orton
VB6
Visual Web Developer 2008 Express Edition
Microsoft Visual Basic 2012 Express
Note that the background colour is a custom colour (after our little discussion I changed the original - the one in the screenshot I posted - to something a little lighter. If you want the original colour it's just plain old Silver).
This is actually quite good.
It looks like a code block on a web page too Doesn't go well with Consolas though, looks a bit better with Courier New. Did you come up with this yourself?
Sweet Jesus, look at the bunch of us. Talking about VS themes like women talk about shoes. It really is the year 2010. /facepalm
Although, it is code related, so that makes it somewhat OK.
I don't know, considering how much of our lives we spent abusing our eyes on computer screens, it's not a bad conversation. I've personally been holding out on glasses for years because in the end they just make your vision worse, but it's getting to the point where I can't read subtitles any more on the TV without my eyes starting to water.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
That's true, I'm a -8. Yes, -8. I've been staring at computers since I was six, so it's gotten progressively worse over time. Those exercises that they teach you about looking away, blinking more often, they are quite important and you really should pay attention to that.
I've also attached mine with the consolas font. It's alright to move your font size up a notch as well. It's your eyes after all.