Ok, so I'm not new to programming, but am new to ASP.NET (and even ASP for that matter) so please work with me here :)
I have a page that we'll call page.aspx, said page has a code behind file.
On page.aspx I have a repeater control to output some User, City, State, Country information. I use the code behind to obtain the data and bind it to the repeater control.
Not a problem so far.
Now, on page.aspx while I'm outputting the data I would like to be able to do an if statement. For example, if the state is null then show the state string as something else vs. a state name (since it doesn't exist).
When I attempt to do said action I get an error regarding Code Blocks Not Able To Be Used In This Context (or something to that degree).
Now something I came across while searching this error was more or less that you since ASP.NET pages are classes you cannot just insert code whererever you want (like classic ASP, PHP, etc). ...
Go to the complete details ...