I have a problem in popup Message.

Posted by Nuwan under ASP.NET on 3/13/2012 | Points: 10 | Views : 1390 | Status : [Member] | Replies : 8
Dear All.....

I have asp.net page with sql table. I want to it, if i add a record in that table want to popup Message Created.
Like Face Book Popup Message. How I do that. Please Help me.........

Rathnayake


Responses

Posted by: Raj_Chennai on: 3/13/2012 [Member] Starter | Points: 25

Up
0
Down
use ajax popup extender control it will be supported by visualstudio2010

raj

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 3/13/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

If you don't want to use ajax.....then you can popup messages using javascript alert()

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nuwan on: 3/13/2012 [Member] Starter | Points: 25

Up
0
Down
How i do that. Please give me a Example....


Rathnayake

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/13/2012 [Member] Silver | Points: 25

Up
0
Down
You can use popup div or modal popup.
follow this:
http://www.codeproject.com/Articles/32147/Masked-Div-Or-Modal-Popup-Window

using jquery:
http://creativeindividual.co.uk/2011/02/create-a-pop-up-div-in-jquery/

Thanks,
Sanjay

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 3/13/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi try this:

protected void btnInsert_Click(object sender, EventArgs e)
{
//Write your code for insert data into sql table here
Page.ClientScriptManager.RegisterStartupScript(this.GetType(), "Popup", "alert('Success....')", true);
}



Mark this as answer, if it helps you...................

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/13/2012 [Member] Silver | Points: 25

Up
0
Down
Also go through this:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=200

Thanks,
Sanjay

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 3/13/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

If ur using AJAX , do like this

function abc(type) {
$.ajax({
type: "post",
cache: false,
url: ServiceUrl + "/abcdService/abc",
contentType: "application/json; charset=utf-8",
dataType: "json",

success: function (msg) {
alert(Data added successfully.);
},
error: ServiceFailed
});
}


Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Patel28rajendra on: 3/14/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

You can use simply alert() as above written by Himanshu Manjarawala

Or you can use Ajax Modal popup extender that will be more attractive

Please refer following link

http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/

Thanks

Rajendra Patel

R D Patel

Nuwan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response