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: 4/18/2007 5:22:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
darin_g_hanson@
Asp.Net User
Masterpage GetElementByID4/18/2007 5:22:09 PM

0/0

<asp:Repeater runat="server" id="rptTest" />

     <ItemTemplate>

        <asp:TextBox onChange='return Compute()' runat="server" ID='txtVote'></asp:TextBox>

    </ItemTemplate>

 </asp:Repeater>

 

If this code is on a content page within a masterpage, how can I reference the "txtVote" text box using document.GetElementByID within Javascript? When the user types in a value in any of the textboxes in the repeater, I want to add those values to a summary label at the bottom of the page.

 

 Thanks!
 

 

pixelsyndicate
Asp.Net User
Re: Masterpage GetElementByID4/18/2007 5:46:02 PM

0/0

as far as the clientside Javascript is concerned, the textbox in the masterpage or on a content page should appear to be a part of the page itself and you could use

document.getElementById("text1").value;
// if its in a form, then you can get it these ways...
document.formname.textboxname.value
// or
document.forms[0].textboxname.value;

 Its different of course if you are using .NET, because the code will know that the textbox isn't a part of the page, and you would need to use something like this to get at a textbox on a masterpage..

((TextBox)this.Master.FindControl("TextBox1")).Visible = false;
 
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools." ~ Douglas Adams

http://pixelsyndicate.com/ps/
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 AJAX: Written and Tested with the Final 1.0 Release Version of ASP.NET AJAX for ASP:NET 2.0 Authors: Wallace B. McClure, Paul Glavich, Scott Cate, Steve C. Orr, Craig Shoemaker, Steven A. Smith, Jim Zimmerman, Pages: 344, Published: 2007
Windows Developer Power Tools: Turbocharge Windows Development with More Than 140 Free and Open Source Tools Authors: James Avery, Jim Holmes, Pages: 1263, Published: 2006
Pro Ajax and the .NET 2.0 Platform Authors: Daniel Woolston, Pages: 463, Published: 2006
VB.NET, ASP.NET, Microsoft Ajax entraînez-vous à créer une suite bureautique avec Visual Studio 2005 Les TP informatiques Authors: Brice-Arnaud Guérin, Pages: 324, Published: 2007
C # - ASP.NET - Microsoft Ajax Entra nez-vous cr er une suite bureautique (Visual Studio 2005): entraînez-vous à créer une suite bureautique en ligne avec Visual Studio 2005 Authors: Brice-Arnaud Guérin, Pages: 325, Published: 2007

Web:
p2p.wrox.com Forums - document.getElementById doesnt work in ... NET 2.0 Professional > document.getElementById doesnt work in master page ... I have implemented template.master page in default.aspx. ...
CodeProject: Masterpage and Javascript document.getElementById ... This article talks about the issues faced in accessing the controls inside a Masterpage from Javascript, and points a quick solution; Author: Rajganesh ...
Masterpages and Javascript Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object which I guess means that the masterpage is causing ...
GetElementbyID question - within MasterPage/contentpage - within ... GetElementbyID question - within MasterPage/contentpage - within tables. Get answers to your questions in our .NET ASP forum.
DotNetSlackers: Masterpage and Javascript document.getElementById Masterpage and Javascript document.getElementById. Posted by: The Code Project Latest Articles, on 14 Dec 2007 | View original ...
document.getElementbyid, not workign with pages having master page ... ok! even the page which is not under any master page is not working with my script. i.e. document.getelementbyid(<%=mylabel. ...
Getelementbyid Issue While Using Master Page — Blogs, Pictures ... Master page is an excellent feature provided in Asp.Net version 2.0. It is a common practice to give the user same look and feel across your site. ...
Basics: Master Page FAQ - Eric Wise getElementById("<%=dvMyDiv.ClientID %>").style.display="none"; ... i have made one masterpage, i have one public method on the master page. ...
getElementById in masterpages? - ASP.NET Forums getElementById in masterpages? Last post 04-11-2006 8:06 AM by NC01. 4 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Rajganesh Writes: Masterpage – document.getElementById Issue Masterpage – document.getElementById Issue. Masterpage is one of the good features of the ASP.NET 2.0. But if you are a beginner in .NET 2.0 and Masterpage, ...




Search This Site:










cant post an add.

multiple dnn using indl virt servers and keepalive.aspx

solpart menu question

send info from child page to the parent page???

always getting two build errors, dotnetnuke.dll and .pdb in use/locked

act availability ?

help! when i build in vs2005 ..the error out! about the theme

santry resource manager 2.0 - user review

msdn subscription changes for vs2005 on msdn web site

link button in the header template

trouble with registration page

storing images

can't open my asp.net web site

<<help >>

visual studio 2005 web deployment projects (beta v2 preview)

grid layout panel in vwd 2005 express

microsoft.web.ui.webcontrols.treeview problem

to: ed degagne

how to do what connected user will see only his account, and only his money balance

create a message board on the page?

images for commerce kit

windows authentication

google adsense search

tilde symbol ~ not working after url rewrite

heme 'xxx' cannot be found in the application or global theme directories. iis

cookie - code behind vs javascript

portal default page can't even start.

asp.net page outside forms authentication, solution plz?

i need few answers for these dotnet questions.

lost step into menu option and toolbar button

 
All Times Are GMT