Click here to Skip to main content
15,887,214 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionajax toolkit modalpopupextender problem Pin
UD(IA)3-Oct-08 20:04
UD(IA)3-Oct-08 20:04 
AnswerRe: ajax toolkit modalpopupextender problem Pin
Andreas X3-Oct-08 21:43
professionalAndreas X3-Oct-08 21:43 
GeneralRe: ajax toolkit modalpopupextender problem Pin
UD(IA)3-Oct-08 22:09
UD(IA)3-Oct-08 22:09 
GeneralRe: ajax toolkit modalpopupextender problem Pin
Andreas X3-Oct-08 22:14
professionalAndreas X3-Oct-08 22:14 
GeneralRe: ajax toolkit modalpopupextender problem Pin
UD(IA)3-Oct-08 22:38
UD(IA)3-Oct-08 22:38 
GeneralRe: ajax toolkit modalpopupextender problem Pin
Andreas X3-Oct-08 22:47
professionalAndreas X3-Oct-08 22:47 
GeneralRe: ajax toolkit modalpopupextender problem Pin
UD(IA)3-Oct-08 22:55
UD(IA)3-Oct-08 22:55 
GeneralRe: ajax toolkit modalpopupextender problem Pin
Andreas X3-Oct-08 23:09
professionalAndreas X3-Oct-08 23:09 
Ok!

your have a modal poupextender:
<cc1:modalpopupextender runat="server" id="MPE" targetcontrolid="btn_Add_new_project" xmlns:cc1="#unknown">
    PopupControlID="pnl11" BackgroundCssClass="modalBackground" OkControlID="btn_add" 
    OnOkScript="onOk()" Drag="true" DropShadow="true"  />
</cc1:modalpopupextender>


which is shown when you click on targetcontrolid="btn_Add_new_project"

then you have:
<asp:linkbutton runat="server" id="btn_Add_new_project" text="Add New Project" onclick="btn_Add_new_project_Click" xmlns:asp="#unknown">
</asp:linkbutton>

which is the button to open the modal with.
this button is connected to a onclick="btn_Add_new_project_Click" which I know nothing about.

then you have the method:

protected void btn_add_Click(object sender, EventArgs e)
    {
        DataTable tbl_test = dt.filltbl("select * from tbl_issue_type where issue_type=" + "'" + txt_issue_type.Text + "'", "aa");
        if (tbl_test.Rows.Count > 0)
        {
            Page.RegisterStartupScript("myrest", "<script>alert('issue type already exists');</script>");
        }
        else
        {
            DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
            DataRow row1 = tbl1.NewRow();
            row1["issue_type"] = txt_issue_type.Text;
            tbl1.Rows.Add(row1);
            dt.update(tbl1, "select * from tbl_issue_type");
            Page.RegisterStartupScript("myrest", "<script>alert('New issue was added successfully');</script>");
            //Page.RegisterStartupScript("myqd", "<script>window.opener.location.reload(true);</script>");
            //Page.RegisterStartupScript("abc", "<script>window.close();</script>");
        }
    }


which is supposed to be called by a button the has a onclick="btn_Add_Click" event connected.
I have not seen this one either.

so my question:
do you want to store tha data to the database when you open your modal or when you close it?

do you have a button to close it? since the button i asked for does not exist:
<asp:linkbutton runat="server" id="btn_Add" text="Ok" onclick="btn_Add_Click" xmlns:asp="#unknown">
</asp:linkbutton>


and according to the modal popup extender, this button, or something with the same name should close the modal.

Andreas Johansson

IT Professional at Office IT Partner i Norrbotten Sweden

What we don't know. We learn.
What you don't know. We teach

GeneralRe: ajax toolkit modalpopupextender problem Pin
UD(IA)3-Oct-08 23:24
UD(IA)3-Oct-08 23:24 
GeneralRe: ajax toolkit modalpopupextender problem Pin
Andreas X4-Oct-08 1:07
professionalAndreas X4-Oct-08 1:07 
QuestionBarcode image is not showing in Windows Vista....... Pin
samrat.net3-Oct-08 19:24
samrat.net3-Oct-08 19:24 
AnswerRe: Barcode image is not showing in Windows Vista....... Pin
Ashfield4-Oct-08 0:18
Ashfield4-Oct-08 0:18 
QuestionRetriving images and files from other server? Pin
Member 38798813-Oct-08 18:37
Member 38798813-Oct-08 18:37 
AnswerRe: Retriving images and files from other server? Pin
Viral Upadhyay4-Oct-08 1:57
Viral Upadhyay4-Oct-08 1:57 
QuestionASP question Pin
Programmer993-Oct-08 16:46
Programmer993-Oct-08 16:46 
AnswerRe: ASP question Pin
Jaffer Mumtaz4-Oct-08 22:26
Jaffer Mumtaz4-Oct-08 22:26 
QuestionParse Text Boxes for Formatting Pin
JrunkDunc3-Oct-08 14:54
JrunkDunc3-Oct-08 14:54 
AnswerRe: Parse Text Boxes for Formatting Pin
Meax4-Oct-08 4:08
Meax4-Oct-08 4:08 
Questionsending appointment as email attachment to Groupwise Pin
janetb993-Oct-08 10:20
janetb993-Oct-08 10:20 
QuestionHow can solve "Server Error in '/' Application." error message to rescue my project? Pin
JUNEYT3-Oct-08 6:08
JUNEYT3-Oct-08 6:08 
AnswerRe: How can solve "Server Error in '/' Application." error message to rescue my project? Pin
Rocky#3-Oct-08 10:56
Rocky#3-Oct-08 10:56 
GeneralRe: How can solve "Server Error in '/' Application." error message to rescue my project? Pin
JUNEYT3-Oct-08 11:11
JUNEYT3-Oct-08 11:11 
GeneralRe: How can solve "Server Error in '/' Application." error message to rescue my project? Pin
Andreas X3-Oct-08 21:54
professionalAndreas X3-Oct-08 21:54 
GeneralRe: How can solve "Server Error in '/' Application." error message to rescue my project? Pin
JUNEYT3-Oct-08 23:02
JUNEYT3-Oct-08 23:02 
GeneralRe: How can solve "Server Error in '/' Application." error message to rescue my project? Pin
Andreas X4-Oct-08 1:27
professionalAndreas X4-Oct-08 1:27 

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.