<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-392910430806464363</id><updated>2011-04-21T15:10:36.504-07:00</updated><title type='text'>:: where you can rely on</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bna-integrated.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/392910430806464363/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bna-integrated.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>BNa</name><uri>http://www.blogger.com/profile/09641382251300615543</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-392910430806464363.post-3975889411568030545</id><published>2009-02-28T22:18:00.000-08:00</published><updated>2009-02-28T22:19:37.077-08:00</updated><title type='text'>Passing value from from contentplaceholder to masterpages</title><content type='html'>While I was developing a web application for tracking tasks/jobs among employees, I was having a problem to pass a value from pages in contentplaceholder to it's main masterpages. Since I was trying to adapt this new features of asp.net 2.0 of having masterpages as a replacement for it's "frame", it was difficult to understand for the first time on how this masterpages works.&lt;br /&gt;After converting into masterpages&lt;br /&gt;&lt;br /&gt;I want my left side menu to be on/off depending on the task. If the user had saved the task, then the next stage will be enable or else the user won;t be allowed to go into next level if he doesn't save the task.&lt;br /&gt;Therefore, I need some indicator says that the task have been saved. I place one hidden value in that particular page. When the user clicks the button "Save", the value of hidden button will be "Saved". In the meantime, in masterpages code behind, I place a function to interate all the controls that available in contenplaceholder (after struggling google for an answers finally!), erm but before that, you need to add this&lt;br /&gt;in your page before you go to the masterpages page.&lt;br /&gt;sO, in the codebehind add this function to look for a control created in the contentplaceholder.&lt;br /&gt;Function GetData(ByVal CtrlID As String) As String&lt;br /&gt;Dim ph As ContentPlaceHolder = CType(Page.Master.FindControl("ContentPlaceHolder1"), ContentPlaceHolder) If Not ph Is Nothing Then Dim hidval As HtmlInputHidden = CType(ph.FindControl(CtrlID), HtmlInputHidden)&lt;br /&gt;If Not hidval Is Nothing Then Return hidval.Value End If End If&lt;br /&gt;Return String.Empty&lt;br /&gt;End Function&lt;br /&gt;..then in Page.Load event, I'll call this function, so that my disable link will be enable once the user clicks the save button in contentplaceholder page..taDaa!!!&lt;br /&gt;If Page.IsPostBack = False ThenHidden1.Value=GetData(Hidden1.Value)&lt;br /&gt;if hidden1.value&lt;&gt;"" then 'enable linkelse'disable linkend if&lt;br /&gt;End If&lt;br /&gt;Hope it helps!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/392910430806464363-3975889411568030545?l=bna-integrated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bna-integrated.blogspot.com/feeds/3975889411568030545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bna-integrated.blogspot.com/2009/02/passing-value-from-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/392910430806464363/posts/default/3975889411568030545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/392910430806464363/posts/default/3975889411568030545'/><link rel='alternate' type='text/html' href='http://bna-integrated.blogspot.com/2009/02/passing-value-from-from.html' title='Passing value from from contentplaceholder to masterpages'/><author><name>BNa</name><uri>http://www.blogger.com/profile/09641382251300615543</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-392910430806464363.post-7113400510178822214</id><published>2009-01-15T00:39:00.000-08:00</published><updated>2009-01-15T00:44:18.802-08:00</updated><title type='text'>:: Welcome partners!</title><content type='html'>:: this blog is created just to share some of our knowledge and expertise in some of the subject areas..&lt;br /&gt;&lt;br /&gt;feel free to view and don't &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;hesitate to drop a comment so that we can improve our services...&lt;/span&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected"&gt;bYe&lt;/span&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected"&gt;regards&lt;/span&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected"&gt;-BNa Integrated&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/392910430806464363-7113400510178822214?l=bna-integrated.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bna-integrated.blogspot.com/feeds/7113400510178822214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bna-integrated.blogspot.com/2009/01/welcome-partners.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/392910430806464363/posts/default/7113400510178822214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/392910430806464363/posts/default/7113400510178822214'/><link rel='alternate' type='text/html' href='http://bna-integrated.blogspot.com/2009/01/welcome-partners.html' title=':: Welcome partners!'/><author><name>BNa</name><uri>http://www.blogger.com/profile/09641382251300615543</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
