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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jan MontanoPosted Jan 4, 2009, 7:54 PM
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.
chaitanya vonajaPosted Jan 4, 2009, 11:28 AM
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 MontanoPosted Jan 4, 2009, 6:05 AM
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 vonajaPosted Jan 2, 2009, 11:22 AM
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 vonajaPosted Jan 2, 2009, 11:22 AM
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 MontanoPosted Jan 1, 2009, 7:31 PM