Hi,
i'm having a strange error when i'm trying to sort the username column.
On my localserver evertything works perfect, non problems with sorting so far.But when transfered the files to a networkserver and try to sort the username column, i'm getting the follow error
Can not use leading characters (..) for exit above the top directory. ---> System.Web.HttpException: Can not use leading characters (..) for exit above the top directory.
if anyone could explain what I did wrong, or whats going wrong?
//code i'm using to sort the username column
If e.Column.Key = "Username" Then Dim dir As Infragistics.Web.UI.SortDirection = e.SortedColumns(e.Column.Key).SortDirection e.SortedColumns.Clear() e.SortedColumns.Add("Username", dir) e.SortedColumns.Add(e.Column.Key, dir) End If
any1 here, wich same problems?
hi,
I hvnt figured out yet how to fix it.. getting same error, and i'm clueless since I cant find anything on your forums. and it seems u also dont know whats is going on..
If I might ask, was it something in your configuration or some infragistics code that you had to change?
thanks,Dave
and figured it out>
It does work perfectly even with the sorting code, but the error is poping up when I try to sort
My web data grid code
<ig:WebDataGrid ID="WebDataGrid1" runat="server" AutoGenerateColumns="False" Height="350px" Width="697px" style="margin-bottom: 4px" EnableAjax="False"> <Columns> <%-- COLUMN USER_ID--%> <ig:BoundDataField DataFieldName="UserID" Key="UserID" Hidden="True" Width="50px"> <Header Text="UserID" /> </ig:BoundDataField> <%-- COLUMN USERNAME--%> <ig:BoundDataField DataFieldName="Username" Key="Username" Width="150px"> <Header Text="Gebruikersnaam" /> </ig:BoundDataField> <%-- COLUMN ALGEMEEN--%> <ig:TemplateDataField Key="tdfAlgemeen" Width="90px"> <ItemTemplate> <asp:HiddenField ID="hdnFldId" runat="server" Value='<%# Eval("Username") %>' /> <div class="divalgemeen" style="text-align: center;"> <asp:CheckBox ID="cbAlgemeen" runat="server" /> <%-- checkbox --%> </div> </ItemTemplate> <HeaderTemplate> <div style="text-align: center;"> <asp:Label ID="lblalgemeen" runat="server" Text="Algemeen"> </asp:Label> <asp:CheckBox ID="cbAllAlgemeen" onclick="BLOCKED SCRIPTHeaderClick(this);" runat="server" /> <%-- checkbox --%> </div> </HeaderTemplate> </ig:TemplateDataField> <%-- COLUMN FINANCIEEL--%> <ig:TemplateDataField Key="tdfFinancieel" Width="90px"> <ItemTemplate> <div class="divfinancieel" style="text-align: center;"> <asp:CheckBox ID="cbFinancieel" runat="server" /> <%-- checkbox --%> </div> </ItemTemplate> <HeaderTemplate> <div style="text-align: center;"> <asp:Label ID="lblfinacieel" runat="server" Text="Financieel"> </asp:Label> <asp:CheckBox ID="cbAllFinancieel" onclick="BLOCKED SCRIPTHeaderClick1(this);" runat="server" /> <%-- checkbox --%> </div> </HeaderTemplate> </ig:TemplateDataField> <%-- COLUMN LICENTIE--%> <ig:TemplateDataField Key="tdfLicentie" Width="90px"> <ItemTemplate> <div class="divlicentie" style="text-align: center;"> <asp:CheckBox ID="cbLicentie" runat="server" /> <%-- checkbox --%> </div> </ItemTemplate> <HeaderTemplate> <div style="text-align: center;"> <asp:Label ID="lbllicentie" runat="server" Text="Licentie"> </asp:Label> <asp:CheckBox ID="cbAllLicentie" onclick="BLOCKED SCRIPTHeaderClick2(this);" runat="server" /> <%-- checkbox --%> </div> </HeaderTemplate> </ig:TemplateDataField> <%-- COLUMN APPLICATIE--%> <ig:TemplateDataField Key="tdfApplicatie" Width="90px"> <ItemTemplate> <div class="divapplicatie" style="text-align: center;"> <asp:CheckBox ID="cbApplicatie" runat="server" /> <%-- checkbox --%> </div> </ItemTemplate> <HeaderTemplate> <div style="text-align: center;"> <asp:Label ID="Label3" runat="server" Text="Applicatie"> </asp:Label> <asp:CheckBox ID="cbAllApplicatie" onclick="BLOCKED SCRIPTHeaderClick3(this);" runat="server" /> <%-- checkbox --%> </div> </HeaderTemplate> </ig:TemplateDataField> <%-- COLUMN UIT DIENST--%> <ig:TemplateDataField Key="tdfUitDienst" Width="90px"> <ItemTemplate> <div class="divuitdienst" style="text-align: center;"> <asp:CheckBox ID="cbUitDienst" runat="server" /> <%-- checkbox --%> </div> </ItemTemplate> <HeaderTemplate> <div style="text-align: center;"> <asp:Label ID="lbluitdienst" runat="server" Text="Uit Dienst"> </asp:Label> <asp:CheckBox ID="cbAllUitDienst" onclick="BLOCKED SCRIPTHeaderClick4(this);" runat="server"/> <%-- checkbox --%> </div> </HeaderTemplate> </ig:TemplateDataField> </Columns> <Behaviors> <ig:ColumnResizing> </ig:ColumnResizing> <ig:Sorting SortingMode="single" Enabled="true" EnableInheritance="True"> <ColumnSettings> <ig:SortingColumnSetting ColumnKey="Username" /> </ColumnSettings> </ig:Sorting> </Behaviors> </ig:WebDataGrid>