0

Migrating and Encrypting

Posted by Zu on May 12, 2010 in .Net

getOldUsers – read the ds one by one from the old db, where the passwords are not yet encrypted.
InsertUserx – writes the users into your new (current) db, with passwords encrypted.

Public Function MigrateUser() As Integer
Dim dr As DataRow
Dim ds As DataSet
Dim dt As DataTable
Dim userID As Integer
ds = getOldUsers()
dt = ds.Tables(0)
For Each dr In dt.Rows
newPass [...]

 
0

.NET Repeaters Cheat Sheet (vb)

Posted by Zu on Mar 17, 2010 in .Net

<asp:Repeater ID=”rpPostTest” runat=”server” OnItemDataBound=”rpPostTest_OnItemDataBound”>
<ItemTemplate>
<asp:Label ID=”lblQuestion” runat=”server”></asp:Label>
<asp:Label ID=”lblQID” visible=”false” runat=”server”></asp:Label>
<br />
<asp:RadioButtonList ID=”answer” runat=”server”  >
<asp:ListItem    Text=”True”  Value=”T” ></asp:ListItem>
<asp:ListItem   Text=”False”  Value=”F”></asp:ListItem>
</asp:RadioButtonList>
<hr />
</ItemTemplate>
</asp:Repeater>
create the repeater

<asp:Repeater ID="rpPostTest" runat="server" OnItemDataBound="rpPostTest_OnItemDataBound">
<ItemTemplate>
<asp:Label ID="lblQuestion" runat="server"></asp:Label>
<asp:Label ID="lblQID" visible="false" runat="server"></asp:Label>
<br />
<asp:RadioButtonList ID="answer" runat="server"  >
<asp:ListItem  Text="True"  Value="T" ></asp:ListItem>
<asp:ListItem   Text="False"  Value="F"></asp:ListItem>
</asp:RadioButtonList>
<hr />
</ItemTemplate>
</asp:Repeater>

back end code:

 
0

A few useful things to remember…

Posted by Zu on Nov 30, 2009 in .Net

App_Offline.htm
“The way app_offline.htm works is that you place this file in the root of the application.  When ASP.NET sees it, it will shut-down the app-domain for the application (and not restart it for requests) and instead send back the contents of the app_offline.htm file in response to all new dynamic requests for the application.  [...]

Tags: , , ,

 
0

Visual Studio 2005 Remote Debugger

Posted by Zu on Nov 16, 2009 in .Net

I’ve had to do it 2 times so far, and each time i do it i have issues, which could be eliminated, if I saved my notes from the first time. so here goes.
1.  from the Visual Studio CD, browse to tools -> remote debugger -> pick the right format and (x86 or x64) and [...]

Copyright © 2007-2010 Xrum! Blog... All rights reserved.
Desk Mess Mirrored v1.5.1 theme from BuyNowShop.com.