Articles

  1. DotNetNuke (DNN) – An Introduction

    Submitted by planetsourcecode on
    We are going to organize a workshop in sans and the topic for that discussion will be DotNetNuke. DotNetNuke is an open source web application framework ideal for creating, deploying and managing interactive web, intranet, and extranet sites securely. It is open source framework which is providing different benefits to the users. Let us we discuss some of the major benefits by DotNetNuke.
  2. Check Existence of File in ASP.NET and C#

    Submitted by planetsourcecode on
    We have to check if file exists before doing some things with that particular file. It will prevent error and work flow will be smooth, for this we have to include required namespace i.e system.IO; Using system.IO; We have to place these controls on the webpage (ASPX page) Text box with ID=Textbox1 Button with ID= button1 Label with ID= label1
  3. Disable Right Click and Ctrl Keys in ASP.Net

    Submitted by planetsourcecode on
    We can easily disable right click and control keys in asp.net.In come circumstances.We want to disable the right click so that the user can not copy from or to the asp.net web page.In most of the web application it can be use in any possible condition. for doing this we have two possible ways: 1). Using asp.net method, which is used when we don't want to show message to the user
  4. Cross Page posting in asp.net

    Submitted by planetsourcecode on
    Cross Page posting in asp.net We can cross post the data in asp.net from one page to another page.Cross Page posting feature allows a page to cross post to another page which in turn allows you to access all data in posted source page. By simply setting PostbackUrl property, we specify the destination page to which present page should post when post back occurs on present page.
  5. Upload binary data the Database

    Submitted by planetsourcecode on
    Some times we have the requirement to upload an image to the database in binary form. As uploading a image file to the database has many different benefits as compare to uploading files to the Web Server Folders So let’s starts from the database table design The fields includes in table are: 1) ID – Primary Key 2) Filename – Store name of the file. 3) Mime- what type of file is it.
  6. Using Multiple .Config Files in ASP.NET

    Submitted by planetsourcecode on
    We can include multiple configuration files in our asp.net application, these things provide a feasibility to the use to work in more robust environment. The usage of multiple configuration file makes the application more secure and manageable Web.confi exposes an element that can be used as a place to store application settings like connection strings, file paths, etc.
  7. How to generate a Random number using RNGCryptoServiceProvid

    Submitted by planetsourcecode on
    We can easily generate a unique Random number by using the inbuilt class "RNGCryptoServiceProvider".For doing this simply add class namespace to the header of the code-behind. using System.Security.Cryptography; write a simple function "GetUniqueKey" private string GetUniqueKey() { int maxSize = 8; int minSize = 5; char[] chars = new char[62]; string a;
  8. ASP.NET Validation Tips and Tricks (Part1)

    Submitted by planetsourcecode on
    Tips1# Validate an IP address We can easily validate an IP address by Adding Namespace using System.Text.RegularExpressions; public class IPAddressTextBox: RegExTextBox { public IPAddressTextBox() { InitializeComponent(); this.ValidationExpression = @"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$";