Questions tagged [webforms]

Web Forms is a part of the ASP.NET web framework. It is one of the programming models you can use to create web applications. Web Forms are pages that users request through their browsers and that form the user interface (UI) that gives web applications their look and feel.

webforms
5,765 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
293 views

Add Serial Number for two tables with same id

Requirement : The page have more than 3 table depending upon the users selection. The user will select whether the table should have serial number or not. Problems I used bootstrap table and need to ...
user3774591's user avatar
2 votes
1 answer
620 views

How to create a singleton class which runs when ASP.NET WEB FORMS starts (without dependency on the user login)

I have an ASP.NET web form application hosted on IIS. In the app, I have a code snippet that should make some work on the background from the moment the application starts. The problem is when I have ...
Shahak Shaked's user avatar
2 votes
0 answers
158 views

i buy a asp net website when i try to setup it say HTTP Error 500.19 - Internal Server Error

i buy a asp net website when i try to setup it say HTTP Error 500.19 - Internal Server Error here is full error text HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed ...
Juwel Rana's user avatar
2 votes
1 answer
282 views

How to use the asp.net button to validate by jquery and then go to the behind code web form

I have an asp.net webform and I want to validate the textboxes first Then after that (after success), go to the behind code cs but now when I press the button it doesn't work the jquery code: ... <...
Ismail Omer's user avatar
2 votes
0 answers
177 views

Setting base tag of iframe C#

How can I set the base tag of an iframe from code-behind, knowing that the iframe's content is set by srcdoc Attributes['srcdoc'], My code: string baseUrl = "" string content = Model....
Ali Kleit's user avatar
  • 3,319
2 votes
1 answer
359 views

Calling a server side method from a dynamically generated button inside an update panel

Lets preface this with the fact that I am learning ASP.NET C# and this is my first "real" project so there is a good chance I am missing something obvious, I apologize in advance. I am working on a ...
fataldarkness's user avatar
2 votes
0 answers
76 views

Using Request.Params when trying to find Control that caused postback returns the wrong control

I have a button that makes a call to an external url to log in to an accounting program (Xero) using OAuth 2. After receiving the token, etc., the button is hidden and a "Disconnect" button is shown. ...
Rani Radcliff's user avatar
2 votes
0 answers
132 views

How does one compare different versions of MSMDPump.dll?

