473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Previous and next buttons

1
i want a simple java script code for previous and next buttons. my scenario is i want to display one panel at a display time . fisrt default first panel displays remaining are not visible
and then when i click next button next panel display and if i click previous first panel displays like that Java script only i want with simple code
Expand|Select|Wrap|Line Numbers
  1. <head runat="server">
  2.     <title>Untitled Page</title>
  3.     <script type="text/javascript" language="javascript">
  4.  
  5.  
  6.     </script>
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.       <asp:Button ID="Button1" runat="server" Text="Previous" OnClientClick="" />
  12.  
  13.       <asp:Panel ID="Panel1" runat="server">
  14.         <a href="Default.aspx">first page</a>
  15.       </asp:Panel>
  16.       <asp:Panel ID="Panel2" runat="server">
  17.        <a href="Default.aspx">Second page</a>
  18.       </asp:Panel>
  19.       <asp:Panel ID="pnlone" runat="server">
  20.        <a href="Default.aspx">3rd page</a>
  21.       </asp:Panel>
  22.       <asp:Panel ID="Panel3" runat="server">
  23.        <a href="Default.aspx">4th page</a>
  24.       </asp:Panel>
  25.       <asp:Panel ID="Panel4" runat="server">
  26.        <a href="Default.aspx">fifth page</a>
  27.       </asp:Panel>
  28.       <asp:Button ID="Button2" runat="server" Text="Next" />
  29.     </div>
  30.     </form>
  31. </body>
Sep 21 '11 #1
1 2043
Frinavale
9,735 Expert Mod 8TB
Do you want to control this using JavaScript or control it using Server-Side code?


If you want a JavaScript solution for this and you don't know how to do this, then check out the article called How To Use JavaScript in ASP.NET to get started.

-Frinny
Sep 21 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Alexander Fillips | last post by:
Hi, my short question: is there a python object which can interpret java-script? the whole story ;-) I wrote some streaming-scripts for the xbox mediaplayer which supports python. for a...
0
by: Mircea Pleteriu | last post by:
Hi all, I have created a .NET Windows control with c#. I have placed the control on a HTML page within the OBJECT element. Everything works fine up to now. Now, I wanna implement the...
6
by: harish | last post by:
Hi, We are developing one application for smartphone. In this we are parsing XMLs and rendering it as UI elements using smartphone SDK. Everything is working fine. Now one more requirement has...
4
by: Jeff | last post by:
Hi, Are there anyone can help me? My questions are as following: Because I have a tools bar which coding with javascript, it will reuse very often. So I want to separate the client-side java...
34
by: kpg | last post by:
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party...
8
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web...
7
by: GS | last post by:
we are using the following script for cursor to goto default position, is this script is java script or not?. can somebody tell me. I got this script from Internet, our client told us not to use...
1
by: Larry Rebich | last post by:
I'm using some Java Script I found that supports a 'back' button on my ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the Java Script in a Java Script file . The thought was...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
0
by: tosreejithp | last post by:
Hi, My first problem was i am not able to compiled a file from java script to java class.Now its clear and working fine..now i can convert a java script file to java class by Rhino Java Script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.