Click here to Skip to main content
15,889,867 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: asp.net Pin
David C# Hobbyist.23-Mar-13 13:41
professionalDavid C# Hobbyist.23-Mar-13 13:41 
AnswerRe: asp.net Pin
Rahul Rajat Singh24-Mar-13 19:47
professionalRahul Rajat Singh24-Mar-13 19:47 
Questionradiobutton Pin
mmmickyyy22-Mar-13 20:31
mmmickyyy22-Mar-13 20:31 
AnswerRe: radiobutton Pin
Richard MacCutchan22-Mar-13 23:51
mveRichard MacCutchan22-Mar-13 23:51 
QuestionCountdown timer Pin
Member 877289122-Mar-13 9:25
Member 877289122-Mar-13 9:25 
AnswerRe: Countdown timer Pin
dusty_dex22-Mar-13 9:56
dusty_dex22-Mar-13 9:56 
Questionprint list view Pin
atul_pune21-Mar-13 23:41
atul_pune21-Mar-13 23:41 
QuestionJquery Event in Ajax Loaded Table Only Works Once Pin
kruegs3521-Mar-13 10:10
kruegs3521-Mar-13 10:10 
I have a table that uses Ajax to load. It is basically set up like this:

@using (Ajax.BeginForm(ajaxOpts))
{
  <table>
    <thead>
      <th>column 1</th>
      <th>column 2</th>
    </thead>
    <tbody>
      @Html.Action("List")
    </tbody>
  </table>
}


In each row that is returned is a button that I have created a jquery event. It opens a dialog that displays some addition details about the record.

HTML
$(".view-row-button").click(function () {
  var $id = $(this).attr("id");
  $("#details-dialog")
    .load('@Url.Action("action", "controller")' + '?record=' + $id)
    .dialog({
      modal: true,
      height: 750,
      width: 1200,
      close: function () {
        //refresh table
        $("#refresh-button").click();
      }
    }).dialog("open");
});


The first time I click the row button, everything works great. The action is called and the details of the record are queried. The next time, the dialog is still displayed, but it is not updated with any changes I may have made. I put a breakpoint in the action, which catches on the first click, but not the next clicks. I've tried refreshing the page, but that still doesn't work. I have to re-open the browser to get the click to work properly again. Any suggestions?
AnswerRe: Jquery Event in Ajax Loaded Table Only Works Once Pin
Marco Bertschi22-Mar-13 1:38
protectorMarco Bertschi22-Mar-13 1:38 
GeneralRe: Jquery Event in Ajax Loaded Table Only Works Once Pin
kruegs3522-Mar-13 1:57
kruegs3522-Mar-13 1:57 
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 
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 

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.