Who is online?  104 guests and 0 members

home » blogs » Vincent Maverick Durano

ASP.NET Blogs

CodeAsp.Net's ASP.NET Blogs is more than just a social community for ASP.NET bloggers - we are one of the largest ASP.NET blog directories on the internet. Whether you are looking to search ASP.NET blogs, connect with ASP.NET bloggers, learn more about ASP.NET, or promote your own blog, CodeAsp.Net is for you. Be sure to check back often as we add new ASP.NET blog postings frequently.

Blogs RSS Feed

Vincent Maverick Durano : Most Recent postings

Vincent Maverick  Durano

Adding Dynamic Rows in GridView with TextBox and DropDownList - Validation

8/8/2010 10:46:14 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [958]

In my previous article here I have demonstrated how to add dynamic rows in Gridview with a combination of TextBox and DropDownList. Just in case you need to validate empty TextBox values before adding a new row to the GridView then here's a JavaScript function that you can use for validation: <script type="text/javascript"> function ValidateEmptyValue() { var gv = document.getElementById("<%= Gridview1.ClientID %>"); var tb = gv.getElementsByTagName("input"); for (var i = 0; i < t...

Read More

Vincent Maverick  Durano

GridView BoundField Column: Accessing TextBox Control on Edit Mode

7/15/2010 2:24:50 AM by Vincent Maverick Durano  -  Comments: 2  -  Views: [661]

