Click here to Skip to main content
15,886,199 members
Everything / Web Development / ASP.NET

ASP.NET

ASP.NET

Great Reads

by Wonde Tadesse
The other option will be to use Update Panel ASP.NET control as much as possible. It helps to retain the current position on the page whenever a postback happens to the page.
by John Atten
OWIN, Katana and Middleware Pipeline in ASP.NET
by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.

Latest Articles

by Rudi Breedenraedt
In this series, we will see how to build interactive web applications in ASP.NET Core with the help of Sircl.
by Mohammad Elsheimy
Configuring OpenSSL minimum version and legacy renogetiation
by Mark Pelf
A practical guide to building a multi-language ASP.NET 8 MVC application
by Mark Pelf
A practical guide to build a multi-language ASP.NET 8 MVC application

All Articles

Sort by Updated

ASP.NET 

N 25 Apr 2024 by Member 16251738
A stored procedure is a precompiled set of SQL statements that perform a specific task or operation in a database management system (DBMS). Stored procedures are stored and executed on the database server, providing several benefits for database...
N 25 Apr 2024 by Dave Kreskowiak
Yeah, that's not a thing. Your server-side code has absolutely no access to the certificates on the client machine. It only worked on your dev machine because your machine was both the server and the client at the same time. That's not the case...
N 24 Apr 2024 by withrj
x509 certificate, want to retrieve certificate from client Personal Store. X509 certificate .net framework workin on local machine. DSC certificate found but when same code hosted on server then server is not able to find client certificate. ...
N 23 Apr 2024 by Member 16250042
Not working about js. $(document.ready(function () { $(window).bind('beforeunload', function () { $.ajax({ url: "SignOut.aspx", }); }); }));
N 23 Apr 2024 by M-Badger
I've not tested this but it would appear that the MS interop library version that you are using doesn't know how to convert images into MathML or LaTeX format. So either you need to convert them to MathML or LaTeX in the document before saving...
U 22 Apr 2024 by Conduct dotnet
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the...
N 21 Apr 2024 by Member 16248063
there is 3 step in my solution: ---- first: create a helper that stringify the partial views so we can use them in the action method for passing it with json response to ajax. public static class PartialViewHelper { public static string...
U 19 Apr 2024 by Gerardo Gamo
I know this is very OLD, but NOW myself Im struggling with helping a project that of course also is very old, but anyway, as they are using Web forms or ASPX, here is what I have for anyone having the same issue 1. when working with ASPx, I...
U 13 Apr 2024 by Dave Kreskowiak
You're going to have to get a hold of Syncfusion[^]. It's their control and they have the documentation and support for it.
U 13 Apr 2024 by Shubham Sawant 2023
1.I want to Open the .docx(word file) in the View (.cshtml) where i want to see the word file and able to edit it. 2. Folder Structure: I'm working on the Jobseeker module and the .docx File uploaded by the Admin and that file present in the...
10 Apr 2024 by Graeme_Grant
Quote: When Manager clicks either of the link, it hits the endpoint and their response is Captured in Database. To prevent sharing, the only option is for the intended recipient to log back in, then you verify both the account used to sign in...
10 Apr 2024 by Pete O'Hanlon
I'm afraid you need to go back to whoever gave you the requirements and explain this is a monumentally bad idea, and also impossible to implement. If one manager forwards it to another, you can't prevent that, and you can't change the contents of...
10 Apr 2024 by Vaithilingam Alagappan
When User raise a request for Access. User's Manager needs to approve the request through email. The email will have Approve and Reject link as API endpoint URL. i.e., Approve - https://example.com/api/approve, Reject -...
9 Apr 2024 by Rudi Breedenraedt
In this series, we will see how to build interactive web applications in ASP.NET Core with the help of Sircl.
9 Apr 2024 by nirmalamari
I entered the right password for the key. But still this issue. is .cert file different from .crt or .cet file
9 Apr 2024 by nirmalamari
I am exploring the option to use Okta SAML authentication. Since my evaluation period expired for Okta not able to ask in Okta site, so I thought codeproject forum experts might help. When we register a website in Okta, we get a 509 certificate...
9 Apr 2024 by Pete O'Hanlon
You probably want to start by reading and implementing authentication using Use ASP.NET forms-based authentication - ASP.NET | Microsoft Learn[^]. To control access to web pages, and folders of pages, use Control authorization permissions in...
8 Apr 2024 by Member 16239575
Hello, I want to do user-based page authorization with asp.net web forms. What I want to do is to take the role of the user while logging in from the users table in the database and control which pages he can access there, for example, let the...
2 Apr 2024 by kmoorevs
Tables/nested tables are the way to handle layout.
2 Apr 2024 by Dave Kreskowiak
You really don't want to use the designer to layout web pages. That's going to generate a ton of inflexible HTML that you're going to have to rip out and redo for a really flexible page layout when screen sizes change. You typically just write...
2 Apr 2024 by Jo_vb.net
Check if Tools > Options > Web Forms Designer "Legacy Web Forms Designer" is selected.
2 Apr 2024 by Rama2F
I'm trying to move the controls (label, textbox, etc..) freely on the [Design] screen of an [ASP.NET Web Forms Site] template, using VS 2022. What I have tried: I know that to achieve it, I should ... select the control I want to move around...
28 Mar 2024 by Member 8410010
you can use Hikvision SDK, but for this you need hikvision camrea as well.
27 Mar 2024 by Manoj B. Kalla
hi, 1. Take backup of page aspx and aspx.cs and Fresh start. 2. AutoEventWireup="true" and EventValidation setting 3. Double click on button and paste the code of click. Hope this will help
27 Mar 2024 by Richard MacCutchan
.net pie chart - Google Search[^]
27 Mar 2024 by Member 16231578
looking for source code to create pie chart in vb.net. What I have tried: nothing yet ... looking for setting it up. Have alreadt created project in visual studio.
27 Mar 2024 by Richard Deeming
"Website projects", which have no project file, have been deprecated for over a decade now. You can still open existing ones, but in order to create a new one, you need to install the "additional project templates": Can't find the 'create new...
27 Mar 2024 by Richard MacCutchan
Take a look at Tutorial: Create C# ASP.NET Core web application - Visual Studio (Windows) | Microsoft Learn[^]
27 Mar 2024 by Rama2F
I am having trouble creating/opening a website project in VS 2022. (It opens like a 'project' not 'website') Our professor gave us this video: 02 Creating a Web Forms User Interface vb - YouTube[^] I am trying to recreate in VS 2022, but I'm...
22 Mar 2024 by Mohammad Elsheimy
Configuring OpenSSL minimum version and legacy renogetiation
21 Mar 2024 by Mark Pelf
A practical guide to building a multi-language ASP.NET 8 MVC application
20 Mar 2024 by Andre Oosthuizen
Quote: Once the user clicks on the action, it should not work for the second time. Based on this it seems that you already check and save the record with a true/false returned value. It further seems that when a user clicks on the link/button a...
20 Mar 2024 by Dave Kreskowiak
It's not entirely clear what you're doing or even how this email is sent or what you expect to happen when the user gets the email. But, generically, if the user has to approve something on a website, you would include a link in the email that...
19 Mar 2024 by Graeme_Grant
Quote: No I'm not asking to do my work. I'm asking for an approach or idea which I can implement in my application. The concept would be to have the following in a table in your db: * user Id * Job Id (Guid) used in the link for the email * Job...
19 Mar 2024 by mtoha
Yes, you can use Newtonsoft.JsonSerializer. Json.NET - Newtonsoft[^] Bind your data to one object instance (i.e LoginDataModel), and Serialize string json representation on LoginDataModel dataSession = new LoginDataModel();...
19 Mar 2024 by Vaithilingam Alagappan
Hi, I have to implement a feature in our web application to capture the user action like approve/reject from email to database. Planned to trigger the email through scheduled job which contains Approve/Reject link or button. The user action...
19 Mar 2024 by Osama Kadora
TextBoxPassword.Attributes.Add...
19 Mar 2024 by Member 11478798
I have an asp login page connected to sql database. user logs in based on information matching the sql table. I have also got a session functioning. I am i the very early days of my project. so after i log the user in they are redirected to a...
18 Mar 2024 by Richard Deeming
You were so nearly there! :) The Visible property is a bool, but you are trying to set it to a string. Change the markup to: '> ...
15 Mar 2024 by Mark Pelf
A practical guide to build a multi-language ASP.NET 8 MVC application
13 Mar 2024 by Mark Pelf
How to build a multi-language ASP.NET 8 MVC application
12 Mar 2024 by Andre Oosthuizen
The easiest way to do this is to use a code-behind approach. In your 'ItemDataBound' event of the 'ListView', you can find the 'PlaceHolder' control and set its visibility accordingly - protected void ListView1_ItemDataBound(object sender,...
11 Mar 2024 by Dino the Sink
I am building an ASP.net raffle ticket system. I have a handfull of different raffles that will list details about them (type of raffle, prize won, date of drawling and prize of a ticket) below that i have a link formatted to look like a button...
10 Mar 2024 by Pete O'Hanlon
You are trying to deserialize a single instance of the ValueAddedService and pass this into the API. That would be fine if you were working with a single instance, but you actually deserialize into a list, which you are sending to the API.
6 Mar 2024 by Mark Pelf
A practical guide to build a multi-language ASP.NET 8 MVC application
1 Mar 2024 by Dev Leader
In this article, I’ll provide you with a high-level overview of Dependency Injection and Scrutor in C#.
24 Feb 2024 by Student_abc
When I click the Add Button on the admin page, I want it to display the total unit number of each bloodgroup on the user page. So here, I used session state to display it, but still, it's not working and is not showing any error. I also made...
24 Feb 2024 by OriginalGriff
Look at your code: Session[BloodGroup1 + "TotalUnit1"] = TotalUnit1; And if (Session["A+_TotalUnit"] != null) { Label3.Text = " " + Session["A+_TotalUnit"].ToString(); } The index names...
23 Feb 2024 by Mohammad Elsheimy
One of the major issues encountered when connecting to databases after porting ASP.NET app to Docker Linux containers.
20 Feb 2024 by Alexnader Selishchev
Nocode open source CI+CD for ASP.NET apps
13 Feb 2024 by mikequo
Quote: Thank you very much for this tip of yours. After all the other clever advice that led nowhere, this was exactly the simple and reliable solution. So, simply assign an ID to the button, even if you don't need an ID for the button. But just...
6 Feb 2024 by Member 13265435
Hi, why to send email italian PEC with asp.net? With my code it doesn't send emails thanks Best regards Salvo What I have tried: Dim myMail As New MailMessage() Dim fromEmail As String = "emailpec" Dim toEmail As...
6 Feb 2024 by Dave Kreskowiak
You might also want to check the name of the SMTP server. You have to use a fully qualified DNS name for the server, which is most definitely NOT "smtppec". You can get the correct name from the documentation of whatever mail service or ISP...
6 Feb 2024 by OriginalGriff
The most likely reason is simply that emailpec is not a valid email address, which is always of the form username@domain Without a valid to and from email address, nothing is going to happen. I'd also check your password, and your protocol type...
2 Feb 2024 by Member 14091458
I tried OnClientClick="return false;" in my button click and it worked for me. Ex: use...
1 Feb 2024 by cheesecake 2
I cannot understand how to connect this to the database. and if I want to convert this project into mvc how to do it. I am new to Asp.net and willing to learn this. please help. what are the good frontend languages for asp.net or usually we use...
1 Feb 2024 by M Imran Ansari
Refer to the article below to initiate your learning process. The Note section contains some valuable links that can be really helpful for your understanding as a beginner. Beginner's Guide for Designing ASP.NET MVC Applications using SQL Server...
30 Jan 2024 by abid zindran
Unexpected behavior such as a button click event being called twice in an ASP.NET application, particularly when it's observed only in IIS and not during code debugging, What I have tried: I am using loading bar on any button click with the...
25 Jan 2024 by Member 14809574
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { string selectedValue = DropDownList1.SelectedValue; DisplayDataForSelectedItem(selectedValue); } private void DisplayDataForSelectedItem(string...
25 Jan 2024 by Member 14809574
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { // Set the new page index GridView1.PageIndex = e.NewPageIndex; // Rebind the GridView with the updated page index BindGridView(); // Implement...
25 Jan 2024 by Nirav Prabtani
Your website does not behave properly with all browsers because of the font used. Indian language fonts are mostly not as regular as latin fonts, and many of the symbols are supposed to be overlapping - one character might have to appear above or...
24 Jan 2024 by Ali amer Kinan
I have an asp.net framework page in C# that contains several text boxes and buttons. Each of these buttons contains a CRUD operation. The page also contains a drop-down list of items linked to the local database. How can I make this list display...
21 Jan 2024 by Antony Durai
We have a Application which uses single sign on (SSO) for authentication and need to Secure the Cookies ( Asp.net Session id and SSO Cookies). I have enabled tag by adding in Web Config When I run the application...
18 Jan 2024 by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.
18 Jan 2024 by adriancs
Integrate Google OAuth 2.0 with ASP.NET in C# for seamless user authentication
12 Jan 2024 by Lance Ford
A walkthrough to enable request/response logging to an ASP.NET web application (or web service) by using an IIS module.
9 Jan 2024 by Member 16179780
👁 function togglePassword(obj) { ...
8 Jan 2024 by Member 16179425
# import the module import tweepy # assign the values accordingly consumer_key = "" consumer_secret = "" access_token = "" access_token_secret = "" # authorization of consumer key and consumer secret auth =...
5 Jan 2024 by Richard MacCutchan
This is the same issue as the question you posted yesterday at The server tag is not well formed for linkbutton in the gridview[^], and you have been given a solution.
4 Jan 2024 by Richard Deeming
Aside from the mis-matched quotes, adding an unconditional return to the OnClientClick will break the behaviour of the LinkButton, since it relies on executing additional JavaScript after that code has executed. Try:
4 Jan 2024 by uniservice333
hi guys i have used linkbutton in the gridview itemtemplate but i got this error "The server tag is not well formed." i'm checked all close tags but i think is ok
2 Jan 2024 by Nani Nagendra
public string GetEncryptValue(long connectionNumber) { long creditCardNumber = (connectionNumber); string publicKey = ConfigSettings.GetMobikwickEncrypKey(); string encryptedCreditCard =...
23 Dec 2023 by 2techbrothers development
After installing Microsoft.AspNet.FriendlyUrls to hide .aspx from URL, The website is showing 500 internal server error only on mobile devices, but it works fine on the desktop. Code in RouteConfig.cs using System; using...
22 Dec 2023 by Gerry Carter
Fantastic! It all works now. Thank you all very much. I used ClientIDMode="Static" for the objects where the values had to be changed. This included three asp:TextBox(es) and one asp:DropDownList. The JavaScript then became very simple. ...
22 Dec 2023 by FirdousNasreen
$(document).ready(function () { $("#AmountId").change(function () { var a =...
21 Dec 2023 by Richard Deeming
WebForms "mangles" the IDs you set to ensure they are unique across the entire page. This is particularly important in data-bound controls, where the same template can be repeated multiple times. If you view the source of your page in the...
21 Dec 2023 by Andre Oosthuizen
The following should do the trick - function MakeScoresZero() { document.getElementById("TimeMins").value = 0; document.getElementById("TimeSecs").value = 0; }
21 Dec 2023 by Gerry Carter
I have an aspx webform with asp.TextBoxes for the user to input numbers. If they then click on a CheckBox these numbers should change to zeroes. The problem is that they do not change. These are examples of the TextBoxes -
20 Dec 2023 by Shivprasad koirala
In this article, we break down some most asked interview questions on Security part in ASP.NET MVC.
19 Dec 2023 by uniservice333
i have dropdownlist of users list which is coming dynamically from database.i have filled the dropdownlist using object datasource on inserting in the listview control it is working fine. my problem is that when listview bind rows, I want the...