Hi, In my code behind page I have been trying to replace my normal div content with an error message. (normally the div contains an wizard control amongst other things) I want this overwriting of the div content to occur if the query string is left blank.
I tried searching for answers on this, and I got this far....
Job_ID = Request.QueryString("Job_ID")
If Job_ID Is DBNull.Value Then
content.InnerHtml = "Hello World"
End If
"content" is the id of the div. I added runat="server" to the div on the aspx page, ie <div id="content" runat="server">
But it doesn't seeem to build. It says there are build errors, but no errors are listed in the error list. It also seems to be very different syntax to the way I would access asp.net controls in the aspx file through code behind which makes me think I'm going about this the wrong way. Could anyone provide me with the correct method for doing this? Thanks.