//
archives

asp.net

This tag is associated with 5 posts

ASP.NET : Read & Write Text File

Reading From a Text File The first step in reading from a text file is hooking up a StreamReader to the specified file. This is accomplished by using the File class’s OpenText() method. This can be accomplished in the following single line of code: ‘VB.NET Dim sr as StreamReader = File.OpenText(“C:\test.txt”)// C# StreamReader sr = File.OpenText(“C:\\test.txt”); A couple quick things to … Continue reading

ASP.NET Web Site Compile Using DLL Version

Why Using DLL Version, are understand version like 1.0.0.0? Version Numbe help you to understand when last breakdown of software release. ASP.NET can read assembly version (dll file) in Web Project, but in Web Site ASP.NET can read app_code.dll assembly version. STEP 1. ASSEMBLY VERSION 1. Create New Website from Visual Studio 2005. File > … Continue reading

ASP.NET Datagrid with pagination

Create aspx file and write name with “customer.aspx” <asp:datagrid id=”dgCustomer” runat=”server” BackColor=”White” Width=”100%” AutoGenerateColumns=”False” BorderColor=”#999999″ BorderStyle=”Solid” BorderWidth=”1px” CellPadding=”3″ GridLines=”Vertical” ForeColor=”Black” AllowPaging=”True” PageSize=”20″ PagerStyle-Position=”TopAndBottom” PagerStyle-Mode=”NumericPages” CssClass=”pager”> <SelectedItemStyle Font-Bold=”True” ForeColor=”White” BackColor=”#000099″></SelectedItemStyle> <AlternatingItemStyle BackColor=”#CCCCCC”></AlternatingItemStyle> <HeaderStyle Font-Bold=”True” HorizontalAlign=”Center” ForeColor=”White” BackColor=”Black”></HeaderStyle> <FooterStyle BackColor=”#CCCCCC”></FooterStyle> <Columns> <asp:BoundColumn Visible=”False” DataField=”CIF”></asp:BoundColumn> <asp:TemplateColumn> <ItemStyle HorizontalAlign=”Center” Width=”30px”></ItemStyle> <ItemTemplate> <input type=”checkbox” id=”chkDelCustomer” runat=”server” NAME=”chkDelCustomer”> </ItemTemplate> </asp:TemplateColumn> <asp:BoundColumn … Continue reading

Write and Read ASP.NET Web.Config

All setting website can be define in web.config file. The first we must understand regulation how to write and read the config, these is standart format web.config : <configuration>    <configSections>       <sectionGroup name=”system.net”>          <section name=”authenticationModules”             type=”System.Net.Configuration.NetAuthenticationModuleHandler,             System, Version=1.0.3300.0, Culture=neutral,             PublicKeyToken=b77a5c561934e089″/>                                        <section name=”webRequestModules”             type=”System.Net.Configuration.WebRequestModuleHandler,             System, Version=1.0.3300.0, Culture=neutral,             … Continue reading

ASP.NET DropDownList with table data

Step by step assign table data value into dropdownlist using ASP.NET Framework studio. This example using Visual Studio 2005 and Microsoft SQL Server 2008 1. Create Table USE [dbname] GO /****** Object: Table [dbo].[tbl_level] Script Date: 12/02/2011 01:11:03 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[tbl_level]( [lvl_id] … Continue reading

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 10 other subscribers
May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archives

Web Statistic

Blog Stats

  • 187,130 hits