<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET WebForms</title><link>https://www.dotnetzone.gr:443/cs/forums/13/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, σε ASP.NET WebForms</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Ερώτηση σχετικά με τα ids των asp.net controls</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/51915.aspx</link><pubDate>Mon, 22 Jun 2009 02:40:00 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:51915</guid><dc:creator>sakalis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/51915.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=51915</wfw:commentRss><description>Μα se clientside πρεπει να χρησιμοποεισεις όλο clientID. Σε server side το control.id ειναι αρκετό. Στο google θα βρεις αρκετά παραδείγματα για javascript και clientid&lt;br&gt;</description></item><item><title>Απ: Ερώτηση σχετικά με τα ids των asp.net controls</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/51896.aspx</link><pubDate>Sun, 21 Jun 2009 20:42:45 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:51896</guid><dc:creator>epp1123</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/51896.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=51896</wfw:commentRss><description>Αυτό είναι βασικά, αλλά έχει το κακό κουσούρι πως αν το control σου είναι μέσα σε άλλο control το ClientID ουσιαστικά είναι το concatenation του id του control και του unique id του parent control. Και για του λόγου το αληθές: &lt;br&gt;&lt;br&gt;&lt;i&gt;Sometimes, it is not possible to assign a unique name to a control. For example, if a &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl35" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.aspx"&gt;Repeater&lt;/a&gt;&lt;/span&gt; control contains a &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl36" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.label.aspx"&gt;Label&lt;/a&gt;&lt;/span&gt; control in one of its templates, an instance of that &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl37" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.label.aspx"&gt;Label&lt;/a&gt;&lt;/span&gt; control is rendered for each item in the &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl38" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.aspx"&gt;Repeater&lt;/a&gt;&lt;/span&gt;
control. To prevent naming conflicts when multiple instances of a
control are rendered, ASP.NET automatically generates a unique &lt;span&gt;&lt;span class="selflink"&gt;ClientID&lt;/span&gt;&lt;/span&gt; value for each server control on a page. The &lt;span&gt;&lt;span class="selflink"&gt;ClientID&lt;/span&gt;&lt;/span&gt; value is generated by concatenating the &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl39" href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.id.aspx"&gt;ID&lt;/a&gt;&lt;/span&gt; value of the control and the &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl40" href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.uniqueid.aspx"&gt;UniqueID&lt;/a&gt;&lt;/span&gt; value of its parent control. If the &lt;span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl41" href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.id.aspx"&gt;ID&lt;/a&gt;&lt;/span&gt;
value of the control is not specified, an automatically generated value
is used. Each part of the generated ID is separated by an underscore
character (_).&lt;/i&gt;&lt;br&gt;&lt;br&gt;(http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientid.aspx)&lt;br&gt;&lt;br&gt;Για αυτό ρώτησα αν γίνεται να έχουμε μόνο το "χρηστικό" κομμάτι του ονόματος, γιατί θέλω να το χρησιμοποιήσω σε client side προγραμματισμό όχι server side.&amp;nbsp; Να είχα τόσα μεγάλα ονόματα θα ήταν δύσκολο μετά στη συντήρηση - διαχείριση του javascript. Τέλος πάντων, εγώ μια φορά την απάντηση μου την πήρα. Ευχαριστώ πολύ! &lt;img src="http://www.dotnetzone.gr/cs/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;</description></item><item><title>Απ: Ερώτηση σχετικά με τα ids των asp.net controls</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/51892.aspx</link><pubDate>Sun, 21 Jun 2009 19:57:29 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:51892</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/51892.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=51892</wfw:commentRss><description>&lt;P&gt;Φαντάζομαι εννοείς να γίνει αυτό σε serverside; Πρέπει να χρησιμοποιήσεις το &lt;A href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientid(VS.71).aspx"&gt;ClientID&lt;/A&gt; property.&lt;/P&gt;</description></item><item><title>Ερώτηση σχετικά με τα ids των asp.net controls</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/51891.aspx</link><pubDate>Sun, 21 Jun 2009 19:41:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:51891</guid><dc:creator>epp1123</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/51891.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=51891</wfw:commentRss><description>Καλησπέρα. Έστω ότι έχω ένα control με id = "&lt;b&gt;ctl00_MasterPageContentPlaceHolder_thumb&lt;/b&gt;". Γίνεται με κάποιο τρόπο να κόψω το "&lt;b&gt;ctl00_MasterPageContentPlaceHolder_&lt;/b&gt;" και να κρατήσω το "&lt;b&gt;thumb&lt;/b&gt;" μόνο;&lt;br&gt;&lt;br&gt;Ευχαριστώ&lt;br&gt;</description></item></channel></rss>