Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Input string was not in a correct format.

[es] :: .NET :: ASP.NET :: Input string was not in a correct format.

[ Pregleda: 1612 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

gogo-elite

Član broj: 103331
Poruke: 12
*.36.139.0



Profil

icon Input string was not in a correct format.21.10.2008. u 21:33 - pre 188 meseci
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">
&nbsp;<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>
 
Odgovor na temu

era1

Član broj: 77875
Poruke: 155
*.nis-naftagas.co.yu.



Profil

icon Re: Input string was not in a correct format.02.12.2008. u 17:47 - pre 187 meseci
Ovaj deo:
http://localhost:1477/Foto%20A...69-947d-4e24-bdbf-d2f74c05a1ac

se ne uklapa sa ovim delom:
DataNavigateUrlFormatString="FotoAlbum.aspx?ID={0}"

U prvom slucaju ima neki razmak Foto%20A (%20), sto znaci da ti negde pretumbas ovaj format.

pozz
 
Odgovor na temu

[es] :: .NET :: ASP.NET :: Input string was not in a correct format.

[ Pregleda: 1612 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.