All Questions
Tagged with code-behind javascript
224 questions
1
vote
1
answer
199
views
VBnet on button_click need to run codebehind function then open modal dialog
I have an application where gridview data is selected and when finished, the user clicks a button to proceed. At that point I need to run a function in codebehind to process the selected items. Once ...
0
votes
0
answers
25
views
Pasting value using jquery into .NET Textbox is showing the value but not saving
I am pasting the value in the .NET Textbox WebApplication (WebForm) using the javascript, and the value is also appearing in the textbox on the webpage upon pasting.
Textbox:
<asp:TextBox ID="...
0
votes
1
answer
433
views
Opening a popup by calling Javascript from CodeBehind
I am trying to open a popup window by calling a JavaScript function in CodeBehind (vb.net) on a button click event.
The idea is that I click the button, the button click event does a bunch of stuff, ...
0
votes
2
answers
78
views
Setting the value of an input through javascript
What I'm trying to do is to change a behind-the-code C# veriable's value through javascript. My code:
HTML & JS -
function SetPostbackValues() {
document.getElementById("hiddenControl")....
0
votes
0
answers
212
views
Make a simple JavaScript Alert pop-up in C# code behind after a session ends
What I am trying to do is that I have used a function in the Global.asax.cs file to detect when a user's login session has expired and if it is expired then the user should be redirected to the login ...
0
votes
1
answer
30
views
How to show the data inside of a dropboxlist inside, using static method in the code behind to fill the dropdownlist
the idea is to fill the dropdownlist, with information from the database, the code was debugged and the information if stored in the dropdownlist, the problem is that it, you can not see any advice.
I ...
0
votes
1
answer
64
views
Should I be able to call a <script> from a C# routine in a true behind page?
I have a Blazor WebAssembly app with ASP.NET Core hosted, with my markup code in Index.razor and behind code in Index.razor.cs. Call me old fashioned.
I have the hookups between razor and razor.cs in ...
0
votes
0
answers
228
views
How can I submit form in codebehind (C#)?
I want to submit form from code behind (C#), like js -
$(formid).submit(),
Is there any option like this?
I don't want any sophisticated solutions, just simple.
like the option in javascript.
0
votes
1
answer
86
views
How to make this JavaScript popup window modal?
This is working well for me, but I need to make it modal so it doesn't get lost behind the main app screen. Is there a way to easily make this screen modal?
string url = "EditTables.aspx?title=Edit ...
0
votes
1
answer
386
views
How to popup a dialog box in Page Load
I have make a dialogbox as shown below in aspx:
<div id="IsAccountingOk" class="modalDialog">
<div>
<a href="#close" title="Close" class="close">X</a><br />
...
0
votes
1
answer
308
views
Why does my document body onload event occurs continously?
I have a javascript function that causes a click event on a button, which activates a function in the code-behind. I want this click/function to occur once when the page first loads, however I can't ...
0
votes
1
answer
1k
views
How to correctly create the 'tap' button event handler in a Nativescript with JS app
I am learning nativescript with JS and I am facing problems with fundamental things. I want to navigate to another page (via a tap button event handler) and I don't know why it will not work when the ...
0
votes
1
answer
55
views
Change <form> values before submitting
I need to post form to Salesforce to create a case. Before submitting a form depending on which button is clicked I need to change form values.
I created a from which has two buttons, when first ...
1
vote
2
answers
3k
views
How to call Javascript alert from code behind in asp.net
I have used below code to show the alert messages from code behind in asp.net.
Home.aspx:
<asp:ScriptManager runat="server" ID="smHome"></asp:ScriptManager>
Home.aspx.cs:
protected ...
0
votes
0
answers
152
views
javascript function causing postback on asp.net
This following javascript is causing an unwanted postback on asp.net webform codebehind:
mini_cal.on("click, focusin", ".a-date", function(){
if(!$(this).hasClass('blurred'))
showEvent($(this)....