Posts Tagged ‘ASP.NET’

Validation of ViewState Mac failed in ASP.NET 2

I met this asp.net Exception when I create a .mobi application followed the new policy of .mobi (I think it is WAP 2.0). I searched Google and got the following article, then I copy to here ((from : http://aspadvice.com/blogs/joteke/archive/2006/02/02/15011.aspx)). Later I will try to use the solution for my application If you get this Exception [...]

Leave a Comment

Paypal STANDARD Website Payment Walkthrough?

Paypal STANDARD Website Payment Walkthrough? Here is from a question about Commerce Starter Kit (asp.net). maybe it is can used for any e-commerce website code to setup Paypal payment. Paypal STANDARD Website Payment Walkthrough? To setup a fictitious Paypal account in the Sandbox and confirming the account: 1. Log into the Developer Central website at [...]

Leave a Comment

A button style HyperLink in ASP.NET

<asp:HyperLink ID=”linkCountry” runat=”server” NavigateUrl=’<%# “CountryLst.aspx?ContinentID=” + DataBinder.Eval(Container.DataItem,”continentid”) %>’ Text=’<%# DataBinder.Eval(Container.DataItem, “continentname”) %>’ Font-Bold=”True” ForeColor=”Black” Font-Size=”Medium” BorderWidth=”3px” BackColor=”LightGray” BorderStyle=”Outset” Width=”83px” style=”TEXT-DECORATION: none”  >

Leave a Comment

Get relavated value of selected row of GridView using javascipts

(from: http://geekswithblogs.net/azamsharp/archive/2006/08/29/89697.aspx) So, here is the story. I have a GridView which contains the ASP.NET CheckBox control. Each row also have the primary key of the database table. Now, I need to get the ID of the selected checkbox using JavaScript. I used a hidden field to store the ID of the row (The row [...]

Leave a Comment

Show all GridView Rows in EditMod

(from: http://aspadvice.com/blogs/azamsharp/archive/2006/11/08/Show-all-GridView-Rows-in-EditMode.aspx) Sometimes, in the application we have a requirement that you need to show the GridView rows in edit mode. This means that all the rows will contain textboxes and the data should be present in the textboxes. Once, you are done with editing you can update and get back to the view mode. [...]

Leave a Comment

Coding notes in my daily works (ASP.NET 1.1)

Here is some notes that recorded by myself when I work daily. They are about ASP.NET 1.1, maybe some of them can be re-used in ASP.NET 2.0 too. 1: Using “New ListItem” to Feed DropDownList Controller dt = dbDA.DB_GetTitle(“TREASURERTITLE”) If (Not dt Is Nothing) And (dt.Rows.Count > 0) Then With dt For intCounter = 0 [...]

Leave a Comment

ASP.NET and XHTML

Why XHTML ? XHTML is a World Wide Web Consortium (W3C) standard that defines HTML as an XML document. Creating Web pages that are conformant with XHTML standards has several advantages: *      It guarantees that the elements in the pages are well formed. *      Because many browsers are increasingly moving toward supporting XHTML, creating pages [...]

Leave a Comment

Redirecting to an ASP.NET Mobile Web Page

(from: http://msdn2.microsoft.com/en-us/library/fhhycabe.aspx) If you create an application that has one user interface optimized for a desktop browser and a second user interface optimized for mobile applications, you need a mechanism to redirect mobile device customers to the mobile Web pages. Because some devices do not support cookies, consider whether you want to rely on cookies [...]

Leave a Comment