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
33 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
Agony as a father has to decide: Do I save my wife or my son?
The Arabs Have Stopped Applauding Obama
An Inconvenient Truth: "cherry-picked" Data
20 Stunning Landscape Photos
24 Impressive Black & White Photos
Baby With Burned Hands Has Legs Mistakenly Amputated
Strategist given warning from White House: never appear on Fox News
25 Awesome Cubicle Pranks
Maldives – Most Breathtaking Pictures.
Foods that make you happy
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://www.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/6366ca14-705b-4f8b-87db-4fa5e78b08d3/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://content6.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