473,321 Members | 1,748 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,321 software developers and data experts.

html question

I use repeater to show the content . there is a button to open the pdf.
How can I make the button located in the centre of cell ?
thanks a lot
<td>
<form action="download.aspx">
<input type="button"
value="<%#DataBinder.Eval(Container.DataItem,
rtrim("type")).tostring.trim%>"
onclick="window.open('/wto_web_doc/<%#DataBinder.Eval(Container.DataItem,
rtrim("docno")).tostring.trim%>.pdf')">
</form>
</td>
Oct 15 '06 #1
4 1114
<td align="center"should take care of centering the cell content. Can I
ask why are you putting every button in a separate form?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Agnes" <ag***@dynamictech.com.hkwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
>I use repeater to show the content . there is a button to open the pdf.
How can I make the button located in the centre of cell ?
thanks a lot
<td>
<form action="download.aspx">
<input type="button"
value="<%#DataBinder.Eval(Container.DataItem,
rtrim("type")).tostring.trim%>"
onclick="window.open('/wto_web_doc/<%#DataBinder.Eval(Container.DataItem,
rtrim("docno")).tostring.trim%>.pdf')">
</form>
</td>


Oct 15 '06 #2
I would use CSS - style="text-align:center;"

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"Agnes" <ag***@dynamictech.com.hkwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
>I use repeater to show the content . there is a button to open the pdf.
How can I make the button located in the centre of cell ?
thanks a lot
<td>
<form action="download.aspx">
<input type="button"
value="<%#DataBinder.Eval(Container.DataItem,
rtrim("type")).tostring.trim%>"
onclick="window.open('/wto_web_doc/<%#DataBinder.Eval(Container.DataItem,
rtrim("docno")).tostring.trim%>.pdf')">
</form>
</td>


Oct 15 '06 #3
i use the repeater , to show a list of different document number
there are two columns , 1st column is invoice number, 2nd column is the
download button.

"Eliyahu Goldin" <RE**************************@mMvVpPsS.org¼¶¼g©ó¶l ¥ó·s»D:%2****************@TK2MSFTNGP02.phx.gbl...
<td align="center"should take care of centering the cell content. Can I
ask why are you putting every button in a separate form?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Agnes" <ag***@dynamictech.com.hkwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
>>I use repeater to show the content . there is a button to open the pdf.
How can I make the button located in the centre of cell ?
thanks a lot
<td>
<form action="download.aspx">
<input type="button"
value="<%#DataBinder.Eval(Container.DataItem,
rtrim("type")).tostring.trim%>"
onclick="window.open('/wto_web_doc/<%#DataBinder.Eval(Container.DataItem,
rtrim("docno")).tostring.trim%>.pdf')">
</form>
</td>



Oct 16 '06 #4
You don't need any <formtags for that. What makes you use it?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Agnes" <ag***@dynamictech.com.hkwrote in message
news:uP**************@TK2MSFTNGP04.phx.gbl...
>i use the repeater , to show a list of different document number
there are two columns , 1st column is invoice number, 2nd column is the
download button.

"Eliyahu Goldin" <RE**************************@mMvVpPsS.org>
¼¶¼g©ó¶l¥ó·s»D:%2****************@TK2MSFTNGP02.phx .gbl...
><td align="center"should take care of centering the cell content. Can I
ask why are you putting every button in a separate form?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Agnes" <ag***@dynamictech.com.hkwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
>>>I use repeater to show the content . there is a button to open the pdf.
How can I make the button located in the centre of cell ?
thanks a lot
<td>
<form action="download.aspx">
<input type="button"
value="<%#DataBinder.Eval(Container.DataItem,
rtrim("type")).tostring.trim%>"
onclick="window.open('/wto_web_doc/<%#DataBinder.Eval(Container.DataItem,
rtrim("docno")).tostring.trim%>.pdf')">
</form>
</td>




Oct 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
17
by: henry | last post by:
Folks Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit of php code in the middle: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.