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

ASP.NET

 
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 
AnswerRe: form closing event Pin
Unknown Ajanabi3-Nov-07 3:09
Unknown Ajanabi3-Nov-07 3:09 
AnswerRe: form closing event Pin
Christian Graus3-Nov-07 12:00
protectorChristian Graus3-Nov-07 12:00 
QuestionSelected row in Nested Gridview Pin
munawargani3-Nov-07 0:39
munawargani3-Nov-07 0:39 
AnswerRe: Selected row in Nested Gridview Pin
John-ph6-Nov-07 4:57
John-ph6-Nov-07 4:57 
Questionproblem with IIS Pin
amin_behzadi3-Nov-07 0:19
professionalamin_behzadi3-Nov-07 0:19 
AnswerRe: problem with IIS Pin
Saksida Bojan3-Nov-07 0:25
Saksida Bojan3-Nov-07 0:25 
AnswerRe: problem with IIS Pin
Christian Graus3-Nov-07 0:26
protectorChristian Graus3-Nov-07 0:26 
GeneralRe: problem with IIS Pin
amin_behzadi3-Nov-07 1:08
professionalamin_behzadi3-Nov-07 1:08 
GeneralRe: problem with IIS Pin
Sonia Gupta3-Nov-07 1:19
Sonia Gupta3-Nov-07 1:19 
GeneralRe: problem with IIS Pin
amin_behzadi3-Nov-07 1:23
professionalamin_behzadi3-Nov-07 1:23 
GeneralRe: problem with IIS Pin
InsDev3-Nov-07 1:36
InsDev3-Nov-07 1:36 
GeneralRe: problem with IIS Pin
Sonia Gupta3-Nov-07 1:47
Sonia Gupta3-Nov-07 1:47 
AnswerRe: problem with IIS Pin
Guffa3-Nov-07 1:59
Guffa3-Nov-07 1: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.