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

ASP.NET uses event driven programming model.Justify.

2 Answers  


what is client back feauture ?

1 Answers  


What is session and application variable in asp net?

0 Answers  


What are the session variables?

0 Answers  


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  






IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.

1 Answers  


Differentiate between globalization and localization.

0 Answers  


What is the base class from which web forms are inherited?

0 Answers  


difference between gridview,data list and repeater control

7 Answers   ABC, Olive Tech,


Explain how inline and code behind is used differently ?

1 Answers   Siebel,


How do you a replicate a set of controls across a number of ASP Pages

2 Answers  


What is the asp.net mvc folder conventions? : asp.net mvc

0 Answers  


Categories