what is client back feauture ?



what is client back feauture ?..

Answer / chandrasekar_namakkal

ClientSideCallback used to avoid form Postback for each
and every time .I have posted some sample code also try
which is use for Dropdown


aspx.cs
private string _pricecallbackResult,
_pricecallbackResultCAT, _pricecallbackResultClass;


public string GetCallbackResult()
{
return _pricecallbackResult;
}

public void RaiseCallbackEvent(string eventArgument)
{



string[] val = eventArgument.Split(',');
string id = val[0].ToString();
string k = val[1].ToString();
if (val[1] == "1")
{
// _pricecallbackResult =
objCommonBL.GetProgramNameForRebate();

}
else if (val[1] == "2")
{


_pricecallbackResult =
objCommonBL.GetCategoryNameForRebate(Convert.ToInt32(id));


}
else if (val[1] == "3")

{
_pricecallbackResult =
objCommonBL.GetClassNameForRebate(Convert.ToInt32(id));

}


}


in Aspx Java Script
*********************


function PriceClientCallbackError(result, context)
{
alert(result);
}

function PriceClientCallback(result, context)
{
ClassClear();
if (!result)
{
return;
}

var resultValue = result.split(',');
for (var i = 0; i < resultValue.length; ++i)
{
var val = resultValue[i].split('~~');
for(var j=0;j<val.length; ++j)
{
var values = val[j].split('~');
var option = document.createElement
("OPTION");
option.value = values[0];
option.innerHTML = values[1];
document.forms[0].ctl00$ContentPlaceHolder1
$frmRebate$ddlCategory.appendChild(option);
}
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the advantage of mvc over asp.net? : Asp.Net MVC

0 Answers  


cr8 2 datatables into one dataset DYNAMICALLY (no backend database used like sql,etc.,) with following columns 1st datatable with columns studentNo studentName Deptno 2nd datatable with columns Deptno DeptName DeptAddress add data to both the tables Dynamically and merge these tables into one table and display it in Grid view as studentNo studentName Deptno DeptName DeptAddress

1 Answers   SQL Star,


can i use two web.config files of ConnectionString in One Default.aspx page

6 Answers   Satyam, Verinon Technology Solutions, Wipro,


what is wwf in asp.net?

3 Answers  


Explain what is an assembly?

0 Answers  






Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


Is viewstate enabled by default?

0 Answers  


Explain the significance of routing? : asp.net mvc

0 Answers  


How does session authentication work?

0 Answers  


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

0 Answers  


In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events?

5 Answers   Syntax Softtech, TCS,


What is inproc mode in session?

0 Answers  


Categories