Sushila Patel's Weblog
When the going gets tough, upgrade
-
Think you have gotta tough job?....
There was a time when I used to open/refresh my inbox every 5-3-2-1-... mins to check if I have got a new mail. Along with original mails every forwarded mail brought a very satisfying smile on my face. And now I find myself with the series of the FW mails sent by my very own good friends never ever read by them or me... moved conveniently to Deleted folder ...
The fear for opening these mails is Subject Line..."If you send this to 10...", "You are lucky to get this mail", "You are the chosen one ..."... etc etc etc...or some jokes send as if same mails are automated to be sent weekly. -
Designing .NET Class Libraries Training
A great series of presentations and technical chats on Designing .NET Class Libraries is available @ MSDN .NET Framework Developer Center.
-
Sample Code: Bidirectional Sorting in ASP.NET Repeater control
.aspx
-
Sample Code: How to display multiple spaces in a dropdownlist
webform1.aspx
-
Sample Code: How to use a RangeValidator to Select Colors from a specific range
<asp:dropdownlist id="DropDownList1" runat="server">
<asp:ListItem Value ="#000000">#000000</asp:ListItem>
<asp:ListItem Value ="#ff0000">#ff0000</asp:ListItem>
<asp:ListItem Value ="#0000ff">#0000ff</asp:ListItem>
<asp:ListItem Value ="#00aacc">#00aacc</asp:ListItem>
<asp:ListItem Value ="#0000cc">#0000cc</asp:ListItem>
<asp:ListItem Value ="#cc0000">#cc0000</asp:ListItem>
<asp:ListItem Value ="#00ff00">#00ff00</asp:ListItem>
</asp:dropdownlist>
<asp:rangevalidator id="RangeValidator1" runat="server"
ErrorMessage="Select a color between #00ff00 to #ff0000"
ControlToValidate="DropDownList1" MaximumValue="#ff0000" MinimumValue="#00ff00">
</asp:rangevalidator>
-
Injection Attacks
To prevent SQL-injection attacks,
-
Sample Code: Grouping Data in the DataList
HTML Source
-
Upcoming Changes to ASP.NET 2.0 in Beta 2
There have been significant changes being made for Beta 2 Release of ASP.NET 2.0. For more details check out The Online Weblog of Shanku Niyogi, ASP.NET Group Program Manager.
-
How To: Get Start Date and End Date of the Week
'Enter any Date in MDY format
Dim dtNow As DateTime = Date.Parse("04/25/2004")
Dim nowdayofweek As Integer = dtNow.DayOfWeek
Dim weekStartDate, weekEndDate As DateTime
weekStartDate = DateAdd("d", 0 - dtNow.DayOfWeek, dtNow)
weekEndDate = DateAdd("d", 6 - dtNow.DayOfWeek, dtNow)
'Displays first day of the week
Response.Write(weekStartDate.ToString("MM/dd/yyyy"))
'Displays last day of the week
Response.Write("<BR>" & weekEndDate.ToString("MM/dd/yyyy"))
-
Sample Code: Using Dropdownlist in Editable DataGrid
This article demonstrates how to use Dropdownlist in Editable DataGrid