<?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>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52470.aspx</link><pubDate>Tue, 14 Jul 2009 23:51:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52470</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52470.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52470</wfw:commentRss><description>&lt;P&gt;Πολύ ωραία! :)&lt;/P&gt;</description></item><item><title>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52467.aspx</link><pubDate>Tue, 14 Jul 2009 23:08:01 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52467</guid><dc:creator>thanosk</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52467.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52467</wfw:commentRss><description>Λύθηκε,&amp;nbsp; Ευχαριστώ!!!!!</description></item><item><title>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52466.aspx</link><pubDate>Tue, 14 Jul 2009 22:58:45 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52466</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52466.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52466</wfw:commentRss><description>&lt;P&gt;Αν δεν μας δείξεις κώδικα, ψάχνουμε στα τυφλά με υποθέσεις. Βάλε και από την MasterPage.Master και την ContentForm.aspx.&lt;/P&gt;
&lt;P&gt;Όσο για τα Properties:&lt;/P&gt;
&lt;P&gt;MasterPage.Master.cs&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;bool&lt;/SPAN&gt; Menu2Visible
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;get
&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&lt;/SPAN&gt; Menu2.Visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;set
&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&lt;/SPAN&gt; (Menu2.Visible !&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; value) Menu2.Visible &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; value;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;FONT size=2 face=Tahoma&gt;ContentForm.aspx.cs&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;FONT size=2 face=Tahoma&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Master.Menu2Visible &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; value; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:green;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;// true / false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description></item><item><title>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52465.aspx</link><pubDate>Tue, 14 Jul 2009 21:42:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52465</guid><dc:creator>thanosk</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52465.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52465</wfw:commentRss><description>gtas,&lt;br&gt;&lt;br&gt;Το δοκίμασα όπως μου είπες αλλά πάλι το ίδιο μήνυμα λάθους πέρνω &lt;img src="http://www.dotnetzone.gr/cs/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;br&gt;&lt;br&gt;Σχετικά με τα Properties που ανέφερες μπορείς να δώσεις κανένα μικρό παράδειγμα, γιατί δεν κατάλαβα τι εννοείς...&lt;br&gt;&lt;br&gt;Ευχαριστώ&lt;br&gt;</description></item><item><title>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52462.aspx</link><pubDate>Tue, 14 Jul 2009 20:25:31 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52462</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52462.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52462</wfw:commentRss><description>&lt;P&gt;Έχεις βάλει στην ContentWebForm σου το παρακάτω MasterType directive?&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ MasterType VirtualPath="~/MasterPage.Master" %&amp;gt;&lt;/P&gt;
&lt;P&gt;Προσπάθησε προσθέτοντας και αυτό κάτω από το Page directive. Καλό θα είναι επίσης να δημιουργήσεις Properties&lt;/P&gt;
&lt;P&gt;στην MasterPage σου για να μην χρειάζετε να χρησιμοποιείς την FindControl(); Έτσι θα έχεις πρόσβαση κάπως έτσι:&lt;/P&gt;
&lt;P&gt;Master.Menu2Visible = True;&lt;/P&gt;</description></item><item><title>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52451.aspx</link><pubDate>Tue, 14 Jul 2009 16:28:31 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52451</guid><dc:creator>thanosk</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52451.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52451</wfw:commentRss><description>Ουσιαστικά μου βγάζει μήνυμα λάθους.&lt;br&gt;&lt;br&gt;Ο κώδικας είναι ο παρακάτω :&lt;br&gt;&lt;br&gt;If myReader.Read Then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Master.Page.FindControl("Menu2").Visible = True&lt;br&gt;Else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write("Wrong user")&lt;br&gt;End If&lt;br&gt;&lt;br&gt;και το μήνυμα λάθους που έχω είναι :&lt;br&gt;&lt;br&gt;&lt;font color="#ff0000" face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;/font&gt;&lt;br&gt;&lt;br&gt;Δεν ξέρω αν δεν δηλώνω σωστά την MasterPage&lt;br&gt;</description></item><item><title>Απ: Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52442.aspx</link><pubDate>Tue, 14 Jul 2009 02:52:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52442</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52442.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52442</wfw:commentRss><description>&lt;P&gt;Έχεις κάποιο πρόβλημα? ή δεν μπορείς γενικά, να έχεις πρόσβαση στα&amp;nbsp;controls της MasterPage?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Visible Control in Master Page</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/52441.aspx</link><pubDate>Tue, 14 Jul 2009 02:28:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:52441</guid><dc:creator>thanosk</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/52441.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=52441</wfw:commentRss><description>Καλησπέρα σε όλους.&lt;br&gt;&lt;br&gt;Έχω το εξής πρόβλημα.&lt;br&gt;Έχω μια MasterPage με 2 Menus. Το Menu1 που είναι Visible=True και το Menu2 που είναι Visible=False&lt;br&gt;Έχω μια δεύτερη σελίδα που έχει σαν Master την MasterPage.&lt;br&gt;Έκει έχω μια Procedure όπου όταν την καλώ και είναι true θέλω να γίνεται το Menu2 σε Visible=True &lt;br&gt;&lt;br&gt;Μήπως μπορείτε να δώσετε κάποια βόηθεια??&lt;br&gt;&lt;br&gt;&lt;br&gt;Ευχαριστώ&lt;br&gt;</description></item></channel></rss>