March 2004 - Posts
Some Projects , Demos and Downloads found @ Microsoft Research(MSR)
The <asp:wizard> control enables us to divide a large form into multiple sub forms.
This is otherwise traditionally done with ASP.NET v1.1 controls using <asp:panel> or <asp:placeholder> on one/multiple pages.
Handling Next/Previous/Finish can be done by setting the properties of the control
Some tags associated with the <asp:wizard> are
<wizardsteps>
<asp:wizardsteps>
<stepnavigationtemplate>
Here is just a sample of how to use the <asp:wizard> control
<asp:wizard id="Wizard1" runat="server" onfinishbuttonclick="FinishbtnClick"
nextstepbuttontext="Next" finishstepbuttontext="Finish"
previousstepbuttontext="Previous" sidebarenabled="false">
<wizardsteps>
<asp:wizardstep runat="server" steptype="start" title="Name/Password" id="Start">
Name: <asp:textbox id="txtName" runat="Server"></asp:textbox>
<asp:requiredfieldvalidator runat="server" controltovalidate="txtName"
id="RequiredFieldValidator1" errormessage="*">
</asp:requiredfieldvalidator>
<br />
Email:<asp:textbox id="txtEmail" runat="server"></asp:textbox>
<asp:regularexpressionvalidator id="Regularexpressionvalidator1" runat="server"
errormessage="Invalid Email" controltovalidate="txtEmail"
validationexpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
</asp:regularexpressionvalidator>
</asp:wizardstep>
<asp:wizardstep id="step" steptype="step" runat="server" title="Address/City">
Address:<asp:textbox id="txtAddress" textmode="multiline" runat="server">
</asp:textbox>
<br />
City:<asp:textbox id="txtCity" runat="server"></asp:textbox>
</asp:wizardstep>
<asp:wizardstep id="Finish" steptype="finish" runat="server" title="Finish">
Description:<asp:textbox id="txtDescription" runat="server">
</asp:textbox>
<br />
Comments:<asp:textbox id="txtComments" runat="server" textmode="multiLine">
</asp:textbox>
</asp:wizardstep>
<asp:wizardstep id="Complete" steptype="complete" runat="server" title="Data Entered">
<asp:bulletedlist id="Bulletedlist1" runat="server">
</asp:bulletedlist>
</asp:wizardstep>
</wizardsteps>
</asp:wizard>
<script runat="server" language="vb">
Sub FinishbtnClick(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs)
Bulletedlist1.Items.Add("Name : " & txtName.Text)
Bulletedlist1.Items.Add("Email : " & txtEmail.Text)
Bulletedlist1.Items.Add("Address : " & txtAddress.Text)
Bulletedlist1.Items.Add("City : " & txtCity.Text)
Bulletedlist1.Items.Add("Description : " & txtDescription.Text)
Bulletedlist1.Items.Add("Comments : " & txtComments.Text)
End Sub
</script>
<asp:wizard> Attribute/Settings | Description |
nextstepbuttontext,previoustepbuttontext, finishstepbuttontext | Text for the Next/Previous/Finish button |
sidebarenabled | Boolean value set to true/false to display/hide the title set for sidebar |
<asp:wizardstep> Attribute/Settings | Description |
Steptype | In the order of appearance:Start,Step,Finish,Complete |
title | If the sidebarenabled is true then the text given in title appears in sidebar. |
During school days I remember reading each and every line of a books/chapters to search for a specific phrase.
To skip this reading Glosssary/Appendixes.. were lifesaver.
Nowadays just giving Ctrl+F->Search string has made life too simpler.
But still its necessary sometimes to read hard copies
And for fast search I always wish to have Ctrl+F option handy especially when reading newspaper.
I am glad to see "Digital paper makes device debut - Soon you could be reading a book printed on electronic paper."
“Sony, Philips and digital paper pioneer E-Ink have announced an electronic book reader that is due to go on sale in Japan in late April for $375 (£204).
Called Librié, the device will be the size of a paperback book and can hold 500 texts in its onboard memory.
The device will also have a PC connection built in to allow owners to download fresh reading material such as newspapers and comics. ...“
Will they have Ctrl+F option??!!
The training labs in this section step you through the process of creating and working with Microsoft® Office Word 2003 and Microsoft Office Excel 2003 solutions using Microsoft Visual Studio® Tools for the Microsoft Office System. Visual Basic® .NET code is used in all labs except Lab 6, which contains Visual C#® code.
Note The labs are designed to be completed in order.
Labs
Read More
The Datagrid/DataList/Repeater control in ASP.NET had provided the flexibility and ease to show the data in a formatted manner. However sometimes the requirement is to flip the data from conventional horizontal layout to vertical layout and page a single record per page
This is possible using Datalist/Repeater/Datagrid but requires some amount of code (basically its not as easy as drag and drop and setting certain properties).
Some of my samples based on this requirement were as follows:
Building a Navigation System in ASP.NET
Use ViewState to display one record per page and also navigate
DetailsView control in Whidbey is one of the controls which can be used to give this kind of layout without any extra coding required
The code is as below
<asp:detailsview id="Detailsview1" runat="server" datasourceid ="Sqldatasource1" Allowpaging="true"></asp:detailsview>
<asp:sqldatasource id="Sqldatasource1" runat="server" selectcommand = "Select * from Employees"
selectcommand = "Select * from Employees"
connectionstring="Server=localhost;uid=sa;password=;database=northwind">
connectionstring="Server=localhost;uid=sa;password=;database=northwind"></asp:sqldatasource>Simple isnt it!!!! :-)
Simple isnt it!!!! :-)
</asp:detailsview>
<asp:sqldatasource id="Sqldatasource1" runat="server" selectcommand = "Select * from Employees"
selectcommand = "Select * from Employees"
connectionstring="Server=localhost;uid=sa;password=;database=northwind">
connectionstring="Server=localhost;uid=sa;password=;database=northwind"></asp:sqldatasource>Simple isnt it!!!! :-)
Simple isnt it!!!! :-)
I did attempt to install Whidbey on my laptop which had VS.NET 2003 ( Operating System Win 2003)
Installation had no problems but an attempt to open existing VS.NET 2003 applications gave following message
"Visual Studio has detected that ASP.NET aplications and services are locked down in IIS. You can run the IIS Security Lockdown Wizard to change lockdown status"
The solution I could think of was aspnet_regiis -i which didnt seem to work :(
Not thinking much on the error message i made a thoughtful decision of keeping VS.NET 2003 and whidbey on different boxes
Though recently I decided to try the same thing again
Not to my surprise I got the same messages when opening the projects developed using VS.NET 2003
This what i had read sometime back
i.e for running .NET Framework side by side one would need to do manual configuration as by default all IIS virtual webs get associated with the newest Framework version
All i could think again was of utility aspnet_regiis
So the steps I tried this time were
Step 1: Go to the folder C:\WINDOWS\Microsoft.NET\Framework\<latest version folder>
run aspnet_regiis.exe -u
Step 2: Go to the folder C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
run aspnet_regiis.exe -i
And this worked out just fine
So right now
VS.NET 2003 works without any problem
Whidbey too works without any issues
Has anyone come across issues having VS.NET 2003 and Whidbey on same box
Any views on the above or is what I tried correct?
Microsoft has made these reports available for all
Get Facts on Windows and Linux
The most Frequently asked question in the forums is
“When I run the .aspx page the server controls wont show up“
or
“When I run the ASPX file it is shown in the browser as a text“
Solution:
Check the file aspnet_regiis in folder C:\WINNT\Microsoft.NET\Framework\v**\
- use the command: aspnet_regiis.exe -u ---> to uninstall current asp.net version.
- use the command: aspnet_regiis.exe -i ---> to install current asp.net version.
More Posts