Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:743397
More Search Options
RSS Available
Matching Posts
Re: Master page, javascript and pop-up calender
Thanks for all your help and sorry for the late reply as i was sick..... I somehow figure out that all i need to change on the script and it work fine. Yet thanks again for all your help Below is the sample code that i got it working: window.opener.document.forms[0].ctl00_ContentPlaceHolder1_" + Request.QueryString[ "textbox2" ].ToString() + ".value = '" + CalPopup.SelectedDate.ToString( "dddd" ) + "';" + "self.close()"
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/30/2008
Re: Master page, javascript and pop-up calender
Basically the instruction you gave me require me to code like this < script runat ="server"> function openCalendar() { var testtt = document.getElementById( "ttt" ); var site = "CalendarPopUp.aspx?textbox=" + testtt.value; window.open(site, 'cal' , 'width=220,height=200,left=270,top=180' ); } </ script > OR like this: < script runat ="server"> </ script > As i receive error when i place in the code... mostly on the code
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/27/2008
Re: Master page, javascript and pop-up calender
Sorry to say i don't really understand.... Is there any other method i can do to get a workable pop-up calender function that work on pages that has master page?
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/27/2008
Re: Master page, javascript and pop-up calender
Well to make things easier this is what stored in Calender3.aspx which only has source code <% @ Page Language ="C#" MasterPageFile ="~/MasterPage.master" AutoEventWireup ="true" CodeFile ="Calender3.aspx.cs" Inherits ="Calender3" Title ="Untitled Page" %> < asp : Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" Runat ="Server"> < script type ="text/javascript">
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/26/2008
Re: Master page, javascript and pop-up calender
Nope... that part of code stored in Calender3.aspx is actually functioning fine which it actually open another page which is Calender2.aspx that doesn't use master page and it display the calender for user to select. Once user has select the date wanted, the coding in Calender2.aspx will send the value back to Calender3.aspx textbox and close Calender2.aspx So the problem here is that value cannot be send back to Calender3.aspx and it doesn't close as well...
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/26/2008
Re: Master page, javascript and pop-up calender
I forget to mention that Calender3.aspx uses master page while Calender2.aspx didn't use master page. As the Calender2.aspx is where the calender selection control is located. The problem i face is once i select a date on the calender it just doesn't seem to close and no value is return on two of the textbox located inside Calender3.aspx This is the source code on my master page which i can say its quite empty: <% @ Master Language ="C#" AutoEventWireup ="true" CodeFile
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/26/2008
Master page, javascript and pop-up calender
I'm very new in javascript and basically just understood the concept of master page.. So this is the problem i face... I google around to create a pop-up calender and found sample of source code using javascript. The code somehow work but not in web page that uses master page.... Below is the code that i use: <% @ Page Language ="C#" MasterPageFile ="~/MasterPage.master" AutoEventWireup ="true" CodeFile ="Calender3.aspx.cs" Inherits ="Calender3"
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/26/2008
Re: Master Page and ImageButton issue....
Thanks for the guidance as i finally got it working by checking out the site Below are the source code that i tested out: string defineImageButton = "image1ImageButton" ; ImageButton imgButton = ( ImageButton )Master.FindControl( "ContentPlaceHolder1" ).FindControl(defineImageButton); imgButton.Visible = false ;
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/24/2008
Re: Master Page and ImageButton issue....
I tried but doesn't seem to work as well.... And yes i already create the ImageButton on the web page that has master page This is the code that i tried string defineImageButton = "image1ImageButton" ; ImageButton imgButton = ( ImageButton ) this .Master.FindControl(defineImageButton); imgButton.Visible = false ;
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/24/2008
Master Page and ImageButton issue....
I'm using Visual Studio 2005 and C# So my problem is that the code i run below does work on page that doesn't use Master Page but once i use Master Page it just doesn't seem to be able to work. Is there anything i need to add in order for this code to work on web pages that has Maste Page? string defineImageButton = "test1ImageButton" ; ShowImageButton = ( ImageButton ) this .FindControl(defineImageButton); ShowImageButton.Visible = false ;
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
storm721984
on 1/24/2008
Page 1 of 6 (51 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online