List Info

Thread: ASP.NET in 21 Days by Chris Payne




ASP.NET in 21 Days by Chris Payne
user name
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">

<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 aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

ASP.NET in 21 Days by Chris Payne
user name
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">yashmanguptagmail.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=&quot;VB&quot; %>

<;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN";
" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

<script runat=&quot;server&quot;>

&nbsp;  Class Yashman

&nbsp;   ; &nbsp; Public strHairColor As String
&nbsp; &nbsp; &nbsp;  Public strEyeColor As String
&nbsp; &nbsp;   ; Public dtBDay As Date

&nbsp; &nbsp; &nbsp;  Function setProperties(ByVal strHC As String, ByVal strEC As
String, ByVal dtBD As String)

&nbsp;   ; &nbsp; &nbsp; &nbsp; strHairColor = strHC
&nbsp; &nbsp; &nbsp; &nbsp;   ; strEyeColor = strEC
&nbsp; &nbsp; &nbsp; &nbsp;   ; dtBDay = WeekdayName(dtBD, False)

&nbsp;   ; &nbsp; &nbsp; &nbsp; Return setProperties(strHairColor, strEyeColor, dtBDay)

&nbsp;   ; &nbsp; End Function

  ; End Class

&nbsp;  Sub btn_Click(ByVal obj As Object, ByVal e As EventArgs)

 &nbsp; &nbsp; &nbsp; Dim objClass As New Yashman

  ; &nbsp; &nbsp; Response.Write(objClass.setProperties(";Black";, "Black",
&quot;4/4/1979"))

  ; End Sub

</script>

<html xmlns=&quot; http://www.w3.org/1999/xhtml&quot; >
<head runat=&quot;server&quot;>
&nbsp;  <title&gt;Untitled Page</title>
&lt;/head>
<body&gt;
 &nbsp; <form id="form1" runat=&quot;server&quot;>
&nbsp;  <div>;
 &nbsp; &nbsp; &nbsp; <asp:Button ID="btn" runat=&quot;server&quot; Text=";Submit&quot;
OnClick="btn_Click" />
&nbsp;  </div&gt;
 &nbsp; </form&gt;
</body>
</html>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community&quot; group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

ASP.NET in 21 Days by Chris Payne
user name
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 aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

ASP.NET in 21 Days by Chris Payne
user name
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">
>
> <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 aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

ASP.NET in 21 Days by Chris Payne
user name
2006-06-30 05:15:55
Go through this link

On 6/29/06, HoopsBhoy <aol.com">hoopsbhoy67aol.com&gt; 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.............
&gt;
> Can you please help.
>
> <% Page Language=&quot;VB&quot; %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN";
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
>
> <script runat=&quot;server&quot;>
>;
; &nbsp;  Class Yashman
&gt;
>&nbsp; &nbsp; &nbsp;   ; Public strHairColor As String
>; &nbsp; &nbsp; &nbsp; &nbsp; Public strEyeColor As String
>; &nbsp; &nbsp; &nbsp; &nbsp; Public dtBDay As Date
>
> &nbsp;   ; &nbsp;  Function setProperties(ByVal strHC As String, ByVal strEC As
> String, ByVal dtBD As String)
&gt;
>&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; strHairColor = strHC
>  ; &nbsp; &nbsp; &nbsp; &nbsp;   strEyeColor = strEC
>  ; &nbsp; &nbsp; &nbsp; &nbsp;   dtBDay = WeekdayName(dtBD, False)
>;
; &nbsp; &nbsp; &nbsp; &nbsp;   ; Return setProperties(strHairColor, strEyeColor, dtBDay)
&gt;
>&nbsp; &nbsp; &nbsp;   ; End Function
&gt;
>&nbsp; &nbsp;  End Class
>
  ;  Sub btn_Click(ByVal obj As Object, ByVal e As EventArgs)
>
>&nbsp;   ; &nbsp; &nbsp; Dim objClass As New Yashman
&gt;
>&nbsp; &nbsp; &nbsp; &nbsp;  Response.Write(objClass.setProperties(&quot;Black&quot;, "Black",
&gt; "4/4/1979"))
>
>  ; &nbsp; End Sub
>
&gt; </script>
>
> <html xmlns=&quot; http://www.w3.org/1999/xhtml&quot; >
> <head runat=&quot;server&quot;>
>; &nbsp; &nbsp; <title&gt;Untitled Page</title>
&gt; </head&gt;
> <body&gt;
>&nbsp; &nbsp;  <form id="form1" runat=&quot;server&quot;>
&gt; &nbsp; &nbsp; <div>;
; &nbsp; &nbsp; &nbsp;  <asp:Button ID="btn" runat=&quot;server&quot; Text=";Submit&quot;
> OnClick=&quot;btn_Click" />
>  ; &nbsp; </div&gt;
>&nbsp; &nbsp;  </form&gt;
> </body&gt;
> </html&gt;

What errors are you getting?






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community&quot; group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )