Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Yeah, its weird. It was working just fine before, but after a recompile (no changes to code, mind you), this.Master (or Page.Master, same thing) returns a null. Whats more weird, if I hover the mouse over where I use this.Master, ir returns teh corect thing. However, when I step through the line where I use it, or read its value into a variable, it equals null. Could anyone shed some light on this, or is it completely FUBARed?
HEre i had a problem with message box.When i want to display some message,it is showing msgbox.Means i am able to show the message, and here my problem is----
i have to Redirect to the perticular Form while clicking on OK.(with Response.Redirect("a.aspx"))
Is it possible to do in that manner?
My code for msgbox is
Public Sub ShowMessageBox(ByVal msg)
Dim str As String
str = "alert('" + msg + "');"
Please any one understand the problem and respond to my forum.
Is it possible or not,otherwise which procedure i have to approach???How to do in asp.net????
Thanks in advance
Thanks for ur reply.
WE are doing webbased application.It is not accepting window.location etc.
Where i have to givethis code??on the pageload????
My problem is i have to initilize the project,if any one directly go to the further forms,i have to display the message,And on that msgbox,by clicking on OK he ss redirecting to the first form.
How to do???Please give me correct solution???
Thanks once again.
Hai Guffa and Sandeep,Thanks for your answer.It is working perfectly,\Thanks once again.
And can you give me an idea for ,If i click on OK it has to perform some action and if we click on Cancel,it has to perform other action.
How to check which one(OK or Cancel)was selected????
Give me some idea.
This is code for my confirm message box.
but as per your code ,how to give the if condition,
It is not accepting confirm("some text")???
how to give and where,on the button click event or somewhere???
eventhough it is small i am confusing.
Once again thanks for ur reply
Correct my code please
Your code is sufficeient to display and confirm something,but how to check if it si ok or cancel.
i want to again display some msg on OK click,and same for cancel,or sometimes i want to redirect some other page( when it is confirm msgbox only),Please dont get irritate and tell me .i have tried.but it is not giving anything.
thanks once again
No, it doesn't work. The message box is shown on the server, not on the client computer. While you are testing the application using your own computer as server, you will see the message box. When you deploy the application to a web server, there is no user interface for the process running the application, so the message box have nowhere to go.