Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Jquery Event in Ajax Loaded Table Only Works Once Pin
kruegs3522-Mar-13 2:40
kruegs3522-Mar-13 2:40 
GeneralRe: Jquery Event in Ajax Loaded Table Only Works Once Pin
Marco Bertschi22-Mar-13 5:16
protectorMarco Bertschi22-Mar-13 5:16 
QuestionProblem with WebMethod when it is called from Jquery Pin
Nafiseh Salmani20-Mar-13 12:50
Nafiseh Salmani20-Mar-13 12:50 
AnswerRe: Problem with WebMethod when it is called from Jquery Pin
jkirkerx20-Mar-13 16:40
professionaljkirkerx20-Mar-13 16:40 
GeneralRe: Problem with WebMethod when it is called from Jquery Pin
Nafiseh Salmani20-Mar-13 18:41
Nafiseh Salmani20-Mar-13 18:41 
GeneralRe: Problem with WebMethod when it is called from Jquery Pin
jkirkerx21-Mar-13 6:16
professionaljkirkerx21-Mar-13 6:16 
GeneralRe: Problem with WebMethod when it is called from Jquery Pin
Nafiseh Salmani21-Mar-13 11:40
Nafiseh Salmani21-Mar-13 11:40 
GeneralRe: Problem with WebMethod when it is called from Jquery Pin
jkirkerx21-Mar-13 11:52
professionaljkirkerx21-Mar-13 11:52 
I don't reccomend trying to bind to a class
$('.Status').click(function() {

but to bind to the element ID instead

Plus you need to test your bind to make sure it works

There are several ways to bind
With update panel
$(document).ready(function () {
    
    initiateBinding();
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

});

function EndRequestHandler(sender, args) {
    initiateBinding();
}

function initiateBinding() {
    
    $(document).ajaxStart(function () {
        
    });

    $(document).ajaxStop(function () {
    
    });

    $('[id*="_ddl_RTSR_SARates_Unified_SelectRate"]').change(function () {
        alert("I'm Alive");
    });
}

with no update panel
$(document).ready(function() {
   // Handler for .ready() called.
   $('[id*="_ddl_RTSR_SARates_Unified_SelectRate"]').change(function () {
        alert("I'm Alive");
    });
});


So test the bind first, then move on to the function code and report back, I'm leaving in 30 minutes today

[edit]

test your data,
alert("{strStatus:'" + statusid + "',strRuleID:'" + ruleid + "'}");

copy the messagebox contents using firefox and paste it into the json validator to make sure it's valid json
http://jsonlint.com/[validator^]

you have to use slashes to escape out the double quotes
"{\"m_Rate_API_Code\" : \"" + rate_API_Code + "\"}"


Your JSON doesn't look valid to me {"name" : "Jim"}

modified 21-Mar-13 18:05pm.

GeneralRe: Problem with WebMethod when it is called from Jquery Pin
Nafiseh Salmani21-Mar-13 12:15
Nafiseh Salmani21-Mar-13 12:15 
GeneralRe: Problem with WebMethod when it is called from Jquery Pin
jkirkerx22-Mar-13 7:12
professionaljkirkerx22-Mar-13 7:12 
QuestionHow do you debug a single ASPX file? Pin
Xarzu20-Mar-13 11:51
Xarzu20-Mar-13 11:51 
AnswerRe: How do you debug a single ASPX file? Pin
jkirkerx20-Mar-13 12:49
professionaljkirkerx20-Mar-13 12:49 
GeneralRe: How do you debug a single ASPX file? Pin
Xarzu20-Mar-13 16:38
Xarzu20-Mar-13 16:38 
GeneralRe: How do you debug a single ASPX file? Pin
jkirkerx20-Mar-13 17:20
professionaljkirkerx20-Mar-13 17:20 
GeneralRe: How do you debug a single ASPX file? Pin
Xarzu21-Mar-13 7:57
Xarzu21-Mar-13 7:57 
GeneralRe: How do you debug a single ASPX file? Pin
jkirkerx21-Mar-13 10:16
professionaljkirkerx21-Mar-13 10:16 
QuestionHow to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
bnath00120-Mar-13 7:27
bnath00120-Mar-13 7:27 
AnswerRe: How to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
dusty_dex20-Mar-13 9:52
dusty_dex20-Mar-13 9:52 
AnswerRe: How to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
Bernhard Hiller20-Mar-13 23:47
Bernhard Hiller20-Mar-13 23:47 
GeneralRe: How to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
dusty_dex21-Mar-13 5:27
dusty_dex21-Mar-13 5:27 
QuestionASP.NET EXPORT TO EXCEL Pin
Mkanchha19-Mar-13 6:02
Mkanchha19-Mar-13 6:02 
AnswerRe: ASP.NET EXPORT TO EXCEL Pin
Karthik Harve19-Mar-13 21:14
professionalKarthik Harve19-Mar-13 21:14 
GeneralRe: ASP.NET EXPORT TO EXCEL Pin
Mkanchha20-Mar-13 23:37
Mkanchha20-Mar-13 23:37 
GeneralRe: ASP.NET EXPORT TO EXCEL Pin
Bernhard Hiller20-Mar-13 23:50
Bernhard Hiller20-Mar-13 23:50 
GeneralRe: ASP.NET EXPORT TO EXCEL Pin
Mkanchha21-Mar-13 0:59
Mkanchha21-Mar-13 0:59 

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.