PC Review


Reply
Thread Tools Rate Thread

asp.net 2.0 script callback problem

 
 
=?Utf-8?B?U3JlZWhhcmk=?=
Guest
Posts: n/a
 
      21st Nov 2007
I have created a page which is having a tree view control and a grid view.
The treeview lists categories and when i click a category the gridview
populates some data in that category. i have used script callback in Asp.net
2.0 to populate gridview. When i click a treeview link, the callback function
will pass the corresponding category Id to the server and, the gridview is
populated for that CategoryId. The code is as listed below.

using (DataSet dsProcs =
objProcedureList.GetProceduresNotInStoreForCategoryID(
this.LibraryID,
Int32.Parse(CategoryIDFromCategoryTree)))
{
DataView dvProcs =
dsProcs.Tables["TblProcedureList"].DefaultView;
if (dvProcs.Count > 0)
{
gvProcsInCategory.DataSource = dvProcs;
gvProcsInCategory.DataBind();

// Create Html Text Writer
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
gvProcsInCategory.RenderControl(htw);
//Return values
return sw.ToString();
}

In the javascript side
function ReceiveServerData(rValue)
{
document.getElementById("MyDiv").innerHTML = rValue;
}
is used to display the server result.

I have added a template column of checkboxes to the gridview control and a
Button to the aspx page next to this.
My intension is to collect the rows, in which the checkbox is checked by the
user.
But when i checked the rows and clicked the button, in the button click
event, it looks like the grid is not binded to any data.The nof rows shows
as zero.
Plese help me to get the desired result..


Thanks in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client (/Script) Callback fails on certain IE6 installlation Brian Microsoft ASP .NET 0 12th Jan 2007 12:38 AM
pendingCallbacks[..]async java script error - Cleint Callback =?Utf-8?B?QW5hbmQ=?= Microsoft ASP .NET 3 4th Jan 2007 08:03 PM
Script callback returning ViewState? Flinky Wisty Pomm Microsoft ASP .NET 2 2nd Dec 2005 09:29 AM
Script Callback in ASP.Net 2.0 events to handle =?Utf-8?B?UGl0Y2Fpcm5pYQ==?= Microsoft ASP .NET 0 25th May 2005 01:29 AM
CALLBACK problem abuaathiqa Microsoft VC .NET 0 24th Feb 2005 10:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:22 AM.