SendCustomRequest - unable to communicate with server

2 replies. Last post: August 9, 2010 8:19 PM by Darren Budd
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Darren BuddMember

Hi,

 

Im getting this error on calling SendCustomRequest.  Ive done this sort of thing before without any problems, so have no idea what the issue is (DLL versions?).  The DLL versions I am using are:

Webgrid.dll - 7.0.7200.306

Webgrid.resources.dll - 7.0.7200.306

Here is my javascript function:

 

function addAnswer(answerFrom, answerTo, isCorrect)

{

var answerFromField = document.getElementById('<%=hdn_new_answerFrom.ClientID%>');

answerFromField.value = answerFrom;

var answerToField = document.getElementById('<%=hdn_new_answerTo.ClientID%>');

answerToField.value = answerTo;

var answerCorrectField = document.getElementById('<%=hdn_new_is_correct.ClientID%>');

answerCorrectField.value = isCorrect;

var grid = wgGetGridById('grd_Answers'); if (!grid.IsInProgress)

{

grid.SendCustomRequest();

}

}

 

 

And here is my grid definition:

 

<ISWebGrid:WebGrid ID="grd_Answers" runat="server" Width="100%" UseDefaultStyle="True" Visible="false" EnableViewState="False" Height="80%" DataCacheStorage="Session" OnInitializeDataSource="grd_Answers_InitializeDataSource" OnInitializePostBack="grd_Answers_InitializePostBack">

 

 

And here is my code behind:

 

protected void grd_Answers_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)

{

void grd_Answers_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)

{

if (e.Action == ISNet.WebUI.WebGrid.PostBackAction.Custom)

{

grd_Answers.ClientAction.Refresh();

}

}

 

 

Does anyone know what the issue might be?

 

thanks

 

Darren

grd_Answers.ClientAction.Refresh();

}

}

 

 

Does anyone know what the issue might be?

 

thanks

 

Darren

All times are GMT -5. The time now is 3:15 AM.
Previous Next