Hi,
I used an input box in asp.net application.When i deployed that application and tried to access the input box it resulted in error.Just-In-Time Debugger as appeared.how to get resolve hsi.
ThankYou
Hi,
I used an input box in asp.net application.When i deployed that application and tried to access the input box it resulted in error.Just-In-Time Debugger as appeared.how to get resolve hsi.
ThankYou
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jan MontanoRank #1,295 · 1.3K reputationPosted Jan 1, 2009, 2:31 PM EST
chaitanya vonaja27 reputationPosted Jan 2, 2009, 6:22 AM EST
Hi,
<
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Pagetitle> head><
body> <form id="form1" runat="server"> <div> <asp:TextBox ID="TextBox1" runat="server">asp:TextBox> <asp:LinkButton ID="LinkButton1" runat="server">LinkButtonasp:LinkButton> div> form> body> html>The code behing page:
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click Dim IB As IntegerIB = InputBox(
"Enter number of Items Returned?")TextBox1.Text = IB
End Sub''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
An Unahndled Excepption('System.InvalidOperationException') occured in aspnet_wp.exe[4276]
Thanks
chaitanya vonaja27 reputationPosted Jan 2, 2009, 6:22 AM EST
Hi,
<
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Pagetitle> head><
body> <form id="form1" runat="server"> <div> <asp:TextBox ID="TextBox1" runat="server">asp:TextBox> <asp:LinkButton ID="LinkButton1" runat="server">LinkButtonasp:LinkButton> div> form> body> html>The code behing page:
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click Dim IB As IntegerIB = InputBox(
"Enter number of Items Returned?")TextBox1.Text = IB
End Sub''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
An Unahndled Excepption('System.InvalidOperationException') occured in aspnet_wp.exe[4276]
Thanks
Jan MontanoRank #1,295 · 1.3K reputationPosted Jan 4, 2009, 1:05 AM EST
Dim IB As Integer
IB = InputBox("Enter number of Items Returned?")
The return value of an inputbox is string. The code above will result in an error because you're storing a string value into an integer variable.
If you want to store the inputbox's value in an integer variable, you must first convert it to integer.
Dim IB As Integer
IB = Int32.Parse(InputBox("Enter number of Items Returned?"))
chaitanya vonaja27 reputationPosted Jan 4, 2009, 6:28 AM EST
Thats is not the problem.
When ever i click the LinkButton the input box has to appear.
Before deploying (i.e, when iam debugging from the Visual studio ),when i click the LinkButton,i got input box.
But after deploying the application ,Iam unable to get the inputbox after clicking the LinkButton.
It has displayed an error showing INVALID SYSTEM EXCEPTION.
Jan MontanoRank #1,295 · 1.3K reputationPosted Jan 4, 2009, 2:54 PM EST
In an asp.net application, your code behind executes in the server side, and not on the client side (browser). It just happens that during debug mode, the input box displays because you are able to access and walk through the code behind.
If you want to display an input box in a web application, you must perform it in the client side and there are various ways to do it.
You could also popup a new page with a textbox and lable (resembling an input box).
If you want to display dialog boxes, you could use javascript alert() or confirm()
There are also Free Third-party components which could help you in displaying input boxes in client side such as Mono Dialogs.
Hope this helps.