Imports WCPierce.Web.UI.WebControls
Imports Microsoft.ApplicationBlocks.Data
Partial Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
testContent.Text = "<form>form in here </form>"
Dim dsColor = New List(Of String)
dsColor.Add("sumanth")
dsColor.Add("sumanth")
dsColor.Add("sumanth")
dsColor.Add("sumanth")
'Dim dt = dsColor.Tables(0).Clone()
'For Each dr As DataRow In dsColor.Tables(0).Rows
' ' If Not GetColorImageUrl(dr("PKProductId"), Nothing, dr("PKGroupScaleItemId"), dr("ImageForEachProduct")).ToLower.Contains("logo.jpg") Then
' dt.ImportRow(dr)
' ' End If
docait
Member
10 Points
57 Posts
Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
May 20, 2010 05:42 AM|LINK
Hi i am getting js runtime error
my page has update panel and on dropdown selected change page get refresh..
but for one selection i am getting this error
Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
http://localhost/ScriptResource.axd?d=RiFuCSbdE4G_ab3bMy_quisiB0USwZ0HzD18y9i-HlhJgwjDta0nI56grwpM8wxT1PmOFvKVlkDzhHWroUPogswnOoNCNvywwF7W541r-fo1&t=8153c76
ScriptResource.axd is a file dynamically genrated by resource manager so using firbug and idev tool i tried to debug but couldn't..
Thanks in advance
ur sugestion would consider as reply...
madan535
Contributor
3229 Points
1180 Posts
Re: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format...
May 20, 2010 03:18 PM|LINK
Some problem with jquery are you using it?
chetan.sarod...
All-Star
66609 Points
11270 Posts
Re: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format...
May 21, 2010 03:07 AM|LINK
If string value assign to a datatype of Integer type, then you need to convert it to Integer as shown below.
<div style="POSITION: absolute; OVERFLOW-X: hidden; OVERFLOW-Y: hidden; WIDTH: 1px; HEIGHT: 1px; TOP: 0px; LEFT: -10000px" id=_mcePaste>int ignum = 0;</div> <div style="POSITION: absolute; OVERFLOW-X: hidden; OVERFLOW-Y: hidden; WIDTH: 1px; HEIGHT: 1px; TOP: 0px; LEFT: -10000px" id=_mcePaste> int.TryParse(DropDownList2.SelectedValue, out ignum);</div>int ignum = 0;
int.TryParse(value, out ignum);
Refer this thread
http://forums.asp.net/t/1299518.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
docait
Member
10 Points
57 Posts
Re: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format...
Jul 08, 2010 09:24 AM|LINK
ScriptResource.axd
asp.net execution engine genrate this file at run time if you are getting Js error like i was getting
stop your javascript debugging and debug your page. since this is nothing to deal with javascript here. take special care of code in try catch block.
m.koteswarar...
Member
24 Points
27 Posts
Re: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format...
Feb 19, 2013 08:40 AM|LINK
i am geting same error but in my case i did't any type casting can u please help me to get out from this error please
following is the code i used
<%@ Page Language="vb" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test"
MasterPageFile="~/testMasterPage.master" %>
<asp:Content ID="id1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:Localize ID="testContent" runat="server"></asp:Localize>
<asp:DataList ID="dlColorfor1sol" CellPadding="0" CellSpacing="0" CssClass="colorswatches"
runat="server" RepeatDirection="Horizontal" >
<ItemStyle VerticalAlign="Bottom" />
<SelectedItemStyle CssClass="select_colorswatches" />
<ItemTemplate>
SSS xx<asp:ImageButton ID="imgColor" runat="server" />
<%--<asp:ImageButton ID="imgcolor" runat="server" ImageUrl='<%# GetColorImageUrl(Eval("PKProductId"),Nothing ,Eval("PKGroupScaleItemId"),Eval("ImageForEachProduct")) %>'
CommandArgument='<%# (Eval("PKProductId")) %>' ToolTip='<%# GetColorToolTipName(Eval("PKGroupScaleItemId"),Eval("ImageForEachProduct")) %>'>
</asp:ImageButton>--%>
<asp:Localize ID="lblbrands" runat="server"></asp:Localize>
</ItemTemplate>
</asp:DataList>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
Imports WCPierce.Web.UI.WebControls
Imports Microsoft.ApplicationBlocks.Data
Partial Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
testContent.Text = "<form>form in here </form>"
Dim dsColor = New List(Of String)
dsColor.Add("sumanth")
dsColor.Add("sumanth")
dsColor.Add("sumanth")
dsColor.Add("sumanth")
'Dim dt = dsColor.Tables(0).Clone()
'For Each dr As DataRow In dsColor.Tables(0).Rows
' ' If Not GetColorImageUrl(dr("PKProductId"), Nothing, dr("PKGroupScaleItemId"), dr("ImageForEachProduct")).ToLower.Contains("logo.jpg") Then
' dt.ImportRow(dr)
' ' End If
'Next
' If dt.Rows.Count > 0 Then 'color swatches below
dlColorfor1sol.RepeatColumns = SystemSettingsBO.GetSettings("ThumbnailPerRow")
dlColorfor1sol.DataSource = dsColor
dlColorfor1sol.DataBind()
'trColorfor1sol.Visible = True
dlColorfor1sol.Visible = True
End Sub
End Class