js fn to go to the particular page when enter is clicked
Answer / sona
function DoPagingOnEnter()
{
var ControlPrefix = $get('<%
=hdnListViewClientID.ClientID%>').value;
if(!
(event.keyCode==48||event.keyCode==49||event.keyCode==50||ev
ent.keyCode==51||event.keyCode==52||event.keyCode==53||event
.keyCode==54||event.keyCode==55||event.keyCode==56||event.ke
yCode==57||event.keyCode==8||event.keyCode == 13))
{
event.returnValue=false;
}
else
{
var number = 0;
var Message;
var PrefixId = $get('<%=hdnNodeID.ClientID%
>').value;
number = $get(ControlPrefix+'txtPage').value;
if(!isNaN(number))
{
if (event.keyCode == 13)
{
var status ='1';
var PageFilter = /^[0-9]+$/;
if(!PageFilter.test($get
(ControlPrefix+'txtPage').value))
{
status='0';
}
else
{
number = parseInt(number);
var MaxPage = 0;
MaxPage = parseInt($get('<%
=hdnMaxPage.ClientID%>').value);
if(1 > number)
{
status ='0';
}
else if(number > MaxPage)
{
status ='0';
}
else
{
status ='1';
}
}
if(status == "0")
{
var mes = "<%
=CommonMessages.InvalidPage%>";
ShowMessage(mes,"<%
=CommonMessages.ErrorHeader%>",'Error');
content_resize();
return false;
}
else
{
__doPostBack
((PrefixId+'$btnPaging'), '');
}
}
<asp:Button ID="btnPaging" runat="server" Text="Button"
Style="height: 26px; display: none"
OnClick="btnPaging_Click" />
then the click event in code behind
Is This Answer Correct ? | 0 Yes | 0 No |
Can you explain renderbody and renderpage in asp.net mvc?
mention what is code first approach and model first approach in entity framework?
If background completes its processing will it wait for foreground threads?
Can you draw and explain the .NET Farmework?
What is controllercontext?
I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.
i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources
And if they have conflicting method names ?
What is the difference between model and entity?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
What is strong name and which tool is used for this ?
4 Answers Accenture, BirlaSoft,
What is mapping in entity framework? : Entity framework