Tuesday, 29 October 2013

Convert Type to SqlDataType and SqlDataType to Type C#

Leave a Comment
Type conversion basically involve casting and convert from one type to another. You can try the Type conversion by following this web site. Today i want to share code to convert from Type to SqlDataType. This method can be used for example to add parameters to SqlCommand based on DataTable column DataType, see example below : SqlCommand dbComm = new SqlCommand("<sql statement>",<sql connection>); dbComm.Parameters.Add("<parameter name>", < sql Data Type>]).Value  = "test"; what about if...
Read More...

Monday, 28 October 2013

Modal Popup Message Box ASP.NEt C# Example

Leave a Comment
Message box is a must in a web application right now. I will show example how to create message box like picture above. Requirement to try this example : AjaxControl Toolkit User Control  :  MessageBox.ascx Sample Page To call Message Box : MessageModalPopup.aspx The MessageBox.ascx  <link href="../messageBoxStyle.css" type="text/css" rel="Stylesheet" /> <asp:ToolkitScriptManager ID="ToolkitScriptManager1"...
Read More...

Sunday, 27 October 2013

Auto Complete Example ASP.NET AjaxToolkit C#

Leave a Comment
Auto complete is one powerful feature in modern web application. It is helping people to get the suggestion what are the word to put in the textbox. Today i want to show example how to use AutoComplete feature in AjaxToolkit Asp.Net The List of requirement : AjaxToolkit library AutoCompleteTextBox.aspx Page DataAutoComplete.asmx Web services The AutoCompleteTextBox.aspx Page :  <%--Script Manager--%>    ...
Read More...

Thursday, 24 October 2013

How to create zip file to download asp.net - C#

Leave a Comment
Today i want to show you how to create file on the fly from server side and pass it to client to download. The idea is to create the zip file when the button clicked, and then save the zip file and pass the zip file to client side. After file finish to download, you may be delete the zip file to reduce the resource of the server. Some application will allow user to download multiple file, but to download file by clicking one by one button is not necessary as you can zip the file and download all the file as one single zip...
Read More...

How to create zip file to download in JSP- Servlet

Leave a Comment
Hye, my previous post show that how to download zip file in ASP.NET,. In this tutorial i will show the same thing, but in Jsp-Servlet. Note : In this tutorial i will use this library :- JSTL 1.1  The JSP File  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html>     <head>        ...
Read More...

Tuesday, 22 October 2013

Date Time Conversion utility Java

Leave a Comment
In this post, i will like to share code snippet for date time manipulation in Java. Convert hour from integer to string Description : Converts hour from integer to String. If the hour is single digit, the leading zero will be added. public static String getHourString(int localHourNumber) {         if ((localHourNumber > 23) || (localHourNumber < 0)) {             return "";         }        ...
Read More...

Monday, 21 October 2013

How to read all folder and subfolder path C#

Leave a Comment
Today i want to show how you can get folder path and all subfolder path. The process is more efficient and faster because im using IEnumerable type to determine if path has sub directory or not. I write this example in c# using window form. Here is my winform GUI :   The sample Output ---------------------------------- Directory List Start Path : C:\Android Project ---------------------------------- List file and directory Directory...
Read More...

Sunday, 20 October 2013

How to read XMl using LINQ - ASP.NET C#

Leave a Comment
LINQ -  stand for Language Integrated Query is a powerful features that extend the query capability to the language syntax in C# or Visual basic. In this tutorial i will show one example how to read xml file using Linq. Checklist : Create one aspx page name "ReadxmlUsingLinq.aspx". Create one xml file name "XmlDataTest.xml" The XmlDataTest.xml  <?xml version="1.0" encoding="utf-8" ?> <root>   <TransactionName...
Read More...

How to create captcha image asp.net C#

Leave a Comment
The word CAPTCHA (stand for "Completely Automated Public Turing test to tell Computers and Humans Apart") is a one mechanism that used in web application to determined is user that access the web application is a human or bot. This is because, the captcha contains some word as Image that required users to enter same word in web application form to complete the process.  The captcha also used to prevent bots from automatically access...
Read More...

Saturday, 19 October 2013

Page Asynchronous and Synchronous Postback page example - ASP.NET

Leave a Comment
Asynchronous postback and synchronous postback is a process submission back to server. Only update panel are sent back to server if you using async postback(AJAX) while synchronous postback will sent all page content to server back. Today i will create one example to differentioate between async postback and sync postback. The ASPX page Register the ajaxtoolkit script manager : <asp:ToolkitScriptManager ID="ToolkitScriptManager1"...
Read More...

Subscribe to our newsletter to get the latest updates to your inbox.

Your email address is safe with us!




Founder of developersnote.com, love programming and help others people. Work as Software Developer. Graduated from UiTM and continue study in Software Engineering at UTMSpace. Follow him on Twitter , or Facebook or .



Powered by Blogger.