CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/10/2007 5:25:05 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 47 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
karthisena
Asp.Net User
Master page and Java Script7/10/2007 5:25:05 AM

0/0

Hi

i use followin script in vs2003.

now i am trying to use in  master page in vs2005 . but i cant do it.

the script is

 

 

  <Form> 

<INPUT id="ErrMsg" type="hidden" name="ErrMsg" runat="server"><input id="Cheque_Date" type="hidden" name="Cheque_Date" runat="server"><input id="hnPrimaryKey" type="hidden" name="hnPrimaryKey" runat="server">
  </Form>

 <SCRIPT language="javascript">
   if (document.all.ErrMsg.value != "")
   {
   alert(document.all.ErrMsg.value);
   }
  </SCRIPT>

 

now how to i call this script in master page.please give some tips.

Regards


KarthiSena
akjoshi
Asp.Net User
Re: Master page and Java Script7/10/2007 6:59:54 AM

0/0

Try to use getElementById instead of document.all, and you will need to use the clientID of the control as the id of the controls will be changed...

like this -

<SCRIPT language="javascript">

if (document.getElementById('<%=ErrMsg.ClientID%>').value != "")

{

alert(document.getElementById(
'<%=ErrMsg.ClientID%>').value);

}

</SCRIPT>


Aj
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Professional Community Server Themes Authors: Wyatt Preul, Benjamin Tiedt, Pages: 337, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Foundations of ASP.NET AJAX Authors: Robin Pars, Laurence Moroney, John Grieb, Pages: 268, Published: 2007
The World Wide Web for Scientists & Engineers: A Complete Reference for Navigating, Researching & Publishing Online Authors: Brian J. Thomas, Pages: 357, Published: 1998
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Pro Sharepoint 2007 Development Techniques Authors: Margriet Bruggeman, Nikander Bruggeman, Pages: 484, Published: 2007
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005

Web:
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 ...
ASP.NET 2.0 Master page and Javascript Jan 10, 2007 ... I have Master page and other web pages which uses this masterpage, and I tried to use some functions within javascript.js file in my web ...
Problem with Javascript in Master Pages- Any Ideas? - ASP.NET Forums I needed to dynamically change the Master Page's body tag's onLoad javascript from a content control. Here's a link to the article that ...
master page interaction - JavaScript / DHTML / AJAX master page interaction - JavaScript / DHTML / AJAX Community and Forum - Our JS / DHTML / AJAX forum is the place for Q&A-style discussions ...
Javascript menu call with MasterPage subfolders : Javascript, IE 6 ... Here's the story.... I have an ASP.net MasterPage in my root directory. The MasterPage has a menu. The menu has references to .aspx files in subdirectories.
Adding Javascript file link in Master Page Adding Javascript file link in Master Page. Sunday, January 14, 2007 9:58 PM. Adding a referece of Javascript files in Master Pages is a pain. ...
Getting master page ClientID in Javascript - DevX.com Forums Getting master page ClientID in Javascript ASP.NET.
MVC, nested masterpage and Javascript - .NET ASP MVC, nested masterpage and Javascript. Get answers to your questions in our .NET ASP forum.
How to add startup JavaScript code from Content Page to Master Page Aug 9, 2008 ... JavaScript code registered like this will be executed immediately after the page finishes loading but before Master Page's PageLoad event is ...
Making postback/AJAX request from javascript in user control ... Grid in Master page and RaisePostBackEvent handling. The approach is pretty much the same ... Untitled Page




Search This Site:










utilising roles in generating a menu

runtime determination imagebutton or button

include labels in a master page that are assigned text by pages

using an html template in an asp.net site

no "select master page" on new item dialog

how to create nodes dynamically for treeview control using c#

using menu as site navigation

master page/content page problem

unable to reach the menuitemclick event handler

protect folders and nodes by role

menu control query!

order page events (with master & child)

finding folder sitemap file

listing content place holderers of a masterpage???

treeview - hide node based on security roles with querystring urls

is asp:menu seo friendly?

need to manually refresh page after an event is fired

problems with internet explorer 7

passing parameter from one user control to another

difference between master page and css?

table height issues master page based pages

resize or hide part of an asp.net page using a splitter

trying to initiate a pop up page.

custom sitemap provider, problem setting staticmenuitemstyle in menu control

how to use map property in image control inasp.net 2.0

bizarre master page table "interference"

using images within .asp menu control

treeview asp.net 2.0 api reference?

master page hell

changing page.title when header isn't runat=server

  Privacy | Contact Us
All Times Are GMT