Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
How do you reference a DIV as object in VB.net code?
taylorka
follow
0
11-10-2009 3:46 PM
29 views
tags:
vb
taylorka
says:
How do you reference a DIV as object in VB.net code?
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
CAN YOU SEE THE CUTE NOW?
These killers don't deserve the rights of Americans
The Human Brain
Left Won’t Let Facts Get In the Way of Global Warming
Obama Playbook
Remember the troops at Thanksgiving
The dog who saves his owner's life every night
Glenn kicks a bit o butt
Facts about Animals
DOGS ARE A MAN'S BEST FRIEND?
visit the
Top Clips page
View the Top Clips from
November 10, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/6034f906-2b4d-4fd0-8ffc-15ba6ce1b120/FEB15B94-4257-484A-92F7-956BCF904345/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.experts-exchange.com/Programming/Languages/.NET/Q_24036748.html" href="http://www.experts-exchange.com/Programming/Languages/.NET/Q_24036748.html" style="font-size: 11px;">www.experts-exchange.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.experts-exchange.com/Programming/Languages/.NET/Q_24036748.html"><DIV class="richText"><DIV> in order to check a <SPAN class="searchTerm">div's</SPAN> <SPAN class="searchTerm">properties</SPAN> in the codebehind, you need to convert to a <SPAN class="searchTerm"><NOBR><SPAN class="tfTextLink" id="tfTextLink6417328510875234">server</SPAN></NOBR></SPAN> control. To this, give it an ID, and add <SPAN class="searchTerm">runat</SPAN>="<SPAN class="searchTerm">server</SPAN>" to the tag.</DIV><BR /><DIV>Now it is a <SPAN class="searchTerm">server</SPAN> control of type HtmlGenericControl</DIV><BR /><DIV>You can set the control's visibility in the code behind by simply setting the visible <SPAN class="searchTerm">property</SPAN> to true or false</DIV><BR /><DIV>Now if you need to do this on the client side (and it's still a <SPAN class="searchTerm">server</SPAN> control):</DIV><BR /><DIV>var myDiv = document.getElementByID("<%<WBR></WBR>= DivID.ClientID %>");</DIV><BR />myDiv.visibility = 'visible'; //will show<BR />myDiv.visibility = 'hidden'; //will hide</DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/FEB15B94-4257-484A-92F7-956BCF904345/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK