Click here to Skip to main content
15,904,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir/ma'am

when i run my site at mey system them the code
msgbox("right value")
works properly
but when i deploy my site at server then msgbox not working
.
help me regarding this
Posted

It is working.
It is working fine.

But not as you think...

C# and VB code is run at the Server, not the Client. So when you call MsgBox it is executed at teh Server, and the message box is display, at the server. The Client sees nothing.

When you ran it in development, the Server and the Client were the same physical machine so it appeared to work - but it didn't really.

If you want to show a message box at the client, then look at something like the JavaScript Alert[^] instead.
 
Share this answer
 
Comments
ankur789 18-Mar-13 6:58am    
sir i use java script code is
<script language=""javascript"">alert('You have not choose right value');</script>
but it give error like does not parsing at <script language ja>
bbirajdar 18-Mar-13 7:16am    
Why have you put the double - double quotes in this code- <script language=""javascript"">alert('You have not choose right value');</script> And next time post the code along with the question
ankur789 18-Mar-13 7:18am    
sir i use single quote double quote and without quote also but not working
bbirajdar 18-Mar-13 7:21am    
Show the complete code...
ankur789 18-Mar-13 7:23am    
Protected Sub b_next_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If Me.dl_course.SelectedIndex = 0 And Me.dl_branch.SelectedIndex = 0 And Me.dl_batch.SelectedIndex = 0 And Me.dl_sem.SelectedIndex = 0 Then
MsgBox("You have not choose right value") here i use <scriptlanguage=""javascript"">alert('You have not choose right value');</script>
Else
Session("course") = Me.dl_course.SelectedIndex
Session("branch") = Me.dl_branch.SelectedIndex
Session("batch") = Me.dl_batch.SelectedIndex
Session("sem") = Me.dl_sem.SelectedIndex
Response.Redirect("studinstructions.aspx")
End If
End Sub
Also You can search for jquery dialog box
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900