Monday, March 26, 2012

Panel Control Add Making Round Trip to Server?

NewbQ:

I am populating a dynamic panel with content. I have multiple panels on a page, so the goal is for the one panel to reload content rather than a reload of the entire page of panels. Looks like every click is making a round trip to the server . . . is this what should be happening or should it be changing the div content client side?

Here's what I have:


void Button1_Click(object sender, EventArgs e) {
((Control)((Control)sender).Parent).Controls.Add(new LiteralControl(htmlContentVar));
}

Thanks!

SJonesIn this case, you are going to be doing a round trip to the server.

Glen.
Thanks for confirming . . .

Any suggestions on a better way to do this using a web control? Is a straight iframe the only/best way?

Regards,

SJones

0 comments:

Post a Comment