We create new Resource file in a current project and then we add the textfile that already we fill with some data to Resource file. So that we ready to use it.
This is the sample code :
protected void Form1_Load(object sender, System.EventArgs e)
{
Assembly assem = Assembly.GetExecutingAssembly();
string value = Resource.TextFile; // TextFile is the name [...]
Arsip untuk ‘.NET Programming’ Kategori
A simple way to get the value of TextFile in Resource (C#)
Diposkan dalam .NET Programming pada Juli 13, 2007 | Leave a Comment »
myTemplateUI (Introduction)
Diposkan dalam .NET Programming pada Juli 12, 2007 | Leave a Comment »
myTemplateUI is a tools that I developed by .NET environment which is coordinating many standard functions in application such as Insert, Update, Delete, Searching, Navigator, etc, in just one place. myTemplateUI will help the web developer to make a page more faster and also we can maintain the application more easier because many global function [...]
Check the Browser in C#
Diposkan dalam .NET Programming pada Juli 10, 2007 | Leave a Comment »
If we can check the version and type of the browser so we can manage our application to a certain browser. This is the code of how to check the browser.
Request.Browser.Type –> to check the type of the browser (IE, Mozilla, Opera, etc)
Request.Browser.MajorVersion –> to check the version of the browser
Membuat Property Editor untuk WebCustomControl di C#
Diposkan dalam .NET Programming pada Juli 10, 2007 | Leave a Comment »
Property Editor adalah sebuah editor bagi sebuah property dimana property tersebut merepresentasikan sebuah object list. Sehingga developer dapat menentukan behaviour dari sebuah control yang sedang dibuat dapat dilakukan pada saat design time. .NET sudah menyediakan sebuah Class “CollectionEditor” yang merupakan hasil inherits dari UITypeEditor, dengan kita meng-inherits Class CollectionEditor kita dapat meng-override method-method yang tersedia [...]