html question

A

Agnes

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>
 
E

Eliyahu Goldin

<td align="center"> should take care of centering the cell content. Can I
ask why are you putting every button in a separate form?
 
A

Agnes

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 said:
<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 said:
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>
 
E

Eliyahu Goldin

You don't need any <form> tags for that. What makes you use it?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


Agnes said:
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 said:
<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 said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,156
Latest member
KetoBurnSupplement
Top