ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
js fn to go to the particular page when enter is clicked
 Question Submitted By :: Kris
I also faced this Question!!     Rank Answer Posted By  
 
  Re: js fn to go to the particular page when enter is clicked
Answer
# 1
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
Sona
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
What platforms does the .NET Framework run on?  1
What is different between User Control and Web Control and Custom Control?  1
How could we achieve Langauge Interoperability through "CLS"?? Please Expalin in detail with Example.. Thanks for the Help!!!!! HCL2
I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me. Accenture2
reading doc file in textbox using .net2005 with c#  3
Is it possibe to run 2 aplication on single m/c, one App is on .Net Framework 1.0 and another one is on .Net Fremework 2.0?  5
If we not suppress finalize method in dispose what will happen? Kanbay1
How the framework differentiate between 2 version dlls? eg Version 2.0 and 2.1 dlls are there. both are referred in the code.but we are using only name of that dll not the version number. in run time how the framework know which dll has to be referred? Deloitte1
please tell me the best book of asp.net in the markit. which explain in simple and detail.  2
Tell me about the internal working of Garbage collector? Honeywell2
Have you designed any components? HP1
What does CLR do as soon as an assembly is created ? MMTS1
what is the diff b/w asp.net 2.0 & 3.5  2
What is MSIL, IL, CTS?  3
Can you handle all button click events at once in a form? Give coding. Kanbay1
What does assemblyinfo.cs file consists of ? Accenture1
what are generics? Without generics what are the disadvantages in 1.1? HP2
What is JIT and how is works ?  4
What is the difference between managed and unmanaged code? IBM5
About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use ? MMTS2
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com