Click here to Skip to main content
15,899,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: questions of .net Pin
Richard Deeming22-Jan-14 1:40
mveRichard Deeming22-Jan-14 1:40 
QuestionOpen source 3D scatter chart controls available in ASP.Net Pin
Kandepu Rajesh21-Jan-14 20:13
Kandepu Rajesh21-Jan-14 20:13 
QuestionRe: Open source 3D scatter chart controls available in ASP.Net Pin
thatraja21-Jan-14 20:35
professionalthatraja21-Jan-14 20:35 
QuestionHelp Me with the Code Pin
ArjanD21-Jan-14 8:29
ArjanD21-Jan-14 8:29 
AnswerRe: Help Me with the Code Pin
thatraja21-Jan-14 16:10
professionalthatraja21-Jan-14 16:10 
Suggestionneed the suggestion Pin
mprk20-Jan-14 0:13
mprk20-Jan-14 0:13 
AnswerRe: need the suggestion Pin
ZurdoDev21-Jan-14 5:11
professionalZurdoDev21-Jan-14 5:11 
QuestionHow to show an aspx page like a dialog Pin
Saeed Ansarinejad19-Jan-14 6:18
Saeed Ansarinejad19-Jan-14 6:18 
hi,
I've designed this user control(*.ascx) in asp .net,

ASP.NET
<script type="text/javascript">
    function but_ok() {
        window.returnValue = "ok";
        window.close();
    }
    function but_cancel() {
        window.returnValue = "cancel";
        window.close();
    }
    function but_yes() {
        window.returnValue = "yes";
        window.close();
    }
    function but_no() {
        window.returnValue = "no";
        window.close();
    }
</script>

<asp:Button ID="dlg_ok" runat="server" Text=" OK " />
<asp:Button ID="dlg_cancel" runat="server" Text=" Cancel " />
<asp:Button ID="dlg_yes" runat="server" Text=" Yes " />
<asp:Button ID="dlg_no" runat="server" Text=" No " />


and i've written these codes to assume each button behavior

C#
protected void Page_Load(object sender, EventArgs e)
{
    if (!this.IsPostBack)
    {
        dlg_ok.Attributes["onclick"] = "javascript:but_ok()";
        dlg_cancel.Attributes["onclick"] = "javascript:but_cancel()";
        dlg_yes.Attributes["onclick"] = "javascript:but_yes()";
        dlg_no.Attributes["onclick"] = "javascript:but_no()";
    }
}


now I want to show this page like a dialog and use it as a message box,

so I have 2 questions
1-how do I display this control or an aspx page like a dialog?
2-how do I retrieve values after clicking each button?

I will appreciate if any one could help Smile | :)
AnswerRe: How to show an aspx page like a dialog Pin
Abhinav S19-Jan-14 7:05
Abhinav S19-Jan-14 7:05 
AnswerRe: How to show an aspx page like a dialog Pin
Kornfeld Eliyahu Peter19-Jan-14 7:52
professionalKornfeld Eliyahu Peter19-Jan-14 7:52 
GeneralRe: How to show an aspx page like a dialog Pin
Saeed Ansarinejad19-Jan-14 9:42
Saeed Ansarinejad19-Jan-14 9:42 
GeneralRe: How to show an aspx page like a dialog Pin
Kornfeld Eliyahu Peter19-Jan-14 20:35
professionalKornfeld Eliyahu Peter19-Jan-14 20:35 
GeneralRe: How to show an aspx page like a dialog Pin
Saeed Ansarinejad28-Jan-14 21:36
Saeed Ansarinejad28-Jan-14 21:36 
AnswerRe: How to show an aspx page like a dialog Pin
Kornfeld Eliyahu Peter28-Jan-14 21:42
professionalKornfeld Eliyahu Peter28-Jan-14 21:42 
Questionhow to pass two or more .aspx pages to response.redirect(),is it possible or not? Pin
Ravi900kumar18-Jan-14 22:57
Ravi900kumar18-Jan-14 22:57 
AnswerRe: how to pass two or more .aspx pages to response.redirect(),is it possible or not? Pin
Kornfeld Eliyahu Peter19-Jan-14 0:32
professionalKornfeld Eliyahu Peter19-Jan-14 0:32 
GeneralRe: how to pass two or more .aspx pages to response.redirect(),is it possible or not? Pin
Gopi Kishan Mariyala22-Jan-14 0:40
Gopi Kishan Mariyala22-Jan-14 0:40 
QuestionReport Like display in the UI Web control Pin
indian14317-Jan-14 6:59
indian14317-Jan-14 6:59 
AnswerRe: Report Like display in the UI Web control Pin
indian14321-Jan-14 5:51
indian14321-Jan-14 5:51 
GeneralRe: Report Like display in the UI Web control Pin
thatraja21-Jan-14 15:57
professionalthatraja21-Jan-14 15:57 
AnswerRe: Report Like display in the UI Web control Pin
thatraja21-Jan-14 15:59
professionalthatraja21-Jan-14 15:59 
QuestionCannot get ViewModel in MVC5 to work Pin
AlexHarmes17-Jan-14 4:42
AlexHarmes17-Jan-14 4:42 
AnswerRe: Cannot get ViewModel in MVC5 to work Pin
Mohamed Abdirahman19-Jan-14 1:08
professionalMohamed Abdirahman19-Jan-14 1:08 
Questionhow to use datalist control with button to redirect to that specific page Pin
Ravi900kumar17-Jan-14 2:13
Ravi900kumar17-Jan-14 2:13 
Questionwhich one is good for learning Window azure and sharepoint? Pin
NITIN GUPTA17-Jan-14 0:28
NITIN GUPTA17-Jan-14 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.