admin

This user hasn't shared any biographical information


Posts by admin

Collapsible Drag & Drop Panels like Wordpress Dashboard using Jquery and ASP.NET

April 25, 2011 - 4:02 pm

Tags: , , , , , , , , ,
Posted in ASP.NET | No comments

I found a great article that teach us how to create drag and drop panel like dashboard in wordpress panel.
In this sites: http://webdeveloperplus.com/jquery/saving-state-for-collapsible-drag-drop-panels/ shows us how to create the drag and drop panel and save the state in PHP and mysql. In this article, I will show the code in ASP.NET using SQL Server 2005.

  • Share/Bookmark

VB.NET – ASP.NET communication between user control and web page using event handler

April 21, 2011 - 5:09 pm

Tags: , , , , , , , , , , , ,
Posted in ASP.NET | No comments

In this post, we want to show how button in user control communicate with web page in asp.net
First create user control called button.ascx.
Add 3 button, name it btnSave, btnEdit and btnCancel.
in button.ascx back code, add this code:

Public Partial Class button
Inherits System.Web.UI.UserControl
Public Event btnSaveHandler As System.EventHandler
[...]

  • Share/Bookmark

Fun with Pic Scatter for Facebook Profile

January 8, 2011 - 10:06 pm

Tags: , , , ,
Posted in Website Review, Website Tips n Trick | No comments

Check this cool website tools to make your facebook profile picture more killer. Website: http://picscatter.com/

  • Share/Bookmark

ILight Marina Bay Singapore

November 8, 2010 - 7:33 pm

Tags: , , ,
Posted in My Photo Fun | No comments

Lumenocity Singapore

  • Share/Bookmark

ASP.NET – GridView – Get Hidden Field Value in RowCommand

September 21, 2010 - 5:12 pm

Tags: , , , ,
Posted in ASP.NET, VB.NET | No comments

There is a problem when we set BoundField visibility to false, the column isn’t rendered to the client. A work around would be to use a HiddenField within a TemplateField instead.

<asp:TemplateField HeaderText="MemberID">
<ItemTemplate>
<asp:LinkButton ID="lbtn_memberid" runat="server" CommandName="GetMemberID" CommandArgument=’<%# DataBinder.Eval(Container, "DataItem.memberid") %>’
[...]

  • Share/Bookmark

Ask for username and password when calling reporting service

June 22, 2010 - 10:42 am

Tags: , , , , , , ,
Posted in Reporting Services | 1 comment

These code allow us to set username and password for reporting services to avoid popup request authentication.
This code tested in Visual Studio 2008 and Reporting Services from SQL Server 2005
First create a class called ReportServerCredentials.vb

Imports Microsoft.VisualBasic
Imports Microsoft.Reporting.WebForms
Imports System.Security.Principal

Public NotInheritable Class ReportServerCredentials
Implements IReportServerCredentials

Public ReadOnly Property ImpersonationUser() As WindowsIdentity [...]

  • Share/Bookmark

Send Email with multiple attachments from VB.NET

June 3, 2010 - 4:43 pm

Tags: , , , , ,
Posted in VB.NET | No comments

This code show how to send email multiple attachments from vb.net by using System.Net.Mail
1. This is how you use it

Dim fileAttch = New ArrayList
fileAttch.Add("C:\test.csv")
fileAttch.Add("C:\test2.csv")
fileAttch.Add("C:\test3.csv")

sendEmail.send(your_emailHost, "no-reply@company.com", your_EmailTo, your_EmailSubject, your_EmailBody, your_EmailccTo, fileAttch)

  • Share/Bookmark

Get first day of the month and last day of the month in VB.NET

June 3, 2010 - 4:31 pm

Tags: , , , ,
Posted in VB.NET | No comments

This code show how to get first date of the month and last day of the month date.

Private Function GetFirstDayOfMonth(ByVal dtDate As DateTime) As DateTime
Dim dtFrom As DateTime = dtDate
dtFrom = dtFrom.AddDays(-(dtFrom.Day – 1))
[...]

  • Share/Bookmark

VB.NET Set Data Table to CSV File

June 3, 2010 - 4:22 pm

Tags: , , , , ,
Posted in VB.NET | 1 comment

This function show how to Convert DataTable to CSV File

Sub SetDataTable_To_CSV(ByVal dtable As DataTable, ByVal path_filename As String, ByVal sep_char As String)
Dim writer As System.IO.StreamWriter
Try
[...]

  • Share/Bookmark

Its not Iron Man but its Iron baby

June 2, 2010 - 4:43 pm

Tags: , , , ,
Posted in Uncategorized | No comments

A VIDEO of a baby girl dressed as Iron Man has become an internet sensation after the child’s filmmaker father posted the clip on YouTube.
Iron Baby, which features Margaret transforming from toddler to iron-clad superhero, has attracted 2.6 million hits so far, the Daily Mail reports.
The parody short film was directed by Margaret’s father Patrick [...]

  • Share/Bookmark