New to .NET - Having an issue with codebehind
I am a new vb.net developer (I've coded a lot in Javascript and ASP.NET, but this is a new gig).
I have a dynamic panel that is being built in codebehind, and add the attribute "data-use" and set it to "false".
On the running page, I have a javascript function that runs, and sets that panels "data-use" attribute to "true".
Now, when I debug the codebehind and step through the code, when I look at the panel in the immediate window with
?pnlName.Attributes("data-use")
I get a return value of false, but while the page is paused, and I bring up the web console (in Chrome Dev Tools) and use jQuery to get the attribute value
$("#panelid").attr("data-use");
it returns a true value...
Now I will admit that I'm very new to VB.net (new job) but a) why are these 2 values different, and b) how can I get the codebehind to see this value as true?
0 comments:
Post a Comment