html question

  • Thread starter Thread starter Agnes
  • Start date Start date
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>
 
<td align="center"> should take care of centering the cell content. Can I
ask why are you putting every button in a separate form?
 
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>
 
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>
 
Back
Top