Why are you even using Response.Write
All you need is
<% If Current_Page <> 1 Then%>
<div align="center"><form method="Post"
action="
http://www.myweb.com/BIE/BIEmotor/4...9000/optionoffsetorders430010009000.asp?Page=<%=Current_Page-1 %>">
<input type="submit" value="<< registro anterior" name="btnnext" class="formpagebutton">
</form></div>
<% End If %>
If it doesn't center check you style for the class="formpagebutton" which may be setting alignment
Suggest you spend some time at
http://www.w3schools.com/asp/default.asp
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| Sorry for paging twice the same question, I am a bid confused today. I want
| to finish this project and I am already up +/- 17 hours. Sorry, will not
| happen again.
| I tried what you said in different wys. The last one is here and it's as
| well not centering.
| Any idea?
|
| If Current_Page <> 1 Then
| Response.Write%><center><form method="Post"
| action="
http://www.myweb.com/BIE/BIEmotor/4...9000/optionoffsetorders430010009000.asp?Page=<%=Current_Page
| - 1 %>"><input type="submit" value="<< registro anterior" name="btnnext"
| class="formpagebutton">
| </form></center>
| <%
| End If
|
| "David Berry" wrote:
|
| > <center> button </center>
| >
| > --
| > David Berry
| > FrontPage Support:
http://www.frontpagemvps.com/
| >
| >
| >
| > | > > Great, if you could tell me as well how to align this button in the center
| > > than I am ready and not bothering anymore.
| > > Thanks
| > > Klaus
| > >
| > > "David Berry" wrote:
| > >
| > >> You can't use on OnClick event to do the navigation unless you create the
| > >> JavaScript that handles it. You could just put FORM tags around the
| > >> button
| > >> as an easy way to solve the problem. Ex:
| > >>
| > >> <form method="post"
| > >> action="
http://www.myweb.com/test/3test.asp?Page=<%=Current_Page - 1 %>">
| > >> <input type="submit" value="Next Record" name="btnnext"
| > >> class="formpagebutton">
| > >> </form>
| > >>
| > >> --
| > >> David Berry
| > >> FrontPage Support:
http://www.frontpagemvps.com/
| > >>
| > >>
| > >> | > >> > Dear Sirs,
| > >> >
| > >> > I have the following code for my record navigation:
| > >> >
| > >> > If Current_Page <> 1 Then
| > >> > Response.Write%><a
| > >> > href="
http://www.myweb.com/test/3test.asp?Page=<%=Current_Page - 1
| > >> > %>"><img
| > >> > src="
http://www.myweb.com/BIE/images/PREVIOUS.bmp"></a>
| > >> > <%
| > >> > End If
| > >> >
| > >> > As you see I am using a button for this and everything is working fine.
| > >> > I would like to use this:
| > >> >
| > >> > <input type="button" value="¦<"
| > >> > onClick="
http://www.myweb.com/test/3test.asp?Page=<%=Current_Page - 1
| > >> > %>"><%=ShowTextOnPic("Primero orden")%> Class="formpagebutton">
| > >> >
| > >> > Somehow I cannot figure out what is wrong - it's just simple not
| > >> > functioning.
| > >> > Can someone help me?
| > >> > Klaus
| > >>
| > >>
| > >>
| >