Skip to content

Tag: asp.net

Best way to scrolldown onpageload

I have the following code: The previous code attempts to scroll down after page loading. Is there any problem, as it doesn’t work for me? Answer instead of window.onload use because window.onload is fired when entire page load and document.ready is fired when DOM loads and use srcollTo instead of scroll

JQuery.css(“display”) = “block” not working

I wanted to show and hide my TextBox based on value selected in RadiobuttonList. I wrote the following code for that Though I had achieved my task by using JQuery.show() and JQuery.hide() but was not satisfied as I wanted to know why first approach failed. Second is I used $(“#<%= rbtnIsPFEnabled.Cli…

Get ‘Nan’ when auto calculate

I am creating a form using Gridview in ASP.NET. When the user fills in Qty and Price it needs to automatically calculate the Total. However, my Total always returns Nan (Not a number). What am I doing wrong? The ASP page looks like this: The JavaScript: Answer why are you using isNan and parseInt at the same …