Click here to Skip to main content
15,884,425 members
Everything / WebForms

WebForms

WebForms

Great Reads

by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
by Altaf Ansari
Integration of SignalR with ASP.NET C# WebForm Application in Real-Time Chat Application
by Vahid_N
PdfReport is a code-first reporting engine which is built on top of the iTextSharp and EPPlus libraries.
by pmpdesign
A lightweight C# library to add images and 'round rectangles' to a PDF on the fly and then securely embed the PDF in a web page

Latest Articles

by adriancs
Generate PDF from HTML with MS Edge
by adriancs
Easily route all pages at once in single line.
by gggustafson
This article revises an earlier revision of the Gradient Color Picker (V2). The incentive for the revision was a reader request for a larger number of initial color choices.
by gggustafson
Revises an earlier implementation of the Gradient Color Picker

All Articles

Sort by Score

WebForms 

18 Sep 2018 by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
20 Dec 2017 by Altaf Ansari
Integration of SignalR with ASP.NET C# WebForm Application in Real-Time Chat Application
14 Feb 2013 by Vahid_N
PdfReport is a code-first reporting engine which is built on top of the iTextSharp and EPPlus libraries.
2 May 2007 by pmpdesign
A lightweight C# library to add images and 'round rectangles' to a PDF on the fly and then securely embed the PDF in a web page
4 Dec 2007 by Ned Thompson
This article will demo how a free Flyout can help to save space on your webpage.
10 Jul 2008 by Alexandru Lungu
How to include JavaScript files in other JavaScript files.
16 Apr 2007 by Matt (D) Wilson
A simple command-line utility that validates XML files, implemented using MSXML via the VOLE COM/Automation driver library
4 Apr 2015 by Jean Carlo S. Passos
CRUD over Association Entity that maps to association tables
19 Apr 2012 by Deepak_Sharma_
This article will show how to create an auto-suggest TextBox that will suggest data from a SQL Server database column.
30 May 2017 by Voevudko A. E., Ph.D.
Understanding, designing, generating and plotting Kronecker product based fractals and offering web-pages supporting it.
26 Nov 2011 by Brij
This article discusses some problems with the earlier approach and discusses Identity federation
4 Sep 2007 by Brian Chavez
Slink is a code generating Framework that generates type safe URLs for ASP.NET. With Slink URLs, you increase code quality, increase maintainability, and get compile time checking of your URLs in all your ASPX pages (code-behind and non-codebehind).
16 Oct 2012 by Sunasara Imdadhusen
MS Test Result Viewer is a free open source library to convert MS Test result (.trx) file into HTML. It is also allowed you to perform MS Test on your test container project (.dll) file. This utility will work with simple command line arguments to generate test report in HTML format with excellent U
16 Feb 2013 by Marc Clifton
Sinking WebBrowser button element events and getting/setting input element values programmatically, without a web server.
4 Nov 2006 by Craig G. Wilson
How to flatten collections for an ObjectDataSource using the Adapter Pattern.
28 Dec 2008 by avsol
Use ASP.NET Routing to avoid 404 Not Found errors.
15 Aug 2009 by Ricardo Pineda Then
Shows how to serialize an object using binary serialization without using WCF.
17 Sep 2013 by Adam Zgagacz
User control for editing numbers writtem using different numeral base.
11 Jun 2007 by Mahdi Abdulhamid
SharePoint 2007 Flash Animation Web Part
13 Dec 2012 by GrahamMendick
A conversion of Project Silk to ASP.NET Web Forms using the Navigation for ASP.NET Web Forms codeplex project, concentrating on the navigational aspects
5 Apr 2015 by J.L. MacDonald
When supplied with a connection string and table name, this tool will read the field data types and create asp controls for you to copy and paste in your own project.
13 Oct 2017 by veen_rp
A small JavaScript module to create a modal dialog box or user input box in the familiar .NET style
1 Dec 2022 by adriancs
Generate PDF from HTML with MS Edge
14 Jun 2021 by gggustafson
This article revises an earlier revision of the Gradient Color Picker (V2). The incentive for the revision was a reader request for a larger number of initial color choices.
13 Nov 2022 by adriancs
Easily route all pages at once in single line.
3 Sep 2013 by Rion Williams
Common approaches to responsive design
17 Dec 2013 by Member 9913858
An introduction to using FakeModel to create test aata for you.
14 Apr 2014 by Ondra Morský
Implement NLog logging with SignalR
8 Feb 2015 by Emiliano Musso
How to apply GA techniques fo solving problems in VB.NET. The example shows how to create solutions for a 2D maze, which will evolve to find the shortest path between two points.
13 Jul 2016 by Vincent Maverick Durano
A simple demo that explains how to do calculations in a GridView using JavaScript.
16 Aug 2009 by Farooq Kaiser
In this article, I will explore handling unknown actions. A Controller.HandleUnknownAction method gets called when a controller cannot find an action method that matches a browser request.
24 Aug 2009 by MatthewCasperson
An introductory look at the JavaScript CAKE library, which allows you to build up the HTML5 canvas element like a vector image.
10 Jul 2011 by Christian Graus
Please don't push 'answer' to comment. I almost did not read this, on the basis that I assumed you had an answer.You should learn about ASP.NET. Short version, your C# runs on the server, and therefore you can only interact with the clipboard on the server, not the clipboard on the client....
17 Dec 2011 by GrahamMendick
Progressively enhanced ASP.NET Web Forms version of Knockout tutorial sample
23 Jul 2014 by Saad_Mahmood
Expression Blend - Playing with Sample Data (WPF , Windows Phone)
10 Oct 2014 by Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
22 Dec 2014 by Turay Melo
This is an alternative for "Creating an Outlook 2010 Add-In"
5 Feb 2015 by Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
5 Aug 2016 by Vincent Maverick Durano
This tip demonstrates how to upload an image to a specified folder within the root of the web application and display the image right away in the Image control after uploading.
23 Feb 2009 by David Meng
Introduces a way to create a key column in a SharePoint list.
26 Feb 2010 by Sandeep Mewara
This is an easy way to clear all input fields in the form.
5 Nov 2010 by shakil0304003
You can read this linksClickClick
13 Sep 2011 by Mehdi Gholam
The general principal to keep in mind is don't make more work for yourself than is absolutely necessary. Most clients and users don't care about how and where their data is stored unless it is safe and consistent. Rarely to client insist on using a specific type of database engine.In...
3 Sep 2014 by _yaRus_
Frontend design for ASP.NET web applications
23 Jan 2016 by Fredrik Schultz
Introduction to Kaliko CMS - an open source content management system for ASP.NET
21 Feb 2016 by Abdullah Al-Muzahid
This is a RAD tool which can be used to generate codes for CRUD operation in ASP.NET and C# automatically based on Database Model Diagram.
12 May 2020 by Maciej Los
Replace this: DateTime y = Convert.ToDateTime(tanggal); with this: DateTime y = DateTime.ParseExact(tanggal, "dd/MM/yy H:mm", CultureInfo.InvariantCulture); Note: I'm not sure what value corresponds to month and day. Please, change it...
2 Jan 2010 by Sky Sanders
AccessControlModule can impart a greater consistency and usability upon the default behaviour of FormsAuthentication and allow any client script code to leverage FormsAuthentication in a straight forward manner.
9 Oct 2008 by douss
Hi,I suggest using one of these frameworks : ExtJS, Prototype, Dojo, Scriptaculous...It would make it much easier.
26 May 2010 by AlexCode
A way to audit your business objects using NLog.
4 Nov 2010 by Ankur\m/
As the other answerer said, disable AutoCompleteType property of the textbox.But this would not work in Mozilla Firefox. The best option would be to write a JavaScript onFocus of the text box to disable...
9 Mar 2011 by Sergey Alexandrovich Kryukov
I agree with Yusuf.As your probably did not advanced your progress to much so far, I recommend you get yourself fully aware of the problems of the self-modifying code, see this: http://en.wikipedia.org/wiki/Self-modifying_code#Disadvantages[^].At the same time, your idea is easy to...
1 Jul 2011 by Valery Possoz
Hello,Addi...
19 Apr 2012 by CPallini
Why don't you use the Windows Task Scheduler[^] for the purpose?
26 Jun 2012 by DamithSL
following method create table and add records to it static DataTable GetTable() { // // Here we create a DataTable with four columns. // DataTable table = new DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Columns.Add("Drug",...
11 Jul 2012 by R. Giskard Reventlov
Is this[^] what you mean?You might also need to read[^] this.
24 Jul 2012 by Aarti Meswania
--------------...
6 Aug 2012 by Kenneth Haugland
Here is the answer of what Wes wanted to learn you:SQL Injection Attacks and Some Tips on How to Prevent Them[^]
19 Oct 2012 by AshishChaudha
Try thisif(!Page_ClientValidate()){ if( string.IsNullOrEmpty(document.getElementById("TextBox1").value) ) { alert("Here I am"); return false; }}Updated solution as suggested by Marcus.Thanks
9 May 2013 by Abhay@Accenture
14 Jun 2013 by ShubhamSaxena
Learn how to implement Kendo Grid.
7 Sep 2013 by Ron Beyer
Well without reading your mega-code dump, here is your problem:Quote:[UnauthorizedAccessException: Access to the path 'C:\Inetpub\vhosts\rechargeerp.com\httpdocs\temp\zttux5i5h0iyhb452dctuhe2_photo.jpg' is denied.]You are trying to access a path that is denied.
29 Sep 2014 by Rajendra Kumar Sahu
Easy way to show JavaScript Alert Message having Arabic Text
3 Oct 2014 by Snesh Prajapati
Here are the solutions for similar issue:http://stackoverflow.com/questions/22555533/form-submit-not-working-in-firefox[^]http://stackoverflow.com/questions/17968565/mozilla-form-submit-not-working[^]Please try and let us know the result.
10 Nov 2014 by Afzaal Ahmad Zeeshan
As Sergey has already told you, you need to come up with your own ideas and your own wit should be used in order to proceed. I can't force you to use a Website, I prefer Web Pages for myself, Sergey or some other might ask you to use MVC because it has a better object model. These are known as...
4 May 2016 by Karthik_Mahalingam
try this ...
5 Feb 2019 by Dave Kreskowiak
Easy, find out why your query didn't return any rows from the database. There's "no row at position 0" because there's no data in the table. Also, NEVER build an SQL query using string concatenation like that. Always use parameters. Google for "SQL Inject Attack" to find out why what you did...
27 May 2019 by Alexandros Pappas
Example of a self hosted WCF service over HTTPS with transaction
5 May 2020 by MadMyche
You can't; this is due to security/privacy concerns. What you want to do is upload the file and save it to a "temp" location. Then you do your validation routine, if it passes you then send it to the final location. There's a pretty good answer...
13 Dec 2020 by Jin Vincent Necesario
HtmlGenericControl of ASP.NET Webforms
28 Mar 2009 by Hesham Desouky
A How to that demonstrates how to use RsClientPrint ActiveX control to print reports from Microsoft SQL Server Reporting Services
8 May 2009 by Thomas Scheelhardt
Provides an implementation of an ImageButton that will grey out when disabled
23 Jan 2010 by Matthew Dennis
In this article, I will walk through the modification of the default ASP.NET MVC 2 application to use the Munq IOC container.
20 Apr 2010 by e.bonavero-miller
Not much on this one that was helpful so I thought I'd put what worked for me.Cntrl + Alt + Del > Processes > end all iexplore.exe and WebDev.WebServer.exe processes.Since devs generally debug with the dev webserver end those processes first and retest. Although iexplore handles stay...
25 Jul 2010 by raju melveetilpurayil
add a css class .error .error{ font-size:large; color:Red; }
20 Sep 2010 by Florian DREVET
Brings you the ability to personalize your configuration files per developer, per machine, per configuration...
3 Nov 2010 by JamieRushton_
If you're only moving a file why dont you have a look at creating a .cmd that takes advantage of XCOPY.http://en.wikipedia.org/wiki/XCOPY[^]
9 Nov 2010 by Ed Guzman
You can use the attributes in several different ways:1. When you assign an attribute to a "runat=server" control, it will render the attribute as an attribute of the underlying HTML tag, and, as you know, it will be a JavaScript expression description.2. You can assign an attribute on...
11 Nov 2010 by Kirankumar Ballapalli
Hi,Its a library function jQuery script.Refer following site.http://www.authenticsociety.com/blog/JavaScript_DollarSign[^]http://stackoverflow.com/questions/846585/can-someone-explain-the-dollar-sign-in-javascript[^]I hope links will help you to now about $...
2 Dec 2010 by Dave Kreskowiak
You cannot return multiple files to the browser in one response.There are a variety of ways of doing this, the most common of which is a download manager. The download manager would run seperate from the web page and do exactly what its name implies - download files.Your web page would...
23 Dec 2010 by Tony Richards
Instead of getting the source from the web control, why not use something like a HttpWebRequest to download it directly. This should work with both HTTP and HTTPS requests.The HttpWebRequest MSDN page, a good place to...
28 Dec 2010 by AspDotNetDev
I think you need to wait for the webpage to be fully loaded before you can invoke the script. There is a completed event on the WebBrowser control for this purpose. If you just want to test this theory out real quick, put your invoke script code in a button on your form. That way, you can wait...
12 Jan 2011 by Anupama Roy
For exporting GridView to PDF try using iTextSharp which is a free library for exporting.Take a look at this articlehttp://www.aspsnippets.com/Articles/Export-GridView-To-Word-Excel-PDF-CSV-Formats-in-ASP.Net.aspx[^]
29 Jan 2011 by OriginalGriff
Yes.Lots of work though.Look at the VS GUI and think to yourself: "how much of that do I need to duplicate?" I think you will be surprised how much it is...
8 Mar 2011 by GregWyatt
Sorry, I don't have a lot of time to answer this, but I would look into a modalPopup. Modal Popup Demo. It pops up a window on your web page and you can grey out the background as they work in it. Once they click done it ungreys the background and the page looks as it did before they clicked...
9 Mar 2011 by Yusuf
Look buddy, if you looking for someone to write you a code, you are in the wrong place. Try RentAcoder may be?But if you are up to the challenge and want to do it yourself, I am sure you will get plenty of help. But you need to do it yourself, no one here will be willing to do it for...
24 Mar 2011 by Brijesh Kr
Hey the best event is KeyDown, at handler just cancel KeyEventArgs,private void Form1_KeyDown(object sender, KeyEventArgs e) { Keys k = (Keys)sender; if(k.GetType = Keys.A) e.Handled = false; // to check it to fulfill ...
27 Mar 2011 by Sergey Alexandrovich Kryukov
I assume you're asking not about static picture but about drawing during run-time.You should use overridden method System.Windows.Forms.Control.OnPaint or handle event Control.OnPaint; in both case use the instance of the class System.Drawing.Graphics passed in event arguments in both cases....
30 Jul 2011 by Shameel
There isn't a direct way to do it. However, you can use the HttpWebRequest/HttpWebResponse class to read the Html output from the webpage, parse the Html and rig the information you want.
15 Sep 2011 by ChunkyStool
The alternative posted by Daaron does not work for several cases. E.g. Sign is included (+ or -), text contains whitespace prefix or suffix, etc. You could fix the first two limitations with a more detailed regex like "(^\s*(-|\+)?\d+\s*$)" but you could still end up with a value that won't fit...
13 Sep 2011 by Abhinav S
If you can write your code generic enough to replace one db with another, then this would add to the sale value of the application. One client can use, say, MySQL while another client can use SQL Server with the same application.However, do this only when you think it is worth the effort....
13 Sep 2011 by Dr.Walt Fair, PE
Your question is too general to give a specific answer. It depends on what the databases do. I have cases where there is a project database (different for each project), supplemented by a database containing standard information. It would be a major hassle to combine them into a single database...
13 Sep 2011 by Ger Hayden
Do you mean two databases simultaneously? Let me give a real world example.I once worked for a company that supplied hospital software, which had two databases (both Oracle), one at regional level where things like GP and GP Practices were stored, and the other at hospital level where data...
31 Oct 2011 by srinivas vadepally
hi kranthi,http://www.codeproject.com/Questions/121837/close-the-browser-histry[^]
19 Apr 2012 by Bilal Ahmed Lilla
Thats better to use window service .Set your desire timmings your Service.Window service run automaically when ever you start your computer .for more search on google.
23 May 2012 by OriginalGriff
Have a look at SharpZipLib[^] - it should help!
14 Jul 2012 by R. Giskard Reventlov
Tough question to answer with zealots on both sides. Really, the best way to determine this is to look carefully at your requirements and decide which methodology would best fit the solution. If you are already familiar with WebForms than that would be the easiest way to go. Conversely you may...
9 Oct 2012 by AshishChaudha
Try this...may it will help you..protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LinkButton1.Attributes.Add("onClick", "javascript:alert('Record Saved Successfully');"); } } protected void LinkButton1_Click(object...