I want to call CsharpFunction, a C# function in code-behind, from JavaScript. I tried the code below but whether the JavaScript condition is True or False, CsharpFunction was called regardless! JavaScript code: if (Javascriptcondition > 0) {...
I have a c# asp.net 3.5 app I am trying to open a window from code behind after a certain event. I have this but its not working and there are no errors in firebug protected override void OnPreRender(EventArgs e) { base.OnPreRender(e);...
I have a function that is responsible for populating an SSRS report. The user presses a button and I go out and check to see if there is data. If no data, I provide a NO DATA message. If there is data I call the SSRS report which I would like to o...
My webpage generates a lot of HTML dynamically using jQuery to display data. However, I need to access those dynamic HTML controls from C#. I cannot do runat="server", because JQUERY does its magic at runtime, depending on what user selects....
I want to get the value from side to confirm aspx bool type=false; type= ClientScript.RegisterStartupScript(typeof(Page), "exampleScript", "confirm('are you confirm?')", true); if(type){ ... } How do I get the value of...
I am new at C#.Net and i have one question that i couldn't manage to find on the internet. When should i use a classic combination of html + javascript + css instead of using an aspx page with a code behind? As i experienced since i started ....
I need to open a new window from code-behind on post-back if a specific radio button is selected. Is there any way to do this? Thank you....
I am trying to call code behind method from JS function using pagemethods but its not calling and its not throwing any error either... function example(){ pagemethods.method(); } **aspx.cs [webmethod] public static void method(){ //some logic }...
Let me explain the question, Currently I have set for example: #masterpage { min-height: 100%; min-width: 100%; overflow: auto; } now what I'd want this to do is this; When the page is loaded, it sets it's min-height and min-w...
I want to pass a string value to a javascript function from code behind. As it is a the moment I get an uncaught reference error explaining that the value is not defined. var variable= txtVariable.Value; ScriptManager.RegisterStartupScript(this.Page...
©2020 All rights reserved.