Click here to Skip to main content
15,894,017 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 11:10
indian14327-Jun-12 11:10 
QuestionCalculations in vb.net Pin
Fiona Tan27-Jun-12 7:05
Fiona Tan27-Jun-12 7:05 
GeneralRe: Calculations in vb.net Pin
jkirkerx27-Jun-12 7:23
professionaljkirkerx27-Jun-12 7:23 
QuestionMultiple bookings using arraylist Pin
Fiona Tan27-Jun-12 7:03
Fiona Tan27-Jun-12 7:03 
AnswerRe: Multiple bookings using arraylist Pin
Sandeep Mewara27-Jun-12 8:13
mveSandeep Mewara27-Jun-12 8:13 
QuestionCustom pageing Pin
kuldeep vatsal27-Jun-12 2:39
kuldeep vatsal27-Jun-12 2:39 
AnswerRe: Custom pageing Pin
Sandeep Mewara27-Jun-12 4:47
mveSandeep Mewara27-Jun-12 4:47 
Generalhow to save Ajax CalendarExtender value in a textbox.text Pin
sheringkapoting27-Jun-12 2:13
sheringkapoting27-Jun-12 2:13 
Frnds,

I have a textbox txtSalaryMonth which displays the value of Ajax CalenderExtender on click of a Image.
But when I press Another button btnOK to send the calendarVale as paramenter to Database..
It shows txtSalaryMonth.text as null...
My txtSalaryMonth.Readonly = false.

My Code is:
ASP.NET
<ajaxToolkit:CalendarExtender ID="clnSalaryMonth" runat="server" TargetControlID="txtSalaryMonth" Format="Y" BehaviorID="calendar1" 
PopupButtonID="imgSalarymonth"  OnClientShown="onCalendarSalShown" OnClientHidden="onCalendarSalHidden" />


and Java Script is :
JavaScript
function onCalendarSalShown()
{
    var cal = $find("calendar1");
    //Setting the default mode to month
    cal._switchMode("months", true);
    //Iterate every month Item and attach click event to it
    if (cal._monthsBody)
    {
        for (var i = 0; i < cal._monthsBody.rows.length; i++)
        {
            var row = cal._monthsBody.rows[i];
            for (var j = 0; j < row.cells.length; j++)
            {
                Sys.UI.DomEvent.addHandler(row.cells[j].firstChild, "click", callSal);
            }
        }
    }
}

function onCalendarSalHidden()
 {
    var cal = $find("calendar1");
    //Iterate every month Item and remove click event from it
    if (cal._monthsBody)
    {
        for (var i = 0; i < cal._monthsBody.rows.length; i++)
        {
            var row = cal._monthsBody.rows[i];
            for (var j = 0; j < row.cells.length; j++)
            {
                Sys.UI.DomEvent.removeHandler(row.cells[j].firstChild, "click", callSal);
            }
        }
    }
}

function callSal(eventElement)
{
    var target = eventElement.target;
    switch (target.mode)
    {
        case "month":
            var cal = $find("calendar1");
            cal._visibleDate = target.date;
            cal.set_selectedDate(target.date);
            cal._switchMonth(target.date);
            cal._blur.post(true);
            cal.raiseDateSelectionChanged();
            break;
    }
}

plss Help
Questioncast String to objet of class Pin
Sneha Bisht26-Jun-12 22:41
Sneha Bisht26-Jun-12 22:41 
AnswerRe: cast String to objet of class Pin
Rahul Rajat Singh27-Jun-12 1:14
professionalRahul Rajat Singh27-Jun-12 1:14 
Questionusing local iis Pin
sc steinhayse26-Jun-12 18:12
sc steinhayse26-Jun-12 18:12 
QuestionRe: using local iis Pin
Sandeep Mewara26-Jun-12 20:11
mveSandeep Mewara26-Jun-12 20:11 
Generalresponse.redirect problem Pin
sc steinhayse26-Jun-12 18:11
sc steinhayse26-Jun-12 18:11 
GeneralRe: response.redirect problem Pin
Sandeep Mewara26-Jun-12 20:24
mveSandeep Mewara26-Jun-12 20:24 
GeneralRe: response.redirect problem Pin
sc steinhayse27-Jun-12 4:10
sc steinhayse27-Jun-12 4:10 
GeneralRe: response.redirect problem Pin
Sandeep Mewara27-Jun-12 4:44
mveSandeep Mewara27-Jun-12 4:44 
QuestionForce a postback from asp code behind Pin
Steve Holdorf26-Jun-12 11:48
Steve Holdorf26-Jun-12 11:48 
AnswerRe: Force a postback from asp code behind Pin
Sandeep Mewara26-Jun-12 20:32
mveSandeep Mewara26-Jun-12 20:32 
Questioncalling __doPostBack() from JavaScript does not respond after adding AJAX ScriptManager on the form Pin
rssadiq26-Jun-12 11:40
rssadiq26-Jun-12 11:40 
AnswerRe: calling __doPostBack() from JavaScript does not respond after adding AJAX ScriptManager on the form Pin
jkirkerx26-Jun-12 12:21
professionaljkirkerx26-Jun-12 12:21 
QuestionTime Out problem Pin
WebMaster26-Jun-12 8:29
WebMaster26-Jun-12 8:29 
AnswerRe: Time Out problem Pin
jkirkerx26-Jun-12 9:54
professionaljkirkerx26-Jun-12 9:54 
AnswerRe: Time Out problem Pin
Roger Wright26-Jun-12 19:19
professionalRoger Wright26-Jun-12 19:19 
GeneralRe: Time Out problem Pin
WebMaster27-Jun-12 4:38
WebMaster27-Jun-12 4:38 
GeneralRe: Time Out problem Pin
Roger Wright27-Jun-12 20:05
professionalRoger Wright27-Jun-12 20:05 

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.