If you are working with GridView BoundField Columns and wanted to access the TextBox control on row editing for whatever reasons (which means when you click on the Edit link) then below is an example on how to do it. Let say for example you need to change the BackColor of the TextBox on edit mode. So at PreRender event of GridView, you can do something like this: protected void GridView1_PreRender(object sender, EventArgs e) { if (this.GridView1.EditIndex != -1) { TextBox tb = (TextBox)GridView1...

Read More

Vincent Maverick  Durano

Display animated gif before Iframe content is loaded

7/13/2010 5:06:08 PM by Vincent Maverick Durano  -  Comments: 1  -  Views: [384]

If you are working with iframe in which the content takes time to load, you may want to display a simple loading indicator to the end users instead of letting the users see a blank screen in the page. To do this, here's one way on how to implemet it using javascript. <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> <script type="text/javascript"> function hideLoading() { document.getElementById('divLoading').style.display = "none"; ...

Read More

Vincent Maverick  Durano

MaskEditExtender and ClearMaskOnLostFocus

7/9/2010 7:11:11 AM by Vincent Maverick Durano  -  Comments: 2  -  Views: [305]

I was playing around with ASPNET AJAX MaskEditExtender control and ASPNET Validation controls when I was working with a profile page and doing some input validations. Everything seems to be fine until I was told to always retain the phone mask format in the TextBox. Here’s my code for Phone number masking: <asp:TextBox ID="TXTPhoneNumber" runat="server" MaxLength="13" ValidationGroup="GroupA" /> <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TXTPhoneNum...

Read More

Vincent Maverick  Durano

Introducing WebMatrix Beta

7/9/2010 7:10:20 AM by Vincent Maverick Durano  -  Comments: 4  -  Views: [275]

Microsoft has recently released the first beta version of WebMatrix . What is it? Taken from the WebMatrix official site : "WebMatrix is everything you need to build Web sites using Windows. It includes IIS Developer Express (a development Web server), ASP.NET (a Web framework), and SQL Server Compact (an embedded database). It streamlines Web site development and makes it easy to start Web sites from popular open-source apps. The skills and code you develop with WebMatrix transition seamlessly ...

Read More

Vincent Maverick  Durano

Joined the 100,000 Recognition Points Club in the ASP.NET Forums

5/17/2010 7:50:03 AM by Vincent Maverick Durano  -  Comments: 4  -  Views: [204]

I am the fourth person who reached the 100,000 recognition points in the ASP.NET forums and I am really honored be one in the club. Feels great!

Read More

Vincent Maverick  Durano

Why double quotes does not work in inline databinding statement?

4/26/2010 10:23:26 AM by Vincent Maverick Durano  -  Comments: 1  -  Views: [478]

Over the ASP.Net forums where I frequently participate, a member asked the difference between using single quotes and double quotes in a databinding expression. So I thought of sharing the answer that I have provided on that thread as a reference to others. Here's the actual question of the user: I have always been wondering what can be the reason behind the following? <asp:GridView runat="server"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:HiddenField runat="se...

Read More

Vincent Maverick  Durano

Learning ASP.NET: Where to Begin?

3/1/2010 7:53:23 AM by Vincent Maverick Durano  -  Comments: 2  -  Views: [538]

I often see questions at forums( http://forums.asp.net ) asking stuffs like: Where to begin? Where Do I start? How to Get Started? So I deciced to write this " boring " post to express my opinion and hopefully this can help beginners find their way to get started with ASP.NET. Based on my experience learning ASP.NET is just like learning how to play a guitar.. (oh really? why could I say that? ). (1) First you must have this what we called " interest " because if you don't, you'll just waste you...

Read More

Vincent Maverick  Durano

Pluralsight On-Demand Training library

3/1/2010 7:51:19 AM by Vincent Maverick Durano  -  Comments: 1  -  Views: [446]

Pluralsight is an online .NET Training library which provides online training materials for .NET developers. Example trainings available on demand: · .NET 3.5 · Agile Team Practices · ASP.NET 3.5 · ASP.NET AJAX · ASP.NET MVC · BizTalk 2006 · BizTalk Server 2006 R2 · BizTalk Server 2009 · iPhone ASP.NET · LINQ · Managed Services Engine · Silverlight 3 · SharePoint Services · SQL Server 2008 · VSTS · WCF · Windows Server AppFabric, formerly "Dublin" · Windows Workflow · WPF For more information th...

Read More

Vincent Maverick  Durano

FAQ: Cross Browser GridView Fix Header and Footer with ASP.NET Ajax

1/6/2010 11:42:00 PM by Vincent Maverick Durano  -  Comments: 1  -  Views: [1196]

Many developers from the forums ( forums.asp.net ) are asking if how to implement fix header in GridView while scrolling. We all know that there are lots of examples out there that provide a solution that are available, however some of the solutions provided are not cross browser compatible. While searching for a cross browser solution, I found this article at devarchive.net and it seems very interesting to me. So I play around with the extender provided by devarchive team and thought what if I ...

Read More

Vincent Maverick  Durano

Rank 3rd at the ASP.NET Community Hall of Fame

1/6/2010 11:39:34 PM by Vincent Maverick Durano  -  Comments: 2  -  Views: [490]

Wheew..looks like i've been so busy lately.. ;)... I never thought I’d achieve this, but I’ve somehow managed to get to the top 3 rank in ASP.NET Community Hall of Fame ..This has been a very rewarding experience [~at least for me :) ]!Honestly, I really can't believe that I have helped hundreds, not only hundreds but I think thousands of geeks already within 2 years of contrinuting through forums at the official Microsoft ASP.NET site.

Read More

Vincent Maverick  Durano

Move Multiple Rows Between GridViews

10/11/2009 8:22:12 PM by Vincent Maverick Durano  -  Comments: 0  -  Views: [1217]

This example shows on how to move multiple rows between GridViews. The main idea here is to use a CheckBox control for selecting the rows to be removed from one GridView to another and vise versa. Read More

Read More

Vincent Maverick  Durano

Reset Identity Column Value in SQL Table

9/10/2009 9:21:41 PM by Vincent Maverick Durano  -  Comments: 0  -  Views: [1216]

Recently, one of the members at forums.asp.net is asking if how to reset identity count in sql table. So I thought of sharing the possible solution that we have discussed in this thread as a reference to others.

Read More

Vincent Maverick  Durano

Passing Information form .HTM to .ASPX page in ASP.NET

8/27/2009 2:06:58 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [3159]

Just recently, one of the members at forums.asp.net is asking if how to pass data from .htm page to aspx page. So I decided to share with you of what we have discussed in this thread for a possible solution.

Read More

Vincent Maverick  Durano

How to Prevent SQL Injection in ASP.NET

8/24/2009 12:23:10 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [727]

Mike Brind has written a very good example about " Preventing SQL Injection in ASP.NET ". If you are new to Data Access manipulations in ASP.NET then I would strongly suggest you to read the article mentioned above.

Read More

Vincent Maverick  Durano

Accessing Controls from External JavaScript file

8/18/2009 1:59:43 AM by Vincent Maverick Durano  -  Comments: 1  -  Views: [1572]

This example shows the basic way on how to access control from external javascript file (.js). Normally, we use the following line below when accessing control within our JavaScript method in the page. document .getElementById(' < %= TextBox1.ClientID % > '); AFAIK, Using Inline expression like <% %> will not work within external js files. As a workaround we can pass the id of the control (eg. TextBox) to the funciton as a parameter instead like: External JS file: function GetControl...

Read More

Vincent Maverick  Durano

Bind DataTable to DataList Control

8/14/2009 3:23:54 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [2445]

In this example shows how to bind a DataTable in a DataList control. Just for the simplicity of this demo I’m going to create a dummy data in the DataTable. See the code blocks below: private DataTable GetData() { DataTable dt = new DataTable(); DataRow dr; dt.Columns.Add(new System.Data.DataColumn("Column1", typeof(String))); dt.Columns.Add(new System.Data.DataColumn("Column2", typeof(String))); dt.Columns.Add(new System.Data.DataColumn("Column3", typeof(String))); dr = dt.NewRow(); dr[0] = "Co...

Read More

Vincent Maverick  Durano

Retain Leading Zeros when Converting from Int to String

8/13/2009 4:02:09 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [1924]

Many members in the forums are asking if why is it that an integer value with a leading zero is being trimmed off when converting it to a string? Consider this example: int num = 0123456; // a 7 digit numbers string sNum = num.ToString(); //The result will give you 123456 What happened to the leading zero? Well basically, leading zero has no significance to an integer because by nature an integer with a value of 01 is simply the same as 1. So based on the example above we have an integer value o...

Read More

Vincent Maverick  Durano

UPDATED: Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

8/13/2009 2:56:44 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [870]

In my previous post, I have posted the updated the codes about Adding Dynamic Rows in ASP.Net GridView Control with TextBoxes because there is a bug on that. So obviously the codes in my other example about Adding a Delete functionality in Dynamic TextBoxes in GridView is affected. Read more here .

Read More

Vincent Maverick  Durano

UPDATED: Adding Dynamic Rows in ASP.Net GridView Control with TextBoxes

8/13/2009 2:55:44 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [531]

Well its seems that there is a little bug with my previous article about “ Adding Dynamic Rows in ASP.Net GridView Control with TextBoxes “. The problem is that whenever you change the value of the previous data in the TextBox the updated values will not reflect on postbacks. So I have modified a bit of my codes at AddNewRowToGrid() and SetPreviousData() methods to fix the issue. Read more here .

Read More

Vincent Maverick  Durano

Hide WebPart Header and Border on BrowseDisplayMode

8/12/2009 3:15:40 AM by Vincent Maverick Durano  -  Comments: 0  -  Views: [518]

In order to hide those, we can se the BorderStyle and the PartChromeType of the WebZone to none after we set the display mode of WebPartManager to browse just like below: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { WebPartManager1.DisplayMode = WebPartManager.BrowseDisplayMode; foreach (WebPartZone wz in WebPartManager1.Zones) { wz.BorderStyle = BorderStyle.None; wz.PartChromeType = PartChromeType.None; } } } That's it!

Read More

Vincent Maverick  Durano

Adding Line Breaks in JavaScript Alert and Confirm popup Message

8/3/2009 11:50:38 PM by Vincent Maverick Durano  -  Comments: 0  -  Views: [2010]

Ok it seems that lot’s of members at the forums is asking on how to display multi-line text in a JavaScript pop up box. So I decided to write this example so that other developers can reference it or if I encounter such a post in the forum then I can simple point them in this example. Check the following code blocks below: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <script type="text/javascript" language="javascript"&...

Read More

Vincent Maverick  Durano

My MVP Award Kit Arrived!

7/13/2009 3:01:37 AM by Vincent Maverick Durano  -  Comments: 1  -  Views: [574]

Today I received my MVP Award Kit from Microsoft. The kit consists of the following: * Certificate * MVP Plaque * MVP ID Card * MVP Badge I’m very excited and honored by having this reward as it shows recognition from Microsoft towards my continuous contribution in the ASP.NET community. Thanks to Microsoft!

Read More

Vincent Maverick  Durano

I am a Microsoft MVP

7/1/2009 9:34:27 PM by Vincent Maverick Durano  -  Comments: 4  -  Views: [541]

Today I got a pleasant surprise when I received an email from Microsoft stating that I have been awarded Microsoft MVP Award (ASP.NET) for 2009!! It was like a music to ears! This is the email I received . Dear Vincent Maverick S. Durano, Congratulations! We are pleased to present you with the 2009 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributio...

Read More

Product Spotlight

ASP.NET Hosting Spotlight

Join CodeAsp.Net for FREE Today!

It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.

enter your email address: