CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/13/2006 8:20:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
netNewBee
Asp.Net User
How to pass input data from Master page to Content page9/13/2006 8:20:09 PM

0/0

Hi,
Does any one know how to pass data entered in a Textbox to a Content page?
In my Master page, I have a Textbox control and a Button control.  Once the button is clicked, I would like to display the value entered in the Textbox control on the Content's page.  Can any one show me how to accomplish this?

Thank you very much for your help!

netNewBee :-)
lostlander
Asp.Net User
Re: How to pass input data from Master page to Content page9/14/2006 3:40:42 AM

0/0

Try the code below, label1 is in content page: 
        Label lb = (Label)ContentPlaceHolder1.FindControl("label1");
        lb.Text = TextBox1.Text;

Note, I strongly recommend you not to do some coding in masterpage, basically, masterpage is all about layouts.
Also, here is a great article about how a masterpage should interact with content page, and vice versa.
Here it is:
http://www.odetocode.com/Articles/450.aspx

Regards!
Lostlander.

 

archu136
Asp.Net User
Re: How to pass input data from Master page to Content page12/20/2007 12:25:47 PM

0/0

Hi

i have placed usercontrol "ucHead"  in Master page .In ucHead i have label "Calender1" and 4 butttons

4 buttons for btnNextYear,btnPrevYear,btnNextMonth,btnPrevMonth

and i hav taken a hidden field and set its value to the calender1.selecteddate.toshortstring

now i want to use that hiddenfield value in contentpage

when ever i change the date that changed date i'm assigning to the hiddenfield ,

i'm able to pass this value but its not giving correct date

for ex: first time hiden field value=12/20/2007

if change date to 12/21/2007

in hidenfield value=12/21/2007

but in content page its displaying prevone ie 12/20/2007 

i have tried the following code in default.aspx

      Dim uc As UserControl
        uc = CType(Me.Master.FindControl("UsrHeader1"), UserControl)
        Dim mLblDate As HiddenField
        mLblDate = CType(uc.FindControl("hfDate"), HiddenField)
        If Not mLblDate Is Nothing Then
            'Set content page title to master page control
            lbldate.Text = mLblDate.Value
        End If

 

plz help me how to get the correct value in content page

thank u  

Archu 

archu136
Asp.Net User
Re: How to pass input data from Master page to Content page1/10/2008 11:38:49 AM

0/0

 Hi Frds

check this http://aspnet.4guysfromrolla.com/articles/013107-1.aspx

download the code example given and check

it solved my problem

thanks and regards

Archu 

 

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional Digital Photography Authors: Bill Erickson, Frank J. Romano, Pages: 317, Published: 1999
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
JavaScript and DHTML Cookbook: Solutions and Example for Web Programmers Authors: Danny Goodman, Pages: 520, Published: 2003
Systems and Impairments: Systems and Impairments Authors: Ivan P. Kaminow, Tingye Li, Pages: 1022, Published: 2002
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005

Web:
How to pass input data from Master page to Content page - ASP.NET ... How to pass input data from Master page to Content page. Last post 01-10-2008 6: 38 AM by archu136. 3 replies. Sort Posts: ...
ASP.NET.4GuysFromRolla.com: Passing Information Between Content ... Jan 31, 2007 ... The string input passed into this method is assigned to the Label Web .... To pass information from a content page to a Master Page, ...
Interacting with the Content Page from the Master Page : The ... The event delegate specifies what input parameters the event handler must accept . .... However, if you have a master page or content page that displays data ...
Page Numbering Point your page-sequence to a page-sequence-master that defines a repeatable sequence of .... During second pass you will generate content "on page ...
Setting Title and Meta Tag Data in an ASP.NET Page In the code behind for each Content Page, I call the SetMetaTags method in the Master Page and pass the unique values I want to use for Title, Description, ...
How do I pass a variable from my masterpage to a content page ... Experts, I have an asp:dropdown on my master page and I need to pass the value a user ... 4GL; Berkeley DB; Clarion; Contact Management; Data Manipulation ...
Access Controls Contained in a MasterPage through a Content Page ... The way it accomplishes this is by taking a string as input which is the ID of the ... This lets you specify which masterpage the content page uses for ...
ASP.NET, PayPal, and Google Checkout: The Solution! « .NET Discussion Your second MasterPage will essentially function as both a content page and a .... just go to a checkout page with the item clicked as your hidden input. ...
ColdFusion Tutorials - EasyCFM.COM Pass complex data in a hidden form field with Base64 .... NET-style master pages to replace your header/footer files for web page layout ...
Change contect pages master page in Page_PreInit : asp.net/vb.net, IE I would like to change the master page of the current content page based on the ... and pass a Querystring value specifiying master page to be loaded. ...

Videos:
Exploratory Testing Google Tech Talks March 16, 2006 Jon Bach




Search This Site:










jscript.net friendly?

removeabandonedcarts job

error: log viewer is currently unavailable. dnn 3.1

forums

icon issue

removing the background picture

announcing magichyperredirect: a free module to replace magicredirect

webstone/shadow module link down

formatted entries and creating another table into clubsite

how to know if running on virtual server?

login web appa from another web appb using network login id

remember me not working

publish website doesnt work

counter for ibuyspy portal

dnn database offline at webhost4life

could we use vs 2005 image library in our apps ?

error while trying to install on a shared hosting!

copying tab data to a new tab

looking for (before i code one myself)

how to use freetextbox from the code?

javascript code outliner

dnn for an "arty" 700x300 centred viewport site?

i can't get a vs2008 solution to compile (hangs)

how to different sitemap for admin and simple user

query builder gone haywire

tabs in 2.0

1.1 to 2.0 upgrade and publish to iis 6.0 server resulted in 'webform_postbackoptions is undefined'

skin not showing when logged in as admin/host

visual web developer express 2005 download problem

customize sitemap breadcrumb view with code behind

 
All Times Are GMT