|
List Info
Thread: ASP.NET in 21 Days by Chris Payne
|
|
| ASP.NET in 21 Days by Chris Payne |

|
2006-06-28 06:45:17 |
Hello, I am a newbie to ASP.NET. While doing one of the book
exercise
by Chris Payne ASP.NET in 21 Days, Day 3, I am quiet
confused with the
exercise. However, I wrote some code but could not get the
solution.
Below is my code.
Exercise is : Create an ASP.NET Page with a class that
represents you,
with proprerties that describes your hair, eye color &
Birth Date. Use
the dayofweek property of the datetime data type to
determine the day
of the week of your b'day.............
Can you please help.
<% Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
a>">
<script runat="server">
Class Yashman
Public strHairColor As String
Public strEyeColor As String
Public dtBDay As Date
Function setProperties(ByVal strHC As String, ByVal
strEC As
String, ByVal dtBD As String)
strHairColor = strHC
strEyeColor = strEC
dtBDay = WeekdayName(dtBD, False)
Return setProperties(strHairColor, strEyeColor,
dtBDay)
End Function
End Class
Sub btn_Click(ByVal obj As Object, ByVal e As EventArgs)
Dim objClass As New Yashman
Response.Write(objClass.setProperties("Black",
"Black",
"4/4/1979"))
End Sub
</script>
<html xmlns="http://www.w3.org/1999/x
html" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1"
runat="server">
<div>
<asp:Button ID="btn"
runat="server" Text="Submit"
OnClick="btn_Click" />
</div>
</form>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---
|
|
| ASP.NET in 21 Days by Chris Payne |

|
2006-06-28 13:40:49 |
|
Hello friends all those are new for dot net can begin using this link
it is very usefull for dotnet programmers
On 6/28/06, Yashman <gmail.com">yashmangupta gmail.com> wrote:
Hello, I am a newbie to ASP.NET. While doing one of the book exercise
by Chris Payne ASP.NET in 21 Days, Day 3, I am quiet confused with the exercise. However, I wrote some code but could not get the solution. Below is my code.
Exercise is : Create an
ASP.NET Page with a class that represents you, with proprerties that describes your hair, eye color & Birth Date. Use the dayofweek property of the datetime data type to determine the day
of the week of your b'day.............
Can you please help.
<% Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Class Yashman
Public strHairColor As String Public strEyeColor As String
Public dtBDay As Date
Function setProperties(ByVal strHC As String, ByVal strEC As String, ByVal dtBD As String)
strHairColor = strHC strEyeColor = strEC dtBDay = WeekdayName(dtBD, False)
Return setProperties(strHairColor, strEyeColor, dtBDay)
End Function
End Class
Sub btn_Click(ByVal obj As Object, ByVal e As EventArgs)
Dim objClass As New Yashman
Response.Write(objClass.setProperties("Black", "Black", "4/4/1979"))
End Sub
</script>
<html xmlns="
http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server">
<div> <asp:Button ID="btn" runat="server" Text="Submit" OnClick="btn_Click" /> </div> </form> </body> </html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community" group. To post to this group, send email to aspnet googlegroups.com To unsubscribe from this group, send email to aspnet-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/aspnet -~----------~----~----~----~------~----~------~--~---
|
| ASP.NET in 21 Days by Chris Payne |

|
2006-06-29 07:11:06 |
Thank you Kamal. I some how solved the puzzle.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---
|
|
| ASP.NET in 21 Days by Chris Payne |

|
2006-06-29 08:16:59 |
Yashman wrote:
> Hello, I am a newbie to ASP.NET. While doing one of the
book exercise
> by Chris Payne ASP.NET in 21 Days, Day 3, I am quiet
confused with the
> exercise. However, I wrote some code but could not get
the solution.
> Below is my code.
>
> Exercise is : Create an ASP.NET Page with a class that
represents you,
> with proprerties that describes your hair, eye color
& Birth Date. Use
> the dayofweek property of the datetime data type to
determine the day
> of the week of your b'day.............
>
> Can you please help.
>
> <% Page Language="VB" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
a>">
>
> <script runat="server">
>
> Class Yashman
>
> Public strHairColor As String
> Public strEyeColor As String
> Public dtBDay As Date
>
> Function setProperties(ByVal strHC As String,
ByVal strEC As
> String, ByVal dtBD As String)
>
> strHairColor = strHC
> strEyeColor = strEC
> dtBDay = WeekdayName(dtBD, False)
>
> Return setProperties(strHairColor,
strEyeColor, dtBDay)
>
> End Function
>
> End Class
>
> Sub btn_Click(ByVal obj As Object, ByVal e As
EventArgs)
>
> Dim objClass As New Yashman
>
>
Response.Write(objClass.setProperties("Black",
"Black",
> "4/4/1979"))
>
> End Sub
>
> </script>
>
> <html xmlns="http://www.w3.org/1999/x
html" >
> <head runat="server">
> <title>Untitled Page</title>
> </head>
> <body>
> <form id="form1"
runat="server">
> <div>
> <asp:Button ID="btn"
runat="server" Text="Submit"
> OnClick="btn_Click" />
> </div>
> </form>
> </body>
> </html>
What errors are you getting?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---
|
|
| ASP.NET in 21 Days by Chris Payne |

|
2006-06-30 05:15:55 |
|
Go through this link
On 6/29/06, HoopsBhoy <aol.com">hoopsbhoy67 aol.com> wrote:
Yashman wrote: > Hello, I am a newbie to ASP.NET. While doing one of the book exercise
> by Chris Payne ASP.NET in 21 Days, Day 3, I am quiet confused with the > exercise. However, I wrote some code but could not get the solution. > Below is my code. >
> Exercise is : Create an ASP.NET Page with a class that represents you, > with proprerties that describes your hair, eye color & Birth Date. Use > the dayofweek property of the datetime data type to determine the day
> of the week of your b'day............. > > Can you please help. > > <% Page Language="VB" %> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <script runat="server"> > > Class Yashman
> > Public strHairColor As String > Public strEyeColor As String > Public dtBDay As Date > > Function setProperties(ByVal strHC As String, ByVal strEC As
> String, ByVal dtBD As String) > > strHairColor = strHC > strEyeColor = strEC > dtBDay = WeekdayName(dtBD, False) > > Return setProperties(strHairColor, strEyeColor, dtBDay)
> > End Function > > End Class > > Sub btn_Click(ByVal obj As Object, ByVal e As EventArgs) > > Dim objClass As New Yashman > >
Response.Write(objClass.setProperties("Black", "Black", > "4/4/1979")) > > End Sub > > </script> > > <html xmlns="
http://www.w3.org/1999/xhtml" > > <head runat="server"> > <title>Untitled Page</title> > </head> > <body> > <form id="form1" runat="server">
> <div> > <asp:Button ID="btn" runat="server" Text="Submit" > OnClick="btn_Click" /> > </div> > </form>
> </body> > </html>
What errors are you getting?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community" group. To post to this group, send email to aspnet googlegroups.com To unsubscribe from this group, send email to aspnet-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/aspnet -~----------~----~----~----~------~----~------~--~---
|
[1-5]
|
|