Advertisement

07.08.2008 at 10:54AM PDT, ID: 23547590
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.6

Add Paging to a repeater control

Asked by sevensnake77 in .Net Editors & IDEs, Microsoft Applications, Microsoft Development

Tags:

yes I like to add paging to a repeater control, this is a little different to add paging to a Repeater than a Datagrid.

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(".mdb") & ";"
        Dim MySQL As String = "SELECT * FROM Guestbook"
        Dim MyConn As New OleDBConnection(strConn)
        Dim Cmd As New OleDBCommand(MySQL, MyConn)
        MyConn.Open()
        rptGuestbook.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
        rptGuestbook.DataBind()
 
 
 
<asp:Repeater ID="rptGuestbook" Runat="Server"  >
	<HeaderTemplate>
		<table border=0 cellpadding=5 cellspacing=0 width=50%>
		
	</HeaderTemplate>
 
	<ItemTemplate>
		<tr bgcolor=RGB(51,102,204) height=10><td colspan="2" style="font-size:small; color:White;"><font face=Tahoma><%# Container.DataItem ("Name") %></font></td>
    </tr>
		<tr>		
			<td width=20%><b><font face=Tahoma size=2>E-mail:</font></b></td> 
				<td><font face=Tahoma size=2><%# Container.DataItem ("EMail") %></td></tr>		
		<tr>
			<td width=20%><b><font face=Tahoma size=2>Website:</td> 
				<td><font face=Tahoma size=2><asp:hyperlink id="HyperLink" 
													runat="server" 
													font-names="Tahoma" 
													font-size="Small"
													navigateurl=<%# Container.DataItem ("URL") %>>
													<%# Container.DataItem ("URL") %>
													</asp:hyperlink></font></td></tr>				
		<tr>
			<td width=20%><b><font face=Tahoma size=2>Comment:</td> 
				<td><font face=Tahoma size=2><%# Container.DataItem ("Comment") %></td></tr>		
	</ItemTemplate>
		
	<SeparatorTemplate>
		<tr height=25><td></td></tr>
	</SeparatorTemplate>
	
	<FooterTemplate>
		</table>
	</FooterTemplate>
[+][-]07.08.2008 at 11:54AM PDT, ID: 21956861

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Applications, Microsoft Development
Tags: Add Paging to a repeater control
Sign Up Now!
Solution Provided By: apeter
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_EXPERT_20070906