How do we go about accessing a height for a Gridview? The Gridview has a CSS attribute called height that is set to 800px, but I haven’t been able to access anything with height()
$(‘ctl00_MainContent_grdPersonResults’).height() = null
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you want to get an element by id you need to prepend a pound sign/hash to use the id selector.
without it, it will be selecting based on elements having the string as a class name. I’m sure that none of your controls would have that as a class name so the selector is failing. Note that because of the ASP.NET mangles names, though, it may be easier to assign a class name and use the class name selector.