522 questions
0
votes
1
answer
58
views
ASP.NET WebForms still loads old jQuery from ScriptResource.axd after upgrading to jQuery 3.7.1
Our security team flagged an issue indicating that an older jQuery version appeared to be loaded in our application.(ScriptResource.axd)
I am working on an ASP.NET WebForms (.NET Framework) ...
0
votes
1
answer
56
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
76
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
371
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
219
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
128
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
322
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
73
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
177
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
224
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
127
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
56
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
255
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
274
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 ...