Click here to Skip to main content
15,893,508 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 Updated

WebForms 

31 Jul 2010 by #realJSOP
Anyone on this site that COULD answer it would probably have to google it to find you an answer, so you may as well google it yourself and save everybody valuable time.
4 Mar 2011 by #realJSOP
Either the Request object is null, or XResult is null, meaning the querystring element "res" does not exist in the querystring.
23 Mar 2011 by #realJSOP
Handle the TextChanged event for the TextBox.
30 Jun 2011 by #realJSOP
textbox.Visibl...
10 Apr 2019 by #realJSOP
Maybe you could use a GUID in each app to uniquely identify the app-specific cookie instead of the userID.
13 Dec 2019 by #realJSOP
Implement "user controls": How to: Create an ASP.NET User Control | Microsoft Docs[^]
21 Nov 2021 by #realJSOP
There's nothing you can do about the act of query string modification. However, just because it can be done, doesn't mean you can't take steps to protect yourself. Take a look at this: HttpModule to encrypt query strings[^]
13 Feb 2023 by $ultaNn
Dear i ave followed steps given in this Link when I debug the application, I am getting Error This site can’t be reached What I have tried:
31 Jan 2009 by -- Abhi --
An article on how to utilize session variables
23 Oct 2007 by .chris
The code helps speed up the devopment of toolparts using SmartPart and SharePoint.
19 Jul 2021 by .NET- India
Front-side(Angular) code gets nothing when the code is being uploading on the the server from backend-side(.NET Core Web Api), except a message "Loading data....". But i want to redirect to another page showing a message "Page is under maintance"...
26 Apr 2007 by .NetRams
ASP.Net datagrid onclick change selected row back color.
29 Jan 2015 by /\jmot
Use a TextEditor control to edit the content of the page as Html, then Save it to a page and replace it to the .aspx page using the literal control. ltHTMLBody.Text = "Your html content after edit"; ...
27 Mar 2011 by 111tania
How can I draw a picture? I can't find anything?Where can I start?Thanks in advance!
21 Aug 2017 by 1Future
>I'm sort of new to web forms but i hope anyone of you would be able to advise me on how to tackle this: I have the following table in the database: ID | Name | ParentId 1 | music | 0 2 | house | 1 3 | urban | 1 4 | games | 0 5 | ps4 | 4 2 | Xbox |...
21 Aug 2017 by 1Future
Hi All, I have the following methods in my Aspx page . //method 1 protected void UserId(object sender, EventArgs e) { //getting user id from a button click as a parameter int UserId = 231; } //method 2 protected void GetUserId(object sender,...
7 Sep 2017 by 1Future
Hi All, I have the following validator in my project which validates the dates entered in two fields like so:
19 Nov 2017 by 1Future
Hi , I have a Listbox in my project like this: The Selected Value is: Code...
21 Nov 2017 by 1Future
Hi All, New to client end programming and i was hoping someone could help on how i would go about in achieving this. I have the following below in my project Markup code
21 Nov 2017 by 1Future
Hi, I have a listbox in my project that listing some values which i'm pulling from the database. The values have parent I'ds associated with them and are listed in listbox like below: UK(parent) London(child) Manchester(Child) USA(parent) New York(child) Florida(child) What I would like to do...
1 Jul 2015 by 1sumitanand
Sorting of simple ListView Elements in Ascending/Descending Order
19 Oct 2011 by 2011999
Dear All Experts,One folder in more than one file upgradeReport_File, app_code,App_data, Backup, bin,Css, Images, js, show, upload, userControl, utils,DisplayRecord.aspx, DisplayRecord.aspx.csHandler.ashx, PhotoDetails.aspx, Sample(3).sln, sample3, suo, showFullSizeImg.ashx,...
26 Jan 2017 by 204.sharma
Hi, My problem is, I have a link button(lnk_logout) on master page.In content page i have another link button (LinkButton1) in gridview template field. Now I want to open a new window on linkbutton1 click. I am using Javascript and its working fine. But after that when i click on...
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...
17 Nov 2010 by @nuraGGupta@
This is the best example IMO you can get anywhere to learn MVC from start to endhttp://nerddinnerbook.s3.amazonaws.com/Part1.htm[^]You can also change part1.htm to part2.htm, part3.htm etc in the url, manually to navigate to different parts, or otherwise links to next part are given at...
19 Oct 2012 by _Amy
Hi Mits,I think your question is very similar to Disabling an ASP.NET Button Control During Postback with an AJAX Loading Background Image[^].You need to add a function which will disable and enable all the controls(which you need) based on the parameter passed in it. Now call the function...
27 Feb 2013 by _Amy
Take all your page contains in a panel and set DefaultButton property to your submit button. --Amit
21 Apr 2013 by _Amy
You can do it using URL Routing. Refer the link below:Article : URL Routing[^]Web App 2 : URI routing[^]Hope it helps!--Amit
24 Jun 2013 by _Asif_
Seems like this web.config is not XML compliant. Save this web.config as test.xml and load it in IE and check what is the error. Hopefully this should resolve your issue.Thanks
27 Jan 2015 by _Asif_
Problem is your parameter mapping is incorrect. You have 23 fields but you are passing 24 fields in parameters. AC_PreferHotelURL fields is incorrectly mapped to @AC_PreferHotel and this has caused all further parameters to be in invalid order. Correct command would be like...
19 Jan 2022 by _Asif_
Its not that difficult. Approach could be like * HashMap filterMaps = new HashMap() * for each column (Id, Age, sex, group, etc) filterMap["Id"] = 001 filterMap["Age"] = 12 * ArrayList list = new...
22 Apr 2014 by _Damian S_
Yes. Simply deploy your application into the directory you want and voila!! Of course, that directory should be set as a web application...
4 Jul 2007 by _JERKER_
Example of implementing many-to-many multiple choice functionality the declarative way.
8 May 2016 by _ProgProg_
Dear,I have a request from my Business owner to prevent user from downloading report.Now i am displaying my report in browser using the following code:private void DisplayReportInBrowser() { // Variables Warning[] warnings; string[]...
3 Sep 2014 by _yaRus_
Frontend design for ASP.NET web applications
31 Aug 2011 by _Zorro_
I assume your question is a bit harder than just asking how to get a value from a textbox. If that's not the case, here's my answer based on what I understand (which I'm sure is wrong :P)...String value = thePopulatedTextBox.Text;It can't be that easy though...Do you really mean...
21 Jun 2011 by A Mahesh
ASP.NET and Globalization
2 Feb 2017 by A.R Farooqui
Related with ASP.Net Web form.I have a text box and i am performing some task on text change event.The problem here is that when text change event occur Ajax Modal Popup showing automatically. Note : Page contains an update panel.What I have tried:I tried much but unable to...
30 Dec 2013 by Aaditya parcha
Hi,i have a student class like belowpublic class Student { public int stdId { set; get; } public string stdName { get; set; } public string dept { get; set; } }and my controller code is public ActionResult Student() { ...
29 Apr 2020 by aalhussein
Hi, I am using Modal popup extender to show a panel once I click on Button1 control as seen below. The code works fine. However, instead of using Button1 control as a target (TargetControlID="Button1"), I want to use another control inside...
31 Mar 2013 by aamirsami
hey guys i am new to this asp.net stuff. I have a .aspx page which has a function something like this. this function is getting called from page_load event as shown below.//page load eventtry { Response.Write(SendMessages()); } catch(Exception...
11 Oct 2006 by aanodide
Implements a scenario where you want to enforce page-specific HTTP/HTTPS rendering.
25 Sep 2020 by Aaron Bane
In the aspx page I am calling the the user control two times. On page load 1 usercontrol will be visible but the the other will be visible on button click and it should show only book description and book title. To achieve this I named the class...
24 Jul 2012 by Aarti Meswania
--------------...
15 Dec 2013 by abbaspirmoradi
try this:List elements= new List();foreach (Form item in Application.OpenForms) elements.Add(item.Name );
23 Jul 2009 by abcdefghijklasdsad
Covariance, contravariance and invariance in C# language
28 Nov 2007 by Abdallah Fayez
It an easy and secure way for begginer ASP.NET developer to create secure login WebForms using Sessions
25 Sep 2005 by Abdelmoniem Hafez
the article provide an admin module to construct unlimeted menu in db and code to display this menu
3 Oct 2005 by Abdelmoniem Hafez
This article provides developers and non-developers with a module that builds and displays dynamic unlimited levels of menu [English and Arabic].
14 Aug 2012 by Abdul Quader Mamun
Custom TreeView web user control for parent child relatioinal data upto infinity
16 Nov 2010 by Abdul Quader Mamun
Paging must be effective for large scaleable applications. Without smart and effective paging and sorting for huge amount of data, user request takes more time and uses more resources.
14 Jul 2012 by Abdul Quader Mamun
Use this codeString patha= String.Format(@"{0}\{1}" ,Server.MapPath("images"),"2.jpg"); if (System.IO.File.Exists(patha)) { System.IO.File.Delete(patha); }Thanks,Mamun
1 Mar 2007 by Abdul Sami, PMP
A brief introoduction to using WebParts in your applications
9 Jan 2010 by Abdul Sami, PMP
This article is about the differences between WCF and Web Services and .NET Remoting.
13 Jan 2010 by Abdul Sami, PMP
This article is an introduction to some of the new features in ASP.NET 4.0 and the Visual Studio 2010 IDE.
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.
28 Sep 2016 by Abdullah Ibn Mannan
Its just missing a simple referenceusing System.Web.UI.WebControls;That's it ? or you having problem saving grid-view row data ?
23 Apr 2013 by abdussalam143
I want url routing like as sub domain. For example my website is abc.com so that now i wants to url rewriting like user1.abc.com,user2.abc.com,user3.abc.com,user(N).abc.com Also when ever once user is registered,After that user can directly open site like:...
29 Apr 2013 by abdussalam143
I want url routing like as sub domain.For example my website is abc.com so that now i wants to url rewriting likeuser1.abc.com,user2.abc.com,user3.abc.com,user(N).abc.comAlso when ever once user is registered,After that user can directly open site like:...
17 Aug 2012 by Abey Thomas
This is an issue which can happen for a variety of reasons - but how do you find the right one?
31 Mar 2009 by Abhay Mhatre
PDF file creation using the ItextSharp library with ASP.NET and C#, and deleting the file from the server after displaying it.
9 May 2013 by Abhay@Accenture
27 Oct 2009 by abhigad
Using LinqDataSource with ASP.NET data controls like gridview and dropdown list
23 Jun 2008 by abhigad
Using LinqDataSource with ASP.NET data controls like gridview and dropdown list
18 Jun 2008 by abhigad
Using LinqDataSource with ASP.NET data controls like gridview and dropdown list
18 Jun 2008 by abhigad
Part II of the Using LinqDataSource with ASP.NET data controls like gridview and dropdown list
9 Dec 2010 by Abhijit Jana
A simple guide for beginners, explaining one method of displaying images taken from a database on a GridView inside an ASP.NET web page
26 Sep 2009 by Abhijit Jana
Beginners' overview of creating DNN Users, Roles and Assign User with Roles
13 Aug 2011 by Abhinav S
You have create an object of the StreamWriter class.However, you need to write to it using the Write() or WriteLine() method.You are simply writing text to a label - lblMessage.Text.
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....
27 Jan 2014 by Abhinav S
Tryhttp://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/combobox/combobox.aspx[^]http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx[^]http://www.dotnetjohn.com/articles.aspx?articleid=215[^]
18 Mar 2014 by Abhinav S
Once the application times out, take them to the login page.Other users should then be able to generate their own authentication ticket and login.
26 Jan 2015 by Abhinav S
Try these links -Upload and Download Files with SQL Server in ASP.NET[^]Storing Binary Files Directly in the Database Using ASP.NET 2.0[^]Save Files to SQL Server Database using FileUpload Control[^]
3 Mar 2015 by Abhinav S
One is for the web and the other is for the mobile.
3 Jan 2016 by Abhinav S
If your printer provides an API through which you can read the documents being printed, you will be able to track a printed doc.For example, here is an Embedded Capture Solution from HP - HP Embedded Capture Solution | HP® Official Site[^].
15 Jan 2016 by Abhinav S
Some sample links that might help you -Purchase management system developed in asp.net c# in offshore development center in India - YouTube[^]A simple POC using ASP.NET Web API, Entity Framework, Autofac, Cross Domain Support[^]
14 Jan 2014 by Abhisar Garg
I want to create an application that need to get opened/runned automatically after every 5 mins..
31 Jan 2013 by Abhishek Pant
Webservice-ASP.net-Capsule[^]...
7 Feb 2013 by Abhishek Pant
storing and retriving images from database using ASP.NET[^]Save and Retrieve Images from the Database using ASP.NET 2.0 and ASP.NET 3.5[^]
11 Jun 2010 by Abhishek Sur
All about Project and Item Templates. You can use Custom Templates to make your development process faster than you ever think. Create your own Template for Visual Studio and distribute with all others. You can also learn how to create an installer to install a template.
26 Jul 2009 by Abhishek Sur
Use of GZipStream or DeflateStream to compress your HTML output in your response when available. Added new class as WhiteSpaceFilter to remove whitespaces from HTML.
15 Aug 2009 by Abhishek Sur
MVC applications does so using URL rewriting. Hope that approach is good for you. Abhishek SurMy Latest ArticlesCreate CLR objects in SQL Server 2005C# Uncommon KeywordsRead/Write Excel using OleDBDon't forget to click "Good Answer" if you like to.
12 Jan 2010 by Abhishek Sur
Well, Actually I showed how to do this. Did you read the article I specified. I think you need to modify the Machine.config as it will always override the value with this one. Normal files in asp.net defaults to 4,096 kilobytes(4MB), if you need larger than this, go to \System...
11 Jan 2010 by Abhishek Sur
I think you need to use Check this lovely article :http://msdn.microsoft.com/en-us/kb/kb00323245.aspx#XSLTH3150121122120121120120[^]Cheers:rose:
20 Sep 2010 by Abhishek Sur
It is how you create your CSS and html correctly. If you want it from client side, why dont you create the whole thing in client end. Use this :http://www.dynamic-tools.net/toolbox/popUp/[^]From client end handle the popup correctly using javascript.
24 Sep 2007 by Abishek R Srikaanth
This article will show how to save changes on the close of the browser or when exiting a page.
30 Jan 2005 by Aby Thomas Varghese
An introduction to the AutoEventWireup attribute in Microsoft ASP.NET Web Forms.
19 Feb 2008 by Adam Crawford
A custom web control to add radio button selection to the GridView control.
25 Jun 2013 by Adam Tibi
VS 2012 web templates come preloaded with standard front-end libraries. This post is meant to complete the list with other essential and productive libraries that should be used in modern public-facing MVC and webform projects.
17 Sep 2013 by Adam Zgagacz
User control for editing numbers writtem using different numeral base.
22 Jan 2020 by AdamASPGeek
You purchase manage or unmanage server? If you purchase unmanaged plan, then you need to setup your DNS, please point your domain to your A record in order to host your domain.
28 Sep 2007 by AdamNThompson
Distribute your site's contents with RSS 2.0 using ASP.NET/VB.NET/MS SQL Server 2005.
26 May 2009 by adatapost
Please refere this link http://www.highdots.com/css-tab-designer/[^] A DATAPOST COMPUTER CENTRE (K.V Prajapati)
2 Oct 2013 by Adityaece29
trylblShow.Location=new point(e.X,e.Y);orlblShow.Location=new point(100,200);will work :)