Deloittte Interview Questions on .. Net {3+yrs experienced}

Answer Posted / abhinaw kaushik

3)How to call javascript from c# code under button_click
without using Button1.Attributes.Is there any method?

Ans : Easiest way will be call the javascript function
omClientClick oh button.

e.g.
test.aspx page

<script type="text/javascript">
function something()
{
if(true) //your logic goes here
{
return true
}
else
{
return false
}
}
</script>

<asp:button id="btnHit" runat="server" text="check"
OnClientClick="return something();">


----------------
Q. How to call javascript function from webform1 to webform2?

Ams : Put that javascript in a separate file e.g text.js

refer this src to all your aspx pages.
e.g.
<script type="text/javascript" src="test.ja"></script>

Is This Answer Correct ?    29 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

your project to describe and tell about : 1. My favorite things 2. My favorite places at home 3. Animals *Choose one of them to describe *Write on your paper *If you done, Send me *Did you get it

781


A frog wants to climb a pole which is 15 feet in height, frog can jump 3 feet every minute after which he rests for a minute where he slips down 2 feet. How much time will the frog take to reach the top of the pole?

589


i want the sample placement paper of goldman sachs urgently. please send it to me

3920


printf("%d",printf("%d",printf("%d",printf("%s","ILOVECPROGRAM")))); whats the output

1388


What kind of Issues/bugs arise in ETL projects? I would like to know few issues (critical to somewhat bugs ) normally occur in ETL process especially when testing? Domains can be banking, retail or any.

1418






What are the frequently asked questions for interview in capital iq company ?

1314


what is bidirectional?

1382


Zero setting of sejong rottary press

1192


Hi.. Guys Im pranitha, presently im working in a organisation & im look for job at MNC's like DELL, Delloitte, Bank of America, Genpect, etc., I have completed B.com . Pls help me...

1134


aptitude

692


what is difference between uv and visible spectroscopy and how to differentiate the drug compounds in uv visible region

1587


Danlaw placement questions and answers

1345


If anybody knows the recruitment procedure of IOTL & POWER MECHANICAL. send me the placement papers if u hav... very urgent ...

3887


Recently conducted Apptitude test

1402


why didn't get placed so far?

1187