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: 8/13/2007 5:08:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 36 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Ammi
Asp.Net User
Script doesnot work when using a masterpage.8/13/2007 5:08:33 PM

0/0

Hi,

I have a popup calendar. This calendar(Calendar.aspx) pops from the page Default.aspx page. In SelectionChanged eventhandler of this calendar i am using this code

protected void calSource_SelectionChanged(object sender, EventArgs e)

{

string strScript = "<script>window.opener.document.forms(0).txtFromDate.value = '";

strScript += calSource.SelectedDate.ToString("MM/dd/yyyy");

strScript += "';self.close()";

strScript += "</" + "script>";

ClientScript.RegisterClientScriptBlock(this.GetType(), "anything", strScript);

}

My problem is that, this code works when i am not using masterpage for the default page. But when i use masterpage for the default page this code(script) doesn't work.

in both the cases calendar.aspx does not use masterpage. Why is this happening?

 

thanks,

Ammi

huenemeca
Asp.Net User
Re: Script doesnot work when using a masterpage.8/13/2007 5:45:08 PM

0/0

I would be that when you are using the Masterpage the textbox txtFromDate has a different name. 

Check it out and then use txtFromDate.ClientID to get the assigned name for that textbox.


http://www.2DoNext.com
Ammi
Asp.Net User
Re: Script doesnot work when using a masterpage.8/15/2007 12:17:27 PM

0/0

Hey huenemeca,

Thanks for the answer. It works now.

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


Free Download:

Books:
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Macromedia Dreamweaver 8 with ASP, Coldfusion and PHP: Training from the Source Authors: Jeffrey Bardzell, Pages: 508, Published: 2005
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Professional C# 2005 with .NET 3.0 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1748, Published: 2007
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006

Web:
Javascript doesnot work with Master Page. : C# , Javascript,.Net, IE7 Javascript doesnot work with Master Page. .... . This code is a cleaner and doesn’t depend on the magic string “FooterLabel”. ..... Remember our early discussion on how master pages work. ...
reference to js file in master page - ng.asp-net-forum ... Using the tilde doesn't work, it isn't interpreted by .net because the script tag isn't a .net item, and the other option given was the original I used! ...
Using a greybox within a Content page of a Masterpage - GreyBox ... However, I am having major problems getting the greybox to work from a content page within a Masterpage. I am using Visual Studio (.NET 2.0, C#) 2005. ... < script type="text/javascript" src="common/AJS.js"> ... to cause this exponential scrollbar which does not allow me to see anything. ...
Customizing Master Pages in Windows SharePoint Services If a master page is customized using Office SharePoint Designer, Windows SharePoint ... Remember, however, that although compiled master pages can contain inline script, ... sitecollection does not work, Last Edit 12:56 PM by User77 ...
popup calendar when using Masterpage - bytes Nov 19, 2005 ... Dim strjscript As String = "




Search This Site:










need help with menu navigation control

style sheets inclusion on demand

2 child pages pulled in to a master

regarding master page

read from master of a master!!! (not 1 master but 2)

problem rendering asp:menu control on a w2k server machine using ssl.

linkbutton onclick method

change sitemap attributes in runtime and store sitemap in cache

simple master pages question

add contentholder automatically to the content page

imagebutton problem!

asp menu control not updating properly

two level menus

master page folder level

localizing sitemaps

remove parent node(s) from asp.net 2.0 treeview...???

asp.net 2.0 menu control problems

maintaining tabs with nested sitemap nodes

menu item selected does not allow item value to be stored in a cookie

how to access a master's page control from default.aspx page

theme colour

treeview xhtml transitional validation error

css files

master.page updating header

menu control running javascript problem

asp menu control question

error: object expected. what am i missing?

image not visible in vs 2008

populating and expanding many treeview with a single click

problems of asp .net 2.0 treeview control

  Privacy | Contact Us
All Times Are GMT