[ gogo-elite @ 21.10.2008. 21:33 ] @
Kada kliknem na hyperlink "Pogledaj Album", dobijem slijedeću grešku: Input string was not in a correct format. URL string izgleda ovako: http://localhost:1477/Foto%20A...69-947d-4e24-bdbf-d2f74c05a1ac Ispod je kompletan kod <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Početna" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="UserId" DataSourceID="SqlDataSource2" EmptyDataText="Nema podataka." ForeColor="#333333" GridLines="None"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <Columns> <asp:HyperLinkField Text="Pogledaj Album" DataNavigateUrlFields="UserId" DataNavigateUrlFormatString="FotoAlbum.aspx?ID={0}" /> <asp:BoundField DataField="UserName" HeaderText="Korisnik" SortExpression="UserName" /> </Columns> <RowStyle BackColor="#EFF3FB" /> <EditRowStyle BackColor="#2461BF" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" /> </asp:GridView> <br /> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [UserId], [UserName] FROM [vw_aspnet_MembershipUsers] WHERE ([IsApproved] = @IsApproved) ORDER BY [UserName]"> <SelectParameters> <asp:Parameter DefaultValue="True" Name="IsApproved" Type="Boolean" /> </SelectParameters> </asp:SqlDataSource> </asp:Content> |