Montaque

Nothing is impossible for MS .NET

February 2004 - Posts

How to skip Windows XP Login Splash Windows.
Click Start, Run and type "control userpasswords2", and click Ok.
Uncheck "Users must enter a user name and password to use this computer"
option, and click Ok
Posted: Feb 18 2004, 03:39 AM by Montaque | with 5 comment(s)
Filed under:
Microsoft's top-secret code is leaked

Windows source code is Microsoft’s crown jewel, one that is guarded jealously. The company has to know exactly what source code is shared with partners and when.

Some background: At one time, Microsoft shared portions of the Windows NT and 2000 source code with two partners working on software tools that would allow other software developed for Windows to run on Unix. If I recall correctly, the amount was 8 million or so lines of code for one operating system.

That works out about right for the size of the leak, 13.5 million lines of code, according to people who have seen it. The timing fits, too, considering the apparent age of the code and when the partners had access to it. Folks who have seen the source code told me the code date appears to be July 25, 2000, which would be about right for Windows 2000 Service Pack 1.

C#<-->VB.NET Converter

From C# to VB.NET http://authors.aspalliance.com/aldotnet/examples/translate.aspx

VB.NET to C#  http://www.kamalpatel.net/ConvertCSharp2VB.aspx

Posted: Feb 14 2004, 04:30 AM by Montaque | with 6 comment(s)
Filed under:
Montaque and Amy got married at 2004/02/08.:)

the photos are not ready now

Posted: Feb 10 2004, 07:58 AM by Montaque | with 1 comment(s)
Filed under:
Invalid part in cookie

    Public Sub SetCsdnCookie(ByVal c1 As System.Net.CookieContainer)
        Dim s As String = " buildtime=2004%2D2%2D3+13%3A44%fsadfasd; buildnum=1; test=0; ASPSESSIONIDQASRTDQB=EKPHCECANFKHBJLMNJEDOJDP; ASPSESSIONIDQAQSSCQA=IALDDLCAJNGDPHDLFHOCGPLD; ASPSESSIONIDSCQRSDQA=JBCKJPDADKFLJDLAPFHLBIND; daynum=7; ABCDEF=RyYqs5wAA1v7wvlXC%25252fgOhElDWk%25252fVqNFDM3t306oQtpV5vj76WrVjh7ZInURppl6i; QWERTOP=1682; userid=78486"
        'Dim s As String = "UserName=Montaque ; IP=12.121.1.1"
        s = s.Trim
        Dim reg1 As New System.Text.RegularExpressions.Regex("(?<1>[^=]+)=(?<2>[^=]+);")
        Dim mc As System.Text.RegularExpressions.MatchCollection = reg1.Matches(s)

        Dim cc As New System.Net.CookieCollection
        Dim cookie1 As System.Net.Cookie
        For Each m As System.Text.RegularExpressions.Match In mc
            cookie1 = New System.Net.Cookie(m.Groups(1).Value, m.Groups(2).Value)
            cookie1.Domain = sUrl
            cc.Add(cookie1)
        Next
        Console.ReadLine()
        c1.Add(cc)
    End Sub

 

//How to Resolve.

name and value of a cookie can not begin with spaces,so add a trim to the name and value

Posted: Feb 04 2004, 05:03 AM by Montaque | with 1 comment(s)
Filed under:
VS Whidbey: IDE features for building ASP.NET applications

VS Whidbey: IDE features for building ASP.NET applications
Agenda
Design goals
Area drill-downs and demos
Summary
VS “Whidbey” Web Themes
Provide the best tool for building ASP.NET applications
Project system geared for web development
Build the richest source editor for ASP.NET and HTML
Improve designer surface for common visual tasks – page layout, control editing
Faster Web development
“Whidbey” Project System
Geared for web development
Edit Web Sites Anywhere
No setup required to do Web development
IIS and FPSE supported but not required
Built in development server for debugging
Several options for editing web sites
Filesystem – c:\web or \\server\web
Direct manipulation of Local IIS (no FPSE)
FTP
Frontpage Server Extensions
Web Friendly Project System
Directory based web project system
Better team development
No project file locking between users
No duplication of project file data
Simple point-and-open folder editing enables interoperability
Single file editing
No project required
Intellisense and designer support
Remote Site Publishing
Support for FTP, UNC, or FPSE protocols
Visual tool for copying files to/from remote site
Supports copy of full site, or selected files
Copy each direction or two way synchronize
Visually identify local and remote changes
Detects issues and provides conflict resolution

