520
questions
0
votes
0
answers
31
views
ScriptManager not calling Js function
I have a server control page where the input is entered and when button is clicked I want to trigger function in .aspx and again continue the C# code written below the script manager.
Now the thing is ...
0
votes
1
answer
66
views
how to execute a javascript block code using ScriptManager in asp.net?
Below code is working but when I want to add 2 js commands it doesn't. For example "alert('hello1');alert('hello2');". Does anyone has any solution for this?
StringBuilder sb = new ...
0
votes
1
answer
322
views
Update Panel does not allow jQuery to work properly in Asp.Net Webform
I have a problem with Update Panel in Asp.Net webforms. I have a simple page where I heed to enter a name, choose the font of the name and show that name dynamically as the font is changed. The ...
0
votes
2
answers
176
views
Not able to open multiple tabs using ScriptManager.RegisterClientScriptBlock in c#
I need to open 2 different pages in different tab on click of save button. In the button click event I have the below code. The code is working if there is only one script block. Tried appending the ...
0
votes
0
answers
125
views
How to pass special character from C# to JavaScript via ScriptManager.RegisterStartupScript
I want to pass a string that contain a special character as a paramaert of JS function from C# like the following:
string param = "sm~aEkv{yEb@~IX`GVhG@\\BZ@bA?L";
string jsFunction = "...
0
votes
1
answer
268
views
How to call .NET page method using VB.NET and AJAX
In my web page, I have the following JavaScript..
function doLogin() {
var u = document.getElementById('username').value;
var p = document.getElementById('password').value;
...
0
votes
0
answers
70
views
UpdatePanel always post back whole page
There is an UpdatePanel add inside UserControl, and this user control is added inside the MasterPage. When clicking on a button in that UpdatePanl. The whole page is refreshed. why?
Master Page:
<%@...
0
votes
0
answers
170
views
Selected File Removed on validating and change event of Radio button with update panel in ASP.NET
In my ASPX form I have Update Panel and Script Manager too.
When I am changing Radio button oncheckedChanged All selected file will be removed from my aspx file as well as when I submit the form if ...
0
votes
0
answers
153
views
How to trigger print in new window which is opened using RegisterClientScriptBlock in CS file
This is my code to open it in new window, which works fine .
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ViewDocument", "window.open('PdfViewer.aspx?fileName=" + displayFName + " ...
2
votes
1
answer
1k
views
ScriptResource.axd Uncaught SyntaxError: Invalid or unexpected token
I have been scouring the internet for an answer to this. So far the fixes I've attempted have not worked. I honestly think this might be related to a Windows update I did earlier this month as I was ...
0
votes
0
answers
116
views
How do I call a Javascript function on the back end Vb.net
I have these functions and I need to use them in them from the back end using:
UI.ScriptManager.RegisterStartupScript
Do I need to change the functions or should I just be able to refer to them like ...
0
votes
0
answers
55
views
How to stop the function when message box popping out?
I loop a list to do checking when false will pop out a message to show update or delete.
However the message box after looping only pop out. How to pop out immediately when meet the condition?
My ...
1
vote
1
answer
235
views
ASP.NET Webform scriptmanager compatibility issue with Office outlook web add-in
We use asp.net webform to develop our outlook web add-in.
There has been an issue in the add-in when a postback occurs inside an updatepanel, some client side errors will be thrown and it will make ...
0
votes
1
answer
250
views
Calling a JS function from an ASP.Net MasterPage
I have a requirement to read image data from SQL Server (company logo) and keep it in localStorage. This company logo is displayed in the master page left sidebar so that in every client page it will ...
0
votes
1
answer
515
views
Dynamic TextBox TextChanged is not firing in UpdatePanel
My dynamic textboxes TextChanged event is working properly without using UpdatePanel, but when i use UpdatePanel it stops working. it works only when Button is clicked and when the LinkButton is ...
3
votes
0
answers
5k
views
Run shell script on boot / start
First of all , my rooted phone is Xiao Mi Red Mi Note 7.
MIUI version : 10.2.3.
Android Version : 9 PKQ1.180904.001.
Shell script :
set -xeo pipefail
_stopnow() {
test -f stopnow && ...
1
vote
0
answers
130
views
Concurrency issues with ScriptManager
I know that Asp.Net WebForms is pretty old and obsolete, but I hope there are still people around maintaining such a legacy code base...
I'm seeing weird errors when load-testing our website, which ...
0
votes
0
answers
116
views
ScriptManager not calling Javascript function
I am trying to call a JavaScript function from codebehind which will show a modal. The JavaScript function is not getting called when using ScriptManager. Please help.
CodeBehind:
using System;
...
0
votes
1
answer
842
views
ScriptManager not working while adding parameters in alert in asp.net
I want to display dynamic ID generated while inserting the record in the database in alert.
So I implemented the below mentioned code for my use.
ScriptManager.RegisterStartupScript(this, this....
0
votes
0
answers
63
views
Can we set the default attribute value globally of a ScriptManager control in an asp.net 3.5 website?
Want to set the default value of the attribute of all the ScriptManager control.
<asp:ScriptManager ID="ScriptManager1" LoadScriptsBeforeUI="false" runat="server" ></asp:ScriptManager>
...
0
votes
1
answer
2k
views
Full Screen mode not working while loading the web page in a new window
I used the following code segment to move from A.aspx web page to B.aspx web page and I need to load the B.aspx page in full screen mode in a separate window. I am able to load the content on a ...
6
votes
1
answer
5k
views
How to whitelist dynamically created scripts in a WebForms project using CSP (Content Security Policy)?
Is there a secure way of whitelisting dynamically created scripts in a WebForms project using CSP (Content Security Policy)?
Using unsafe-inline like below it works but not recommended.
context....
0
votes
0
answers
221
views
vb.net - include .js file from local system on ScriptManager
I have a scriptmanager which I am accessing through vb.net code. I would like to have it include a .js script that is on the server's local filesystem and is not being hosted on the server. It is ...
1
vote
2
answers
1k
views
Content Security Policy
I am currently implementing CSP(Content Security Policy) for my project and i have chosen to implement nonce for all the inline scripts that cannot be moved away from the web page. While trying to ...
1
vote
0
answers
367
views
Scriptmanger.registerclientscript not working while downloading file c#
I am trying to call a javascript function through ScriptManager.RegisterClientScriptBlock.
Here is my code:
renderedBytes = ReportViewer1.LocalReport.Render(reportType, deviceInfo, out mimeType, ...
0
votes
1
answer
1k
views
Script Manager Register Startup Script do not add script to page
Riddle me this, SO. I have two buttons:
<div class="btn-group" role="group">
<asp:Button runat="server" ID="RegisterButton" ClientIDMode="Static" OnClick="RegisterButton_Click" Text="...
0
votes
1
answer
251
views
UpdatePanel refresh whole page (ASP.NET WebForm, migrated project)
I am working in ASP WebForm Project, it is legacy code, originaly it was made with VS 2008, but the team migrate it to VS 2015 and .NET 4.5.2. The problem is that I am trying to use an UpdatePanel to ...
0
votes
1
answer
3k
views
Error: Unable to get property '_ScriptLoaderTask' of undefined or null reference
Why does Error: Unable to get property '_ScriptLoaderTask' of undefined or null referece get thrown when trying to close a RadWindow with ScriptManager and JavaScript in ASP? (Internet Explorer 11)
...
1
vote
0
answers
1k
views
ScriptManager Error in the application
I have below scenario in my ASP.net using C# application
Master page:
I have included below code in Site.Master to register the scriptmanager as used some Telerik controls in it:
<%@ Register ...
1
vote
0
answers
839
views
window.open is not working in c#
Hi my below code is as below
public void OpenNewWindow(string url)
{
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "newindow", String.Format("<script>window.open('{0}');</...
1
vote
1
answer
937
views
Navigate to a new page and display an alert box
I am developing an application by using ASP.Net WebForm. Once user click a button, application will navigate to a new page and prompt out a dialog box "Welcome to JackiesGame"
However, I able to ...
0
votes
1
answer
1k
views
How to bundle the JS loaded by script manager from CDN in Asp.Net
I have an application in asp.net, I am using a script manager in master page. I want to load all the scripts related to script manager from CDN and hence I have placed EnableCDN="true" in script ...
0
votes
0
answers
394
views
How to run ScriptManager.RegisterStartupScript before Response.Redirect
How to run ScriptManager.RegisterStartupScript before Response.Redirect
Script in .ASPX Code:
<script type="text/javascript">
var soundObject3 = null;
function ...
1
vote
1
answer
402
views
How to attach a big Html string in asp.net when Label.text can't handle the size (OutofMemory)
I have a project that generates reports in html string format. Then I attach this string to a label or literal and works great.
The problem is.. when the report is too big, around (27k records), I ...
0
votes
1
answer
347
views
ASP UpdateProgress not working with iframe
I am using the updateProgress control to display loader.gif while the iframe in my page loads.
The iframe takes much time to load but the loader.gif does not appear
This is my aspx page
<!...
0
votes
0
answers
187
views
Asp.net Webforms - Using ScriptManager/Proxy to add Bundled Javascript to Both Top and Bottom of Page
I would like to use the built-in asp.net ScriptManager/ScriptManagerProxy controls to add bundled javascript code to both the top AND the bottom of the page. I have some code I want to load near the ...
0
votes
1
answer
133
views
ASP.NET Bootstrap show modal while loading JS files at the end of body tag
I am trying to show a bootstrap modal programmatically using ASP.NET.
The problem is that the ScriptManager is before the script loading (I loads the script files at the end of the body). Because of ...
0
votes
1
answer
544
views
After partial postback of Update-panel, everything outside the update-panel disappears
Issue Description:
I have an AJAX file-uploader control inside update panel.
After successful file-upload, I need to show a bootstrap popup to the user.
Case 1: When I add the update-panel property ...
1
vote
1
answer
2k
views
Unable to trigger JavaScript method from code-behind using Update Panel
Issue details:
After saving the data in DB, I need to show an alert to the user.
For this, I have registered the script from code-behind.
But it is NOT working with update-panel whereas it works as ...
1
vote
1
answer
1k
views
How to load fancybox only once in DotNetNuke (DNN) (JS is already included in theme and modules)
I have a DotNetNuke website and I get a 'fancybox already initialized' error.
I would like to know how I can check and only include the JavaScript file once when the page load? I know that the Script ...
-1
votes
1
answer
39
views
Only one instance of custom control can register in page like scriptmanager
I am creating a custom web control that I need only one instance of control user can add in page, same like scriptmanager.
I need this check under custom control it self but not getting any correct ...
1
vote
1
answer
188
views
How to express directives as C# so they can be conditional
This markup supports code that is not rendered in the mobile version of the page on which I'm working.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&...
2
votes
2
answers
2k
views
Why is the eval class giving me a casting error from int to double?
I am trying to make a method that takes a string formula, and solves the integral of that formula by doing a Riemann's sum with very small intervals. I am using the ScriptEngine and ...
0
votes
1
answer
438
views
ScriptManager causing postbacks with validators
Here is my entire page body html:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<...
0
votes
1
answer
870
views
System.InvalidOperationException: Only one instance of a ScriptManager can be added to the page
In the following code file I have written ajax modal popup code on line no. 47 And I am getting error saying only one instance of scriptManager can be added to the page i am yet learning asp.net ...
0
votes
1
answer
200
views
JavaScript method call only be called once using ScriptManager
I have a .net Web form method to call the JavaScript method (from a user control) in one call, but only the first call is triggered.
The back-end codes are:
bool isAddOnsExisting = priceSummaryList....
0
votes
1
answer
1k
views
"Unable to open registry key <name> for reading" [Windows 10 Education]
I started getting this error a while ago at every startup. After searching on Microsoft's website, I now know what the error is, but I don't know where it is. Does anyone know where to find the ...
0
votes
1
answer
91
views
error handle gridview in updatepanel asp.net
I put a gridview in an updatepanel.
When user del a row that will cause a FK error, there will be no any message and error page showup because asyncpostback updatepanel.
I put an ScriptManager....
0
votes
1
answer
477
views
Error in UpdatePanel: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
I use a UpdatePanel with a Gridview in it. A Timer is checking some things in the Gridview. In the Gridview I generate a column for viewing an upload:
<asp:TemplateField HeaderText="Zeichnung" ...
0
votes
1
answer
5k
views
How to use ScriptManager.RegisterStartupScript from within a dll
In various project I used the following code to open a document in a window, from an aspx page :
public void viewDocument(string strLink, System.Web.UI.Control ctrlPanel)
{
string strScript;
...