I.T. Discussion Community!
-Collapse +Expand
C#
Search C# Group:

Advanced
-Collapse +Expand C# To/From
To/FromCODEGuides
-Collapse +Expand C# Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C# Store
PRESTWOODSTORE
   ► KBProgrammingC#WebForms Cod...   Print This     

C# KB: WebForms Coding Tasks Topic



13 Articles Found in the WebForms Coding Tasks Topic 

  KB Article    

Mike Prestwood
1. ASP.NET Extension Information This article describes the ASPX file extensions.
16 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
7946
Hits

C# (Visual C# & VS.Net)

Adam Lum
2. Changing the Trust Level in your ASP.NET Web Applications

To restrict what an ASP.NET application can and cannot access and to provide an additional level of application isolation in a hosted environment, access security can be used. You do this by configuring the element in the machine-level Web.config file located in the following folder: %windir%\Microsoft.NET\Framework\{version}\CONFIG.

12 years ago, and updated 9 years ago
(25 Comments , last by rrah.r )

KB Post
Nothing New Since Your Last Visit
50893
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
3. Consuming an RSS feed in ASP.NET

Using this quickie code snippet, you can attach an ASP:Gridview  to an external RSS Feed.

All you need to accomplish this is the URL of a usable feed.

8 years ago
(1 Comments , last by Louis.M )

Code
Nothing New Since Your Last Visit
17701
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
4. FileUpload

Demonstrates the code required to retreive and store a file uploaded via an ASP FileUpload object.  Assumes you have a web form with a FileUpload, a button, and a label control.  Also, this example stores the file uploaded into a folder named "Uploads" which is assumed to pre-exist.

10 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
6039
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
5. Get all components in an ASPX page recursively

Retrieves an array of all the components of any given type within a starter control (such as a page, table, panel, etc.)  This routine is recursive and will keep iterating down until all the embedded components are found.

This C# code can be invoked to produce an array as  follows:

CheckBox[] myCheckboxes = GetAllCheckboxes(Table1);
10 years ago, and updated 9 years ago
(2 Comments , last by Anonymous )

Code
Nothing New Since Your Last Visit
9456
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
6. Getting Website Root Directory in C# ASP.NET

This code shows how to ask the webserver where the site's root directory is, and how to convert a relative path (like /Uploads) to the full filesystem path.  This will work across environments (i.e. Development/QA/Production).

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
16910
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
7. How to open a URL in a pop-up window. Every now and then you want a link to open not only in a new browser, but you may want to give the new window the appearance of a pop-up window. This ASP/Javascript method gives you a lot of control and is easy to figure out and implement.
10 years ago, and updated 9 years ago
(1 Comments , last by Wes )

KB Post
Nothing New Since Your Last Visit
48366
Hits

C# (Visual C# & VS.Net)

Wes Peterson
8. MVC Coming to ASP .NET The Model/View/Controller architecture is popular in windows desktop applications. Soon it will come to ASP .NET, as well.
10 years ago

News
Nothing New Since Your Last Visit
5509
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
9. Programattically Adding Content to Web Pages in C# Visual web developer offers a few different ways to add dynamic content to a web page. This will help you choose which one is right for your application. In General, there are Data-Aware components, Labels, and PlaceHolders.
10 years ago

Article
Nothing New Since Your Last Visit
7504
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
10. Sending email from C#.NET in 5 lines of code.

First, you must add the System.Net.Mail namespace to your project. There are 2 objects we use to send the email, a MailMessage, and an SMTPClient.

This code works from C# projects or from ASP.NET projects. Make sure your mail server is set to relay messages for whoever might be sending the message. In my case my webserver is sending through my exchange server so I had to tell exchange to relay for my webserver.

10 years ago

Code
Nothing New Since Your Last Visit
6477
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
11. The Official Microsoft ASP.Net Site http://www.asp.net/
10 years ago

Link
Nothing New Since Your Last Visit
6399
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
12. Using a Legacy Windows DLL in ASP.NET

This article will show how to access a function in a legacy COM dll from a ASP.NET web page. By legacy I mean a dll that is not a .NET managed code dll (a Win32 DLL). 

9 years ago

KB Post
Nothing New Since Your Last Visit
9815
Hits

C# (Visual C# & VS.Net)

Bryan Valencia
13. Using GenericIdentity for Cross Platform Authentication in the .NET framework

When designing a WinForms application, the most straightforward way to authenticate a user is using NTLM or Active Directory using WindowsIdentity.GetCurrent. Over the Internet, you can use the whole ASP.Net security setup with Membership.GetUser. The GenericPrincipal object works well when you deploy to a mixed web/WinForms environment. See new GenericIdentity.

9 years ago

KB Post
Nothing New Since Your Last Visit
13169
Hits

C# (Visual C# & VS.Net)

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New C# (Visual C# & VS.Net) Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  C# (Visual C# & VS.Net) Message Board
-
   Contact Us!
 
PrestwoodBoards.com was developed and is maintainted by me. Do you have a question or suggestion? Do you see a problem? Contact me now. My goal is to build an ad-free and spam-free source of I.T. information with many contributers (ok to promote your website/company in your bio). Yes, my company Prestwood IT Solutions is mentioned in my bio which shows with every post, but you can contribute and promote your pet project too!

2,361 People Online Now!!  
Sign In to see who's online now!  Not a member? Join now. It's free!
Show more stats...


©1995-2018 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech