Click here to Skip to main content
16,007,885 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: can use two events in the same button Pin
Kissy1623-Aug-06 19:21
Kissy1623-Aug-06 19:21 
GeneralRe: can use two events in the same button Pin
_AK_23-Aug-06 19:36
_AK_23-Aug-06 19:36 
GeneralRe: can use two events in the same button Pin
Kissy1623-Aug-06 22:03
Kissy1623-Aug-06 22:03 
GeneralRe: can use two events in the same button Pin
_AK_23-Aug-06 22:08
_AK_23-Aug-06 22:08 
GeneralRe: can use two events in the same button Pin
Kissy1623-Aug-06 19:40
Kissy1623-Aug-06 19:40 
QuestionPop Up Calendar not working inside Master Page Pin
Ashishhere23-Aug-06 1:06
Ashishhere23-Aug-06 1:06 
AnswerRe: Pop Up Calendar not working inside Master Page /same with me Pin
Naveed Kamboh23-Aug-06 3:10
Naveed Kamboh23-Aug-06 3:10 
AnswerRe: Pop Up Calendar not working inside Master Page [modified] Pin
ToddHileHoffer23-Aug-06 3:11
ToddHileHoffer23-Aug-06 3:11 
I have a calendar popup that I use as well. Here is the code behind.

<br />
<br />
public partial class UserControls_CalendarPopUp : System.Web.UI.Page<br />
{<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        if (Request.QueryString["DefaultDate"] != "")<br />
        {<br />
            this.Cal.SelectedDate = DateTime.Parse(Request.QueryString["DefaultDate"].ToString());<br />
        }<br />
    }<br />
    protected void Cal_SelectionChanged(object sender, EventArgs e)<br />
    {<br />
        string StrTB;<br />
        string StrJs;<br />
<br />
        StrTB = Request.QueryString["TB"].ToString();<br />
        StrJs = "<script> opener.window.document.getElementById('" + StrTB + "').value = '" + this.Cal.SelectedDate.ToShortDateString() + "' ; window.close(); </script>";<br />
        this.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), @"<script type=""text/javascript"">UpdateOpener();</script>", StrJs);<br />
    }<br />
}<br />
<br />
<br />
//Code from the page that calls the popup calendar.<br />
 protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        //The following is added to the page that calls the popup calendar<br />
        if (!IsPostBack)<br />
        {<br />
            this.imgCalIcon.Style.Add("Cursor", "pointer");<br />
            this.imgCalIcon.Attributes.Add("onclick", @"popupCal('" + this.TxtDate.ClientID.ToString() + @"', '" + sDefaultDate+@"');");<br />
       }<br />
<br />
    }<br />
<br />
<br />
<br />
Finall the javascript on the page with the image<br />
<br />
    function popupCal(TextBox, DefaultDate)<br />
	{<br />
	settings=<br />
	"toolbar=no,location=no,directories=no,"+<br />
	"status=no,menubar=no,scrollbars=no,"+<br />
	"resizable=no,width=230,height=186;"<br />
    MyNewWindow= open("../UserControls/DateTextBox/PopUpCalendar/CalendarPopUp.aspx?TB="+TextBox+"&DefaultDate="+DefaultDate,"CalFrom",settings);<br />
	}<br />
<br />

One more thing don't forget to change the link to the CalendarPopUp.aspx. It will have to point to the directory where you put the calendar page.




how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06

Questionanchor not firing in contentplaceholder1 Pin
TintinV3ck23-Aug-06 0:37
TintinV3ck23-Aug-06 0:37 
QuestionIs Microsoft Obseleting the VB 6 support Pin
imshally8123-Aug-06 0:33
imshally8123-Aug-06 0:33 
AnswerRe: Is Microsoft Obseleting the VB 6 support Pin
Not Active23-Aug-06 1:30
mentorNot Active23-Aug-06 1:30 
GeneralRe: Is Microsoft Obseleting the VB 6 support Pin
imshally8123-Aug-06 19:55
imshally8123-Aug-06 19:55 
Questionhow to update my listbox Pin
Kissy1622-Aug-06 23:59
Kissy1622-Aug-06 23:59 
AnswerRe: how to update my listbox Pin
Paddy Boyd23-Aug-06 0:45
Paddy Boyd23-Aug-06 0:45 
GeneralRe: how to update my listbox Pin
Kissy1623-Aug-06 0:50
Kissy1623-Aug-06 0:50 
GeneralRe: how to update my listbox Pin
_AK_23-Aug-06 1:40
_AK_23-Aug-06 1:40 
GeneralRe: how to update my listbox Pin
Paddy Boyd23-Aug-06 5:19
Paddy Boyd23-Aug-06 5:19 
QuestionDatagrid update problem Pin
ypsyong22-Aug-06 23:55
ypsyong22-Aug-06 23:55 
AnswerRe: Datagrid update problem Pin
Paddy Boyd23-Aug-06 0:46
Paddy Boyd23-Aug-06 0:46 
QuestionNeural Networks Pin
Vsree22-Aug-06 23:51
Vsree22-Aug-06 23:51 
AnswerRe: Neural Networks Pin
Sathesh Sakthivel23-Aug-06 0:04
Sathesh Sakthivel23-Aug-06 0:04 
GeneralRe: Neural Networks Pin
Vsree23-Aug-06 0:12
Vsree23-Aug-06 0:12 
GeneralRe: Neural Networks Pin
Paddy Boyd23-Aug-06 0:47
Paddy Boyd23-Aug-06 0:47 
QuestionRe: Neural Networks Pin
Vsree23-Aug-06 1:25
Vsree23-Aug-06 1:25 
AnswerRe: Neural Networks Pin
BalasahebK23-Aug-06 2:58
BalasahebK23-Aug-06 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.