Click here to Skip to main content
15,888,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Controls to be used Pin
Richard MacCutchan10-Dec-14 22:10
mveRichard MacCutchan10-Dec-14 22:10 
GeneralRe: Controls to be used Pin
sudevsu11-Dec-14 2:44
sudevsu11-Dec-14 2:44 
GeneralRe: Controls to be used Pin
Richard MacCutchan11-Dec-14 6:31
mveRichard MacCutchan11-Dec-14 6:31 
GeneralRe: Controls to be used Pin
sudevsu11-Dec-14 9:11
sudevsu11-Dec-14 9:11 
GeneralRe: Controls to be used Pin
Richard MacCutchan11-Dec-14 23:02
mveRichard MacCutchan11-Dec-14 23:02 
QuestionFetch Facebook Wall Post and Display in a Web Application Pin
Rimi Indu9-Dec-14 1:31
professionalRimi Indu9-Dec-14 1:31 
AnswerRe: Fetch Facebook Wall Post and Display in a Web Application Pin
ZurdoDev9-Dec-14 1:59
professionalZurdoDev9-Dec-14 1:59 
Questioninserting data to DB on button click placed inside the jquery dialog pop-up window in masterpage Pin
Member 110118538-Dec-14 23:43
Member 110118538-Dec-14 23:43 
hi... I'm creating pop-up window to allow visitors to post their feedbacks. In master page, i used DIV tag for feedback GUI, on click of "Feedback" option ,im displaying feedback DIV as a popup window using jquery dialog method. on click of "Send" button, i wrote code for inserting data to DB. In webform created using masterpage, "Send" button click event is not triggering, but in webpage without masterpage , "Send " button event is triggering..

I want the code to work in childpages...

Masterpage code:
source code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">

$("[id*=btnPopup]").live("click", function () {
$("#modal_dialog").dialog({
title: "POST FEEDBACK",
width: "600",
modal: true,
buttons: {
Send: function () {
//$("[id*=Button1]").click();
$(document.getElementById('<%= Button1.ClientID %>')).click();
},
Close: function () {
$(this).dialog('close');
}
},
open: function (type, data) { $(this).parent().appendTo("form"); },
close: function (type, data) { $(this).parent().replacewith(""); }
});
return false;
});


  • <asp:linkbutton id="btnPopup" runat="server" text="Feedback">Feedback


  • protected void Button1_Click(object sender, EventArgs e)
    {
    if (b.Feedback_Add(txtName.Text, txtEmailId.Text, txtContactNo.Text, txtFeedback.Text, DateTime.Now.ToShortDateString()) == 1)
    Response.Write("alert('Feedback sent successfully.')");
    else
    Response.Write("alert('ERROR in sending feedback.')");

    txtContactNo.Text = "";
    txtEmailId.Text = "";
    txtFeedback.Text = "";
    txtName.Text = "";
    }

    This is not working....!

    Webpage without masterpage:



    $(document).ready(function () {
    $("#modal_dialog").dialog({
    title: "jQuery Dialog Popup",
    width: "600",
    modal: true,
    buttons: {
    Send: function () {
    //$("[id*=Button1]").click();
    $(document.getElementById('<%= Button1.ClientID %>')).click();
    },
    Close: function () {
    $(this).dialog('close');
    }
    },
    open: function (type, data) { $(this).parent().appendTo("form"); },
    close: function (type, data) { $(this).parent().replacewith(""); }
    });
    return false;
    });










    protected void Button1_Click(object sender, EventArgs e)
    {
    if (b.Feedback_Add(txtName.Text, txtEmailId.Text, txtContactNo.Text, txtFeedback.Text, DateTime.Now.ToShortDateString()) == 1)
    {
    Response.Write("window.alert('Feedback sent successfully.');window.location='/Visitor/HomePage.aspx';");
    }
    else
    {
    Response.Write("window.alert('ERROR in sending feedback.');window.location='/Visitor/HomePage.aspx';");
    }
    //System.Threading.Thread.Sleep(10000);
    txtContactNo.Text = "";
    txtEmailId.Text = "";
    txtFeedback.Text = "";
    txtName.Text = "";
    /
    }

    This code is working....!

    I want the code to execute in childpages
    Any help appreciated..!
    Thank You...!
    QuestionRe: inserting data to DB on button click placed inside the jquery dialog pop-up window in masterpage Pin
    ZurdoDev9-Dec-14 3:53
    professionalZurdoDev9-Dec-14 3:53 
    AnswerRe: inserting data to DB on button click placed inside the jquery dialog pop-up window in masterpage Pin
    Member 110118539-Dec-14 18:00
    Member 110118539-Dec-14 18:00 
    GeneralRe: inserting data to DB on button click placed inside the jquery dialog pop-up window in masterpage Pin
    ZurdoDev10-Dec-14 2:18
    professionalZurdoDev10-Dec-14 2:18 
    GeneralRe: inserting data to DB on button click placed inside the jquery dialog pop-up window in masterpage Pin
    Member 1101185310-Dec-14 20:24
    Member 1101185310-Dec-14 20:24 
    Questionstudent registration without validation using class Pin
    Jinxez8-Dec-14 23:15
    Jinxez8-Dec-14 23:15 
    QuestionRe: student registration without validation using class Pin
    Richard MacCutchan8-Dec-14 23:45
    mveRichard MacCutchan8-Dec-14 23:45 
    AnswerRe: student registration without validation using class Pin
    Richard Deeming9-Dec-14 2:06
    mveRichard Deeming9-Dec-14 2:06 
    GeneralRe: student registration without validation using class Pin
    Richard MacCutchan9-Dec-14 6:13
    mveRichard MacCutchan9-Dec-14 6:13 
    QuestionPayment Gateway Not working in Master Page Pin
    Member 106878536-Dec-14 20:20
    Member 106878536-Dec-14 20:20 
    SuggestionRe: Payment Gateway Not working in Master Page Pin
    ZurdoDev8-Dec-14 9:52
    professionalZurdoDev8-Dec-14 9:52 
    Questionsitemap question Pin
    Member 87616676-Dec-14 8:21
    Member 87616676-Dec-14 8:21 
    AnswerRe: sitemap question Pin
    Member 106878536-Dec-14 20:21
    Member 106878536-Dec-14 20:21 
    GeneralRe: sitemap question Pin
    Member 87616677-Dec-14 2:58
    Member 87616677-Dec-14 2:58 
    Questionhow can i create dynamic checkbox and get that's value when i click button in asp.net using vb.net Pin
    nidhin10006-Dec-14 7:19
    nidhin10006-Dec-14 7:19 
    AnswerRe: how can i create dynamic checkbox and get that's value when i click button in asp.net using vb.net Pin
    PIEBALDconsult6-Dec-14 7:54
    mvePIEBALDconsult6-Dec-14 7:54 
    QuestionUser Controls disappear on PostBack Pin
    Member 106878534-Dec-14 19:10
    Member 106878534-Dec-14 19:10 
    AnswerRe: User Controls disappear on PostBack Pin
    syed shanu4-Dec-14 19:59
    mvasyed shanu4-Dec-14 19:59 

    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.