/    Sign up×
Community /Pin to ProfileBookmark

how to call dotnet code in javascript?

Hi,
Here iam working on a quiz application,i have developed almost n i have to implement time for each question.
I wrote a javascript ,in thought wen time out i have to call dotnet code,so that question skip to next.
i call like this <% call questionext() %> but it’s not working.
I wd like to know how to call dotnet function in javascript.
plz do help me
with regards
satish

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@SoreheadMar 01.2007 — dotnet is a server side scripting language, meaning you cant call it after a page has been loaded in the browser, any dotnet scripts are processed on the server before the page is sent to the browser.
Copy linkTweet thisAlerts:
@konithomimoMar 01.2007 — The only way to call a dotnet function is to have the page refresh, and have that call happen as the page loads, which means that you would have to use a form submissoin, or a page change that uses the querystring to specify which number to go to.
Copy linkTweet thisAlerts:
@felgallMar 01.2007 — The only way to do it without reloading the page is using Ajax.
×

Success!

Help @satish123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...