Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Do we have vacancy for HR RECRUITER ?

1806


email me previous question papers of bob bank for po exams

2460


Recently conducted Apptitude test

1898


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

1817


what you will do when you struck in traffic ?

1429


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

1915


Zero setting of sejong rottary press

1661


Danlaw placement questions and answers

1830


speak 1min on topic Travelling,memorable moment ,memorable day?

2219


what is bidirectional?

1829


my question is : reverse a string in COBOL program (please write a code asap) input file: 1234abcdef output file: 8765_____ abc*$#1___ 1_2_3_4__ cdef____ghi h_k_z_a__ a_z_k_h___ ihg____ghi 4_3_2_1___ 1#$*cba__ ______5678 fedcb4321

1809


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

4359


aptitude

1100


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?

1043


What were the occupations of the people who lived within the Mauryan Empire?

1088