rubenmsoares
Power Member
Viva pessoal,
Precisava de um auxilio vosso, pois não estou a conseguir perceber o porque de não ser executado a string da aplicação quando está online.
No visual studio tenho isto:
Protected Sub GridView5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView5.SelectedIndexChanged
If GridView5.SelectedRow.Cells(1).Text Then
Label291.Text = "Porto"
Response.Redirect("Gestaoequipa.aspx?equipa=" + Label291.Text)
End If
End Sub
Executando o visual studio funciona correctamente, mas quando realizado o upload dos ficheiros para o servidor e acedido através de www....com quando tento executar aquela função da o erro de:
[h=2]Input string was not in a correct format.[/h]
[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +181
Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +147
[InvalidCastException: Conversion from string "170.00" to type 'Boolean' is not valid.]
Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +337
Pipeline.Gestao.GridView5_SelectedIndexChanged(Object sender, EventArgs e) in C:\Users\RS\Documents\Pipeline-Correcta - Cópia\Pipeline\Pipeline\Gestao.aspx.vb:552
System.Web.UI.WebControls.GridView.OnSelectedIndexChanged(EventArgs e) +116
System.Web.UI.WebControls.GridView.HandleSelect(Int32 rowIndex) +98
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +213
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +205
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9642338
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
Precisava de um auxilio vosso, pois não estou a conseguir perceber o porque de não ser executado a string da aplicação quando está online.
No visual studio tenho isto:
Protected Sub GridView5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView5.SelectedIndexChanged
If GridView5.SelectedRow.Cells(1).Text Then
Label291.Text = "Porto"
Response.Redirect("Gestaoequipa.aspx?equipa=" + Label291.Text)
End If
End Sub
Executando o visual studio funciona correctamente, mas quando realizado o upload dos ficheiros para o servidor e acedido através de www....com quando tento executar aquela função da o erro de:
[h=2]Input string was not in a correct format.[/h]
[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +181
Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +147
[InvalidCastException: Conversion from string "170.00" to type 'Boolean' is not valid.]
Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +337
Pipeline.Gestao.GridView5_SelectedIndexChanged(Object sender, EventArgs e) in C:\Users\RS\Documents\Pipeline-Correcta - Cópia\Pipeline\Pipeline\Gestao.aspx.vb:552
System.Web.UI.WebControls.GridView.OnSelectedIndexChanged(EventArgs e) +116
System.Web.UI.WebControls.GridView.HandleSelect(Int32 rowIndex) +98
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +213
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +205
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9642338
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724