I want to write a java script function in a website developed for school in asp.net. I wanted to move a bus image on the page for which I am writing a java script function in 'SiteLayout.cshtml' file. I have 4 pages in my website and I want this to happen on about page of my website. But I do not know how and where?
Can anyone help me get more information for the topic please...
Jignesh TrivediPosted Dec 19, 2013, 1:28 AM
hi,
I think you can write your script with in script tag and it automatically register when you page is render.
hope this will help you.
Jaganathan BantheswaranPosted Dec 18, 2013, 11:54 PM
Try to understand this article, you may get solution.
PanduPosted Dec 18, 2013, 3:43 PM
Jaganathan BantheswaranPosted Dec 11, 2013, 11:36 PM
You can right it on about.cshtml file itself.
Make sure you have removed this line from SiteLayout page
@RenderSection("scripts", required: false)
In about page,
Let me know if you have doubts