I am trying to implement MSMDPump.dll on my web server to allow my users to connect to several cubes I have on a SSAS server. I was reading this article and it says I need to pull that file from (<...
Cody's user avatar
  • 161
2 votes
0 answers
248 views

How to use LightInject with Web Forms?

I have a legacy ASP.Net Web Forms application targeting .Net 4.8 in which I would like to use dependency injection. Our engine of choice is LightInject. With the help of this answer and the source ...
Gyum Fox's user avatar
  • 3,487
2 votes
0 answers
616 views

Implementing Blazor Server-Side to existing Asp.NET 4.6.1 project?

I have been working on a project which uses Asp.NET 4.6.1 framework. It has been designed with webforms. Is there a way that I could implement Blazor Server-side to the existing project?
Mucahit's user avatar
  • 31
2 votes
2 answers
3k views

Windows Authentication Issue going from Edge to Edge Chromium

The problem I have a web forms application that is a management application to monitor other applications on the network. Currently this is used in edge or internet explorer, but we will be using ...
user avatar
2 votes
3 answers
2k views

How to get image from datatable?

I have a data table called dtchild and it contains a column named FILE_CONTENT. In my data table, FILE_CONTENT data is stored as a byte[] array. How to retrieve FILE_CONTENT data from the data table ...
Aishwarya Snigdha's user avatar
2 votes
0 answers
506 views

Azure AD Authentication Endless Loop, Err Too Many Requests

I built a Web Forms app in ASP.Net and I'm using Azure AD Authentication so that users can sign in with their Microsoft credentials and be properly authenticated. I closely followed the following ...
lejaxo2851's user avatar
2 votes
0 answers
1k views

Session null after redirect and return from another domain

We have a website ASP.NET Web Forms which uses another website (from another company, we have no control on it) service. in order to use their service we call their API and make HTML form (include ...
Mohammad Asghari's user avatar
2 votes
0 answers
2k views

Using JWT token in ASP.NET Web forms

An ASP.NET web-forms based application, follows form authentication, maintains user session in DB for stateless model across the servers(F5 DR). Planning to replace the session management with JWT ...
tech01230's user avatar
2 votes
0 answers
43 views

Asp.net webform, jquery

I’m working on a project of estimation for my office. I'm using Ajax Autocomplete in Visual Studio 2017. The following code isn’t working in an ASP.Net WebForms project. <asp:TextBox ID="...
thong tran's user avatar
2 votes
0 answers
1k views

IIS Temporary file "Bad method token"

In have stumbled upon a problem in production server where when IIS AppPool gets recycled the application starts giving error "Bad method token". It will give the error until the AppPool is restarted. ...
Piibe's user avatar
  • 31
2 votes
0 answers
131 views

Why I am getting 'querySelector' of null ? What I'm doing wrong in this code?

I have implemented code on magnolia cms, the task is to get the form values in another hidden form (from Marketo). The code works fine in the Magnolia community edition but not in a production ...
Ankit Patel's user avatar
2 votes
2 answers
213 views

Unable to populate grid onclick event in Asp.net Web Forms Application

I'm attempting to populate a grid AND create / download an Excel file from the OnClick event of a button. The create / download works as expected, but I am unable to populate the grid - unless I ...
user1916528's user avatar
2 votes
1 answer
650 views

I want to use ASP.Net Web form master page in MVC views

I am able to add MVC in my Web form project. From here on wards we have decided to develop new pages in MVC. Now I want to use master page used in web form into the MVC views. How I am able to apply ...
Ashutosh B Bodake's user avatar
2 votes
0 answers
54 views

how to refresh the web interface after updating the AspxDataGrid.DataSource content with signalR?

I am using DevExpress and i set the content of an ASPxGridView.DataSource but the web interface does not change (while debugging the content of the ASPxGridView.DataSource is updated) How can i bind ...
Skander AYADI's user avatar
2 votes
1 answer
415 views

Change the rendered html for the treeview control to create a label instead of span

I use a treeview control in my webform in ASP.NET and the rendered HTML is like this: <td class="SingleCheckbox ctl00_ContentPlaceHolder1_FormView1_TreeView1_2" style="white-space:nowrap;"> &...
Mariam's user avatar
  • 543
2 votes
0 answers
2k views

sending web push notifications and Received unexpected response code: 401 & 403

i used web push api to send notifications to subscribe users using javascript and c# in asp.net web forms. For subscription i used notification.permission method and service worker , when user allows ...
Hamza's user avatar
  • 21
2 votes
1 answer
354 views

How to initialize login functionality in Site.Master form to pull Login ID from SQL after redirect?

How do I save results of a logged in user after successful redirect from the Login page or Sign up page? I have a button in the Site.Master parent form, which is loaded with every other web form. I ...
Приложна Информатика's user avatar
2 votes
1 answer
119 views

Display 3 divs in same line (Image Gallery+Text+Webform)

I'm trying to display 3 divs in the same line. Developing in Drupal8 Bootstrap Theme (working on Subtheme). These Divs are fields inside a view called viewproducts. The divs are as follows: Juicebox ...
MSV's user avatar
  • 23
2 votes
2 answers
661 views

ASP.NET UpdateProgress doesn't show up

This is just a test page so I can see what the work indicator looks like, but the damn UpdateProgress isn't showing up at all... The test just builds a list of objects and populates the listbox while ...
Ortund's user avatar
  • 8,381
2 votes
0 answers
545 views

how can I fix an oledbexception error that happens when I try to open connection to the database

I am trying to open a connection between a webform and an Access database, however, the oledb connection won't open and when I run the program it stops on the con.open() and gives me this error: ...
itamar moalem's user avatar
2 votes
0 answers
301 views

Update Css/Js bundles (Visual Studio Bundler Minifier) from the command line

I am in the process of creating automated update scripts for my websites. All websites are built using WebForms in Visual Studio 2017 (Not Core). What I want to do is run a command line calling the ...
Handy Andy Mutter's user avatar
2 votes
0 answers
2k views

signalr doesnt allow cross origin requests

This is the error that I get. Failed to load http://example.net/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22chathub%22%7D%5D&_=1539104978557: No 'Access-...
dan mann's user avatar
  • 113
2 votes
0 answers
138 views

How can I sign in using a Google account?

I have a VB.NET web form website that I up until now have been using an SQL server with user data used to let the users login. I now want to use Google sign-in instead. I cannot find any good example ...
MTplus's user avatar
  • 2,289
2 votes
0 answers
300 views

Rad Html chart grouping

My question is about how to group XAsis in Telerik rad Html chart? The image below shows the current state of my the Html Column chart: All I want to know is how to group the XAsis by month so it won'...
kevin's user avatar
  • 21
2 votes
1 answer
45 views

Values wont pass- only the null, and update values in the grid

The following is my C# code and aspx code. This code suppose to update a grid on the page, but when I click save it does not pass the value entered in the comment box and update. protected void ...
ESYour's user avatar
  • 21
2 votes
0 answers
311 views

Running ASP.NET Core within/alongside an existing ASP.NET WebForms project in Visual Studio and IIS Express

I have a large Visual Studio solution with several ASP.NET web sites with a mix of WebForms, MVC and WebAPI. What I'd like to be able to do is add an ASP.NET Core project to this solution to provide ...
Phil's user avatar
  • 2,242
2 votes
0 answers
173 views

How can I parse aspx and ascx file with Roslyn

I want to refactor a web form application with Roslyn. There are plenty of resource on how to do with source code. I have hard time to find any resource with refactoring aspx and ascx file. Is it even ...
Luyin Sun's user avatar
  • 1,154
2 votes
1 answer
546 views

How to prevent postback of ASP.NET page from resetting classes on button

In my ASP.NET webform I have a series of HTML buttons and their initial state is disabled except for 1, when the initial button which is enabled is clicked I use JavaScript to remove the disabled ...
obb-taurus's user avatar
2 votes
0 answers
597 views

"Validation of viewstate MAC failed" only when posting back from a mobile browser that has been idle for sometime

I know that this question has been asked frequently on StackOverflow but my case is a bit different. I checked all the answers related to this issue and none solved my problem as in my case it only ...
Rami Zebian's user avatar
2 votes
0 answers
57 views

Alternatives to get Session object in Page.PreInit event

I need to access Session object in PreInit event to get some values stored in user session. I found that I can create a class and inherit it from public class UserTheme : System.Web.UI.Page, ...
Vnuuk's user avatar
  • 6,447
2 votes
0 answers
52 views

Telerik Error - Parameter name: panelsCreated[6]

I have a simple page that uses telerik:RadAjaxManager. For some reason on page load I'm getting this error in browser console: I googled it, and found lots of articles where they say I need to ...
Vnuuk's user avatar
  • 6,447
2 votes
1 answer
114 views

how to get filtered dataset from Datatable using LINQ

i have a data table that contains employees data, this data is bind to Grid view. i have header drop downs for country, rank, section in grid view. whenever a selected drop down index changes, i use ...
Maddy Ejaz's user avatar
2 votes
0 answers
5k views

FullCalendar Asp.Net WebForms

I'm trying to implement FullCalendar on my ASP.NET WebForms Project. I've seen some examples to achieve this without any luck since they're for MVC which I'm not used to. My Events Database Table: ...
GFKT's user avatar
  • 21
2 votes
0 answers
996 views

Adding authorization bearer token to ASP.NET web form page header

I'm writing an ASP.NET 4.6.1 web forms application with Web Api 2.2 and ASP.NET Identity 2. The application originally used forms authentication but we decided to add a mobile device application so ...
Nse's user avatar
  • 305
2 votes
1 answer
2k views

Global Exception Handling in asp.net webforms

I have an existing project, it is in asp.net web forms in that project every event (page_load,button_click,dropdown_selectionIndexChanged etc.....) is calling in between try catch block like below ...
murali krishna's user avatar
2 votes
0 answers
23 views

Trace arguments from Ajax JQuery to [WebMethod]

At Webmethod [WebMethod] public static List<UserModel> GetUsers() How to know name and type of arguments if we don't know about client side. For example: I can get page if I know the name and ...
Nguyễn Minh Vương's user avatar
2 votes
0 answers
186 views

How to make two operations atomic in asp.net webforms?

In an asp.net webform page, I need to do two operations. Insert a record into the database. Store an image related to that record in the file system of the server What I need is to make both ...
Elham Kohestani's user avatar
2 votes
1 answer
231 views

Dropdownlist inside Updatepanel not passing selected item

I have a Gridview that has a hide/show panel. Inside the Panel there is a dropdown and a button. On button press I need the selected value of the dropdown, but I keep getting the first item, no matted ...
SANM2009's user avatar
  • 1,978
2 votes
1 answer
573 views

Dynamically Add Link Button To ASP Grid View

I am attempting to use the below code in my C# syntax to add a link button to a asp:gridview. The output window shows the text label added, so it seems the code iterated as it should. However, when ...
Smith Stanley's user avatar
2 votes
0 answers
506 views

ASP.NET Web Site - Unit testing

Is it possible to do any unit testing with an ASP.NET Web site (not a project or application)? If so, how can I implement them. If not, what options do I have (convert to web app, no unit testing, etc)...
user94614's user avatar
  • 511
2 votes
0 answers
336 views

IdentityServer4 with webforms & multi-tenanted environment

We are a new tech team that has inherited a webforms app. We are planning on building out an internal API and would like some guidance for implementing it with our existing app. Ideally we would like ...
Simon C's user avatar
  • 158
2 votes
0 answers
39 views

Setting LinkButton OnClick event to method in a ClassLibrary

I have an <asp:LinkButton> that when clicked calls a method in my class library, but to get this to work I have had to fudge it by first going via a method in the .aspx.cs file for the page. ...
Simon's user avatar
  • 1,303
2 votes
1 answer
3k views

Calling WebMethod in URL in Web Forms Asp

I have tried Web Form application for the first time. My aim is to enable the URLS to call methods such as by typing http://localhost:51040/test.aspx/GetData on browser should call method GetData. ...
user7808679's user avatar