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> 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>
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>
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>
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>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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"...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |