//
archives

ASP.NET

This category contains 29 posts

Simple Encrypt/Decrypt String, ASP.NET/VB

This sample class for Encrypt/Descrypt string : Imports System.IO Imports System.Security.Cryptography Imports System.Text Public Class globalSecurity Protected key As String = “&/?@*>:>” Public Sub New() ‘constructor End Sub Public Function encryptString(ByVal strtext As String) As String Return Encrypt(strtext, key) End Function Public Function decryptString(ByVal strtext As String) As String Return Decrypt(strtext, key) End Function ‘The … Continue reading

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

Upload Image File with refresh image

If using IE browser, after upload image file and viewing the image you cannot getting preview of new image after upload that image component viewing last image before upload. You need trick to refreshing the image. See below : Example : <asp:Image ID=”img” runat=”server” />  ASP.NET scipt : dim fpath as string = “../upload/image.jpg”  img.ImageURL … Continue reading

Error SSIS Variable (Cannot assign value to variable): The result of the expression “_” on property “Executable” cannot be written to the property. The expression was evaluated, but cannot be set on the property.

Stack error assign value to SSIS paramter via ASP.NET or batch file. Yesterday I’m stack in Execute Process Task to execute Batch file, that batch is setting of SSIS execute. The First solution, 1. restart your IIS (if using ASP.NET) always restart your IIS after changed the SSIS component and properties value 2. Change variable properties … Continue reading

Running IIS 32-bit on 64-bit Windows

Configuring IIS to Run 32-bit Applications on 64-bit Windows (IIS 6.0) Related Links • Configuring IIS to Run 32-bit FrontPage Server Extensions on 64-bit Windows • Configuring IIS to Run 32-bit ASP.NET Applications on 64-bit Windows Windows Server 2003TM, Service Pack 1 enables IIS 6.0 to run 32-bit Web applications on 64-bit Windows using the Windows-32-on-Windows-64 … Continue reading

Easy Debugging with Visual Studio

Combination Breakpoint with next line using keyboard making easy finding bug code. First must setting keyboard to Visual basic setting, so after stop/break in breakpoint line, you can easy move bottom cursor with F10 and F8 that if you want enter in function or sub. 1. Setting Keyboard like Visual Basic mode Tool > Option … Continue reading

SqlHelper ASP.NET (VB)

Before set connectionString in web.config </configuration> <appSettings> <add key=”ConnectionString” value=”server=localhost;uid=sa;pwd=sa;database=DBNAME” /> </appSettings> </configuration> 1. Fill DropDownList Dim ds As DataSet = SqlHelper.ExecuteDataset(ConfigurationSettings.AppSettings(“ConnectionString”), “sp_name”, “FieldName = 1”) ddl.DataSource = ds ddl.DataBind() ddl.Items.Insert(0, “-please select one-“) Fungsi dari ddlGolongan_Pemilik.Items.Insert(0, “”) untuk memberikan nilai default. 2. Bind DataGrid DataGrid4.DataSource = SqlHelper.ExecuteReader(ConfigurationSettings.AppSettings(“ConnectionString”) , CommandType.Text, strSql); DataGrid4.DataBind();

ASP.NET C# SqlHelper & Retrieving Row Using Loop Dataset

Introduction In an earlier article of mine, An Introduction and Overview of the Microsoft Application Blocks, we outlined the purpose and benefits of Microsoft Application Blocks. Application Blocks encapsulate two common patterns encountered in application programming, data access and exception management. Application Blocks provide value by making our programming more efficient and our programs more maintainable. … 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

AjaxControlToolkit with ASP.NET

The Ajax Control Toolkit contains a rich set of controls that you can use to build highly responsive and interactive Ajax-enabled ASP.NET Web Forms applications. Follow the steps below to download and start using the Ajax Control Toolkit with Visual Studio: Download the Ajax Control Toolkit The first step is to download the Ajax Control … 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