“Whidbey” Project System
“Whidbey” Source Editor
Meets all of your needs
Intellisense Everywhere!
HTML and ASPX markup
Directives - <@Page, <@Register,…
Inline code within ASPX / HTML
Client VBScript and Jscript in <script> blocks
<script runat=server> sections in ASPX file
<% %> blocks in ASPX file
Inline CSS styles
Web.config
XML files
You Have Total Control
Tools to quickly navigate your code
Tag navigator
Outlining for HTML / ASPX tags
Document outline
Drop-downs for navigation
Inline client script
Server code


You Have Total Control
Tools to quickly navigate your code
Tag navigator
Outlining for HTML / ASPX tags
Document outline
Drop-downs for navigation
Inline client script
Server code
Get code to look exactly the way you like
Full control over formatting rules
Allows customization on a per tag basis
New content gets defined formatting
Validation Options
Validate against browsers and standards
Common browsers – IE, Netscape, Opera
Popular web standards
HTML 3.2 / 4.0
XHTML 1.0 / 1.1 Transitional, Strict, Frameset
User controllable validation
Casing, quoting, and tag closure preferences
Accessibility Checker
Section 508/WCAG Compliance
Integrated with task list
Cleaner Code-behind
Now using partial classes model
Less brittle code
No designer wire-up needed
All the generated goop goes away
Enables easy designer/developer interaction
More OO code editing support


“Whidbey” Source Editor
“Whidbey” Design Surface
Enhanced visual page development
Intelligent Code Generation
Designer never modifies your code
100% preservation of existing formatting and whitespace
Only modifies elements you edit
Modern and standards based
Design surface creates XHTML 1.1 compliant, CSS styles based code
Generates code using your formatting preferences
Enhanced Visual Editing
Master pages for shared layout
Easily maintain common look and feel
Design surface provides visual feedback
Improved template editing model
Drop-down to quickly switch in/out of template mode
Controls render default content in templates
User control rendering on design surface
SmartTags expose common control tasks
Table Editing
Easily design and build tables
Insert pre-defined/custom table layouts
Use table builder to define complex tables
Table Editing
Easily design and build tables
Insert pre-defined/custom table layouts
Use table builder to define complex tables
Table Editing
Easily design and build tables
Insert pre-defined/custom table layouts
Use table builder to define complex tables
Precise table sizing using visual feedback
New visual cues to help select rows/columns/cells
Makes navigating tables intuitive
“Whidbey” Design Surface
Faster Web Development
All the power of before, more flexibility
RAD Development
Faster development cycles
Can browse changes without having to build
Quickly test incremental updates
Faster project open (IBuySpy Portal)
VS 2003:  ~1 minute
VS Whidbey:  Less than 5 seconds
New Build Page feature
Build and view code changes at page level
Especially useful for C# and J#

RAD Development
\Code directory for class files
Location for class files within web site
Reference classes within ASPX pages
Full Intellisense support
Better team development
Multiple developers can work on different parts of site without build conflicts
Compile errors on one page don’t block development on others
Directory based projects eliminate project file contention
More Build Options
Build and F5 behavior
Compile errors for entire site to task list
<asp> compilation errors to task list
Web.config compilation errors to task list
Optional: Section 508 / WCAG validation
Configure F5 to your preference
Build Site, Build Page, or Save/Browse
Fully Compiled Sites
Pre-compile sites for deployment
Better performance with code-behind and ASPX compiled together
Better IP protection
Compilation of ASPX file allows protection of ASPX and HTML markup
VS.NET automatically obfuscates IL upon compilation

RAD Web Development
Seamless upgrade
Open, compile, run
Full Backwards Compatibility
Visual Studio .NET 2003 applications work
Open, compile, and run upgrade model
Pages updated to new code-behind syntax
Standalone classes moved under \Code folder
Control ASP.NET version on a directory basis in IIS
ASP.NET 1.0 / 1.1 applications co-exist with ASP.NET “Whidbey” applications on same IIS
Project upgrade
Summary
Visual Studio “Whidbey” is the best tool for building ASP.NET applications
Many new web development features to try out today in the Alpha build
Many more exciting new features coming in Beta
Questions?
Brian Goldfarb (bgold@microsoft.com)
http://blogs.gotdotnet.com/bgold/
Omar Khan (omark@microsoft.com)

Download Slides/Demos
ASP.NET Whidbey Book
Now available for PDC bits
13 Chapters, 470 Pages
Topics Covered
Introduction, Tools & Architecture, Data Source Controls and Data Binding, GridView & DetailsView Controls, Master Pages & Navigation, Security, Personalization & Themes, Web Parts, Mobile Device Support, SQL Cache Invalidation, Precompilation, Confuguration & Administration and more.
ASP.NET 2.0 Hands-On Labs
Great Hands-on Walkthroughs (8 hours worth!)
Located in Petree Hall (proctors available for questions)
Nine Labs
Introduction
Data Controls


 

Posted: Feb 03 2004, 01:18 AM by Montaque | with no comments
Filed under: