input initial date into usercontrol

U

uto

<uc1:uc_pager ID="Uc_pager1" runat="server"
CurrentPage="<%=page%>"
PageCount="<%=pageCount%>"
PageSize="<%=pageSize%>"
/>

i'd like to input data into usercontrol when page loading
but this <%= %> tag does't work
how can i change this tage to work it?
 
P

prabhupr

I thought you are supposed to use "$" as follows "<%$.....
Not sure, you might want to try.
 
A

Adrian Parker

I declared a variable in vb as

Public StyleName As String

and then in the aspx page I have for example...

<LINK title=STYLE href="<% response.write(StyleName) %>" type=TEXT/CSS rel=STYLESHEET>

HTH
Adrian
 

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

Top