Click here to Skip to main content
16,003,873 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
Christian Graus3-Nov-07 12:19
protectorChristian Graus3-Nov-07 12:19 
QuestionPassing argument to function Pin
csinva3-Nov-07 8:36
csinva3-Nov-07 8:36 
AnswerRe: Passing argument to function Pin
pmarfleet3-Nov-07 9:03
pmarfleet3-Nov-07 9:03 
GeneralRe: Passing argument to function Pin
csinva3-Nov-07 9:12
csinva3-Nov-07 9:12 
GeneralRe: Passing argument to function Pin
pmarfleet3-Nov-07 9:21
pmarfleet3-Nov-07 9:21 
AnswerRe: Passing argument to function Pin
Guffa3-Nov-07 9:27
Guffa3-Nov-07 9:27 
AnswerRe: Passing argument to function Pin
Guffa3-Nov-07 9:12
Guffa3-Nov-07 9:12 
GeneralRe: Passing argument to function Pin
csinva3-Nov-07 9:56
csinva3-Nov-07 9:56 
GeneralRe: Passing argument to function Pin
csinva3-Nov-07 10:29
csinva3-Nov-07 10:29 
AnswerRe: Passing argument to function Pin
Guffa3-Nov-07 11:22
Guffa3-Nov-07 11:22 
Question[Message Deleted] Pin
Unknown Ajanabi3-Nov-07 2:42
Unknown Ajanabi3-Nov-07 2:42 
AnswerRe: i want to know how to create page dynamically like Sulekha.com Pin
Malcolm Smart3-Nov-07 4:23
Malcolm Smart3-Nov-07 4:23 
AnswerRe: i want to know how to create page dynamically like Sulekha.com Pin
Mircea Grelus3-Nov-07 5:15
Mircea Grelus3-Nov-07 5:15 
GeneralRe: i want to know how to create page dynamically like Sulekha.com Pin
Paul Conrad3-Nov-07 5:22
professionalPaul Conrad3-Nov-07 5:22 
Questionajax.net Pin
Rinki Mukheraji3-Nov-07 1:19
Rinki Mukheraji3-Nov-07 1:19 
AnswerRe: ajax.net Pin
InsDev3-Nov-07 1:33
InsDev3-Nov-07 1:33 
GeneralRe: ajax.net Pin
Rinki Mukheraji3-Nov-07 1:49
Rinki Mukheraji3-Nov-07 1:49 
AnswerRe: ajax.net Pin
Mircea Grelus3-Nov-07 2:10
Mircea Grelus3-Nov-07 2:10 
AnswerRe: ajax.net Pin
Unknown Ajanabi3-Nov-07 2:34
Unknown Ajanabi3-Nov-07 2:34 
AnswerRe: ajax.net Pin
Braulio Dez3-Nov-07 6:20
Braulio Dez3-Nov-07 6:20 
Questionform closing event Pin
Sonia Gupta3-Nov-07 1:00
Sonia Gupta3-Nov-07 1:00 
how should i call my javascript function when the page is of master type.i mean the javascript code is under the content tag.

<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">

function abc()
{
if(confirm('ok'))
{

}
}

i mean there is no body tag(because of master type page).hpow should i call the abc() function on browser closing

imran gave me the code

string attributeKey = "onunload";
string attributeValue = "abc();";
HtmlGenericControl body = (HtmlGenericControl)this.Master.FindControl("bid");
body.Attributes.Add(attributeKey, attributeValue);

which i wrote at form load , on the page having master page properties.

in the master page , i defined the function as below


function abc()
{
alert('hi');

}


function is not arising after clicking the form closing button

Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1

AnswerRe: form closing event Pin
InsDev3-Nov-07 1:30
InsDev3-Nov-07 1:30 
GeneralRe: form closing event Pin
Sonia Gupta3-Nov-07 1:42
Sonia Gupta3-Nov-07 1:42 
GeneralRe: form closing event Pin
Mircea Grelus3-Nov-07 2:05
Mircea Grelus3-Nov-07 2:05 
GeneralRe: form closing event Pin
John-ph3-Nov-07 2:54
John-ph3-Nov-07 2:54 

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.