Saturday, March 31, 2012
The Best Seed for Random Numbers
best seed I can used in my web application?
The Program generate 6 unique random numbers and load each of them in a
textbox control. I need a good seed like ip address or something.
'Function to generate random numbers
Public Function GetRandomNumber() As Integer
Dim objRandom As New System.Random
Return objRandom.Next(1, 26)
End Function"Leon" <vnality@dotnet.itags.org.msn.com> wrote in message
news:OxdtZQcxEHA.1404@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> I know by default the random number generator use the time, but what is
the
> best seed I can used in my web application?
> The Program generate 6 unique random numbers and load each of them in a
> textbox control. I need a good seed like ip address or something.
> 'Function to generate random numbers
> Public Function GetRandomNumber() As Integer
> Dim objRandom As New System.Random
> Return objRandom.Next(1, 26)
> End Function
>
I don't know if this is best or not but I use (this is for a random number
in string format) Also you can change the 8 to a higher number for a larger
random number.
Dim strID as string = DateTime.Now.Ticks.tostring()
Dim rdm1 as Random
rdm1 = new Random(ctype(right(strID,8),int32))
strUnique = rdm1.next().tostring()
Why take ticks (long) and cast as a string only to cast it back to an
Integer?
Why take only the right 8 chars and not the whole value?
Dim myRandom As New Random(CType(Now.Ticks, Integer))
dim theNumber as Integer = myRandom.Next
> I don't know if this is best or not but I use (this is for a random number
> in string format) Also you can change the 8 to a higher number for a
> larger
> random number.
> Dim strID as string = DateTime.Now.Ticks.tostring()
> Dim rdm1 as Random
> rdm1 = new Random(ctype(right(strID,8),int32))
> strUnique = rdm1.next().tostring()
>
"Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
> Why take ticks (long) and cast as a string only to cast it back to an
> Integer?
> Why take only the right 8 chars and not the whole value?
> Dim myRandom As New Random(CType(Now.Ticks, Integer))
> dim theNumber as Integer = myRandom.Next
>
number
>
Well I do this because I wanted a 16 character string and later on in the
code (not included) I add the remaining characters. Also I think if you use
the whole tick it was too big for Random.
"Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
> Why take ticks (long) and cast as a string only to cast it back to an
> Integer?
> Why take only the right 8 chars and not the whole value?
> Dim myRandom As New Random(CType(Now.Ticks, Integer))
> dim theNumber as Integer = myRandom.Next
>
number
>
Also, the help on Random says
However, if your application runs on a fast computer the system clock might
not have time to change between invocations of this constructor; the seed
value might be the same for different instances of Random. In that case,
apply an algorithm to differentiate the seed value in each invocation.
Well, you can take a look at the .NET RNGCryptoServiceProvider.
This example is taken right off of MSDN:
Dim random() As Byte = New Byte(100) {}
'RNGCryptoServiceProvider is an implementation of an RNG
Dim rng As New RNGCryptoServiceProvider()
rng.GetBytes(random) ' bytes in random are now random
Take a look at this, it may be what you were looking for
"Leon" wrote:
> I know by default the random number generator use the time, but what is th
e
> best seed I can used in my web application?
> The Program generate 6 unique random numbers and load each of them in a
> textbox control. I need a good seed like ip address or something.
> 'Function to generate random numbers
> Public Function GetRandomNumber() As Integer
> Dim objRandom As New System.Random
> Return objRandom.Next(1, 26)
> End Function
>
>
Don't using the RNGCryptoServiceProvider slow down the web application?
"Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
message news:5E010EEC-665D-4FFA-8382-76DE85DF9C36@dotnet.itags.org.microsoft.com...
> Well, you can take a look at the .NET RNGCryptoServiceProvider.
> This example is taken right off of MSDN:
> Dim random() As Byte = New Byte(100) {}
> 'RNGCryptoServiceProvider is an implementation of an RNG
> Dim rng As New RNGCryptoServiceProvider()
> rng.GetBytes(random) ' bytes in random are now random
> Take a look at this, it may be what you were looking for
>
> "Leon" wrote:
>
So there is definately a trade off then. This is the one thing I don't like
about technology...there is no perfect solution. There is a gotcha when
doing something. Well, I guess thats live in general.lol!
"Leon" wrote:
> Don't using the RNGCryptoServiceProvider slow down the web application?
> "Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
> message news:5E010EEC-665D-4FFA-8382-76DE85DF9C36@dotnet.itags.org.microsoft.com...
>
>
This code works great, but it looks wrong. What do you see?
'Function to generate random numbers
Public Function GetRandomNumber() As Integer
Dim random() As Byte = New Byte(100) {}
'RNGCryptoServiceProvider is an implementation of an RNG
Dim rng As New RNGCryptoServiceProvider
rng.GetBytes(random) ' bytes in random are now random
Dim objRandom As New System.Random(CInt(random(100)))
Return objRandom.Next(1, 26)
End Function
"Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
message news:9CA87134-C7C6-40F7-A51F-CBD0D1C98E6E@dotnet.itags.org.microsoft.com...
> So there is definately a trade off then. This is the one thing I don't
> like
> about technology...there is no perfect solution. There is a gotcha when
> doing something. Well, I guess thats live in general.lol!
> "Leon" wrote:
>
But casting to a string and taking the last 8 chars isn't going to change
the seed value if ticks is the same for 2 calls.
Also, by casting ticks to Integer (normally long), you are shrinking it down
to an acceptable seed value.
"vMike" <MichZaelY.GeZorgeY@dotnet.itags.org.noZorY.geZwaYrrenY.com> wrote in message
news:cmoi57$8f4$1@dotnet.itags.org.ngspool-d02.news.aol.com...
> "Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
> news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
> number
> Also, the help on Random says
> However, if your application runs on a fast computer the system clock
> might
> not have time to change between invocations of this constructor; the seed
> value might be the same for different instances of Random. In that case,
> apply an algorithm to differentiate the seed value in each invocation.
>
>
>
The Best Seed for Random Numbers
best seed I can used in my web application?
The Program generate 6 unique random numbers and load each of them in a
textbox control. I need a good seed like ip address or something.
'Function to generate random numbers
Public Function GetRandomNumber() As Integer
Dim objRandom As New System.Random
Return objRandom.Next(1, 26)
End Function"Leon" <vnality@dotnet.itags.org.msn.com> wrote in message
news:OxdtZQcxEHA.1404@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> I know by default the random number generator use the time, but what is
the
> best seed I can used in my web application?
> The Program generate 6 unique random numbers and load each of them in a
> textbox control. I need a good seed like ip address or something.
> 'Function to generate random numbers
> Public Function GetRandomNumber() As Integer
> Dim objRandom As New System.Random
> Return objRandom.Next(1, 26)
> End Function
I don't know if this is best or not but I use (this is for a random number
in string format) Also you can change the 8 to a higher number for a larger
random number.
Dim strID as string = DateTime.Now.Ticks.tostring()
Dim rdm1 as Random
rdm1 = new Random(ctype(right(strID,8),int32))
strUnique = rdm1.next().tostring()
Why take ticks (long) and cast as a string only to cast it back to an
Integer?
Why take only the right 8 chars and not the whole value?
Dim myRandom As New Random(CType(Now.Ticks, Integer))
dim theNumber as Integer = myRandom.Next
>>
> I don't know if this is best or not but I use (this is for a random number
> in string format) Also you can change the 8 to a higher number for a
> larger
> random number.
> Dim strID as string = DateTime.Now.Ticks.tostring()
> Dim rdm1 as Random
> rdm1 = new Random(ctype(right(strID,8),int32))
> strUnique = rdm1.next().tostring()
"Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
> Why take ticks (long) and cast as a string only to cast it back to an
> Integer?
> Why take only the right 8 chars and not the whole value?
> Dim myRandom As New Random(CType(Now.Ticks, Integer))
> dim theNumber as Integer = myRandom.Next
> >>
> > I don't know if this is best or not but I use (this is for a random
number
> > in string format) Also you can change the 8 to a higher number for a
> > larger
> > random number.
> > Dim strID as string = DateTime.Now.Ticks.tostring()
> > Dim rdm1 as Random
> > rdm1 = new Random(ctype(right(strID,8),int32))
> > strUnique = rdm1.next().tostring()
Well I do this because I wanted a 16 character string and later on in the
code (not included) I add the remaining characters. Also I think if you use
the whole tick it was too big for Random.
"Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
> Why take ticks (long) and cast as a string only to cast it back to an
> Integer?
> Why take only the right 8 chars and not the whole value?
> Dim myRandom As New Random(CType(Now.Ticks, Integer))
> dim theNumber as Integer = myRandom.Next
> >>
> > I don't know if this is best or not but I use (this is for a random
number
> > in string format) Also you can change the 8 to a higher number for a
> > larger
> > random number.
> > Dim strID as string = DateTime.Now.Ticks.tostring()
> > Dim rdm1 as Random
> > rdm1 = new Random(ctype(right(strID,8),int32))
> > strUnique = rdm1.next().tostring()
Also, the help on Random says
However, if your application runs on a fast computer the system clock might
not have time to change between invocations of this constructor; the seed
value might be the same for different instances of Random. In that case,
apply an algorithm to differentiate the seed value in each invocation.
Well, you can take a look at the .NET RNGCryptoServiceProvider.
This example is taken right off of MSDN:
Dim random() As Byte = New Byte(100) {}
'RNGCryptoServiceProvider is an implementation of an RNG
Dim rng As New RNGCryptoServiceProvider()
rng.GetBytes(random) ' bytes in random are now random
Take a look at this, it may be what you were looking for
"Leon" wrote:
> I know by default the random number generator use the time, but what is the
> best seed I can used in my web application?
> The Program generate 6 unique random numbers and load each of them in a
> textbox control. I need a good seed like ip address or something.
> 'Function to generate random numbers
> Public Function GetRandomNumber() As Integer
> Dim objRandom As New System.Random
> Return objRandom.Next(1, 26)
> End Function
>
Don't using the RNGCryptoServiceProvider slow down the web application?
"Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
message news:5E010EEC-665D-4FFA-8382-76DE85DF9C36@dotnet.itags.org.microsoft.com...
> Well, you can take a look at the .NET RNGCryptoServiceProvider.
> This example is taken right off of MSDN:
> Dim random() As Byte = New Byte(100) {}
> 'RNGCryptoServiceProvider is an implementation of an RNG
> Dim rng As New RNGCryptoServiceProvider()
> rng.GetBytes(random) ' bytes in random are now random
> Take a look at this, it may be what you were looking for
>
> "Leon" wrote:
>> I know by default the random number generator use the time, but what is
>> the
>> best seed I can used in my web application?
>>
>> The Program generate 6 unique random numbers and load each of them in a
>> textbox control. I need a good seed like ip address or something.
>>
>> 'Function to generate random numbers
>>
>> Public Function GetRandomNumber() As Integer
>>
>> Dim objRandom As New System.Random
>>
>> Return objRandom.Next(1, 26)
>>
>> End Function
>>
>>
>
So there is definately a trade off then. This is the one thing I don't like
about technology...there is no perfect solution. There is a gotcha when
doing something. Well, I guess thats live in general.lol!
"Leon" wrote:
> Don't using the RNGCryptoServiceProvider slow down the web application?
> "Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
> message news:5E010EEC-665D-4FFA-8382-76DE85DF9C36@dotnet.itags.org.microsoft.com...
> > Well, you can take a look at the .NET RNGCryptoServiceProvider.
> > This example is taken right off of MSDN:
> > Dim random() As Byte = New Byte(100) {}
> > 'RNGCryptoServiceProvider is an implementation of an RNG
> > Dim rng As New RNGCryptoServiceProvider()
> > rng.GetBytes(random) ' bytes in random are now random
> > Take a look at this, it may be what you were looking for
> > "Leon" wrote:
> >> I know by default the random number generator use the time, but what is
> >> the
> >> best seed I can used in my web application?
> >>
> >> The Program generate 6 unique random numbers and load each of them in a
> >> textbox control. I need a good seed like ip address or something.
> >>
> >> 'Function to generate random numbers
> >>
> >> Public Function GetRandomNumber() As Integer
> >>
> >> Dim objRandom As New System.Random
> >>
> >> Return objRandom.Next(1, 26)
> >>
> >> End Function
> >>
> >>
> >>
>
This code works great, but it looks wrong. What do you see?
'Function to generate random numbers
Public Function GetRandomNumber() As Integer
Dim random() As Byte = New Byte(100) {}
'RNGCryptoServiceProvider is an implementation of an RNG
Dim rng As New RNGCryptoServiceProvider
rng.GetBytes(random) ' bytes in random are now random
Dim objRandom As New System.Random(CInt(random(100)))
Return objRandom.Next(1, 26)
End Function
"Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
message news:9CA87134-C7C6-40F7-A51F-CBD0D1C98E6E@dotnet.itags.org.microsoft.com...
> So there is definately a trade off then. This is the one thing I don't
> like
> about technology...there is no perfect solution. There is a gotcha when
> doing something. Well, I guess thats live in general.lol!
> "Leon" wrote:
>> Don't using the RNGCryptoServiceProvider slow down the web application?
>>
>> "Tampa .NET Koder" <TampaNETKoder@dotnet.itags.org.discussions.microsoft.com> wrote in
>> message news:5E010EEC-665D-4FFA-8382-76DE85DF9C36@dotnet.itags.org.microsoft.com...
>> > Well, you can take a look at the .NET RNGCryptoServiceProvider.
>> > This example is taken right off of MSDN:
>>> > Dim random() As Byte = New Byte(100) {}
>>> > 'RNGCryptoServiceProvider is an implementation of an RNG
>> > Dim rng As New RNGCryptoServiceProvider()
>> > rng.GetBytes(random) ' bytes in random are now random
>>> > Take a look at this, it may be what you were looking for
>>>>> > "Leon" wrote:
>>> >> I know by default the random number generator use the time, but what
>> >> is
>> >> the
>> >> best seed I can used in my web application?
>> >>
>> >> The Program generate 6 unique random numbers and load each of them in
>> >> a
>> >> textbox control. I need a good seed like ip address or something.
>> >>
>> >> 'Function to generate random numbers
>> >>
>> >> Public Function GetRandomNumber() As Integer
>> >>
>> >> Dim objRandom As New System.Random
>> >>
>> >> Return objRandom.Next(1, 26)
>> >>
>> >> End Function
>> >>
>> >>
>> >>
>>
>>
>
But casting to a string and taking the last 8 chars isn't going to change
the seed value if ticks is the same for 2 calls.
Also, by casting ticks to Integer (normally long), you are shrinking it down
to an acceptable seed value.
"vMike" <MichZaelY.GeZorgeY@dotnet.itags.org.noZorY.geZwaYrrenY.com> wrote in message
news:cmoi57$8f4$1@dotnet.itags.org.ngspool-d02.news.aol.com...
> "Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
> news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
>> Why take ticks (long) and cast as a string only to cast it back to an
>> Integer?
>> Why take only the right 8 chars and not the whole value?
>>
>> Dim myRandom As New Random(CType(Now.Ticks, Integer))
>>
>> dim theNumber as Integer = myRandom.Next
>>
>> >>
>> > I don't know if this is best or not but I use (this is for a random
> number
>> > in string format) Also you can change the 8 to a higher number for a
>> > larger
>> > random number.
>>> > Dim strID as string = DateTime.Now.Ticks.tostring()
>> > Dim rdm1 as Random
>> > rdm1 = new Random(ctype(right(strID,8),int32))
>> > strUnique = rdm1.next().tostring()
>>>>
> Also, the help on Random says
> However, if your application runs on a fast computer the system clock
> might
> not have time to change between invocations of this constructor; the seed
> value might be the same for different instances of Random. In that case,
> apply an algorithm to differentiate the seed value in each invocation.
>
>
"Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
news:eFB4dldxEHA.1988@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> But casting to a string and taking the last 8 chars isn't going to change
> the seed value if ticks is the same for 2 calls.
> Also, by casting ticks to Integer (normally long), you are shrinking it
down
> to an acceptable seed value.
> "vMike" <MichZaelY.GeZorgeY@dotnet.itags.org.noZorY.geZwaYrrenY.com> wrote in message
> news:cmoi57$8f4$1@dotnet.itags.org.ngspool-d02.news.aol.com...
> > "Scott M." <s-mar@dotnet.itags.org.nospam.nospam> wrote in message
> > news:%23VCC7gcxEHA.1396@dotnet.itags.org.tk2msftngp13.phx.gbl...
> >> Why take ticks (long) and cast as a string only to cast it back to an
> >> Integer?
> >> Why take only the right 8 chars and not the whole value?
> >>
> >> Dim myRandom As New Random(CType(Now.Ticks, Integer))
> >>
> >> dim theNumber as Integer = myRandom.Next
> >>
> >> >>
You are right. After I posted it I realized it didn't make sense. I did have
trouble with random when using the full tick and that is why I changed it. I
see your point.
Saturday, March 24, 2012
The default page is only showing HTML when copied to Host.
Hi Guys,
I'm working on a little site for a friend (my first!) I've been viewing in browser and everything is going fine, but when I copy the site to the hoster for further development all I'm seeing is html. I'm usingwww.streamline.com as the host, I have all the settings correct (I think), and I have set the webconfig file debug to false.
So, what am I doing wrong.
below is the code from the masterpage. (yes, I'm sure it's messy, but I haven't done the css yet).
<%@dotnet.itags.org. Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body bgcolor="#bdd8ea"> <form id="form1" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 60px; width: 850px; position: absolute; top: 13px; height: 370px;"> <tr> <td align="left" style="background-color: #ffffff; width: 850px; height: 3px;" valign="top"> <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center"> <span style="font-size: 24pt; color: #3300ff; font-family: Arial;"></span> </p> <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center"> </p> <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center"> </p> </td> </tr> <tr> <td align="left" style="background-color: #ffffff; width: 850px; height: 31px;" valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 1px; width: 99.5%; position: absolute; top: 137px"> <tr> <td align="left" style="width: 109px; background-color: #099ccf; height: 30px;" valign="bottom"> </td> <td align="left" style="background-color: #099ccf; height: 30px; font-weight: bold; font-size: 15pt; color: #ffffff; font-family: 'Microsoft Sans Serif'; vertical-align: middle; width: 554px; text-align: left;" valign="bottom"> <asp:Literal ID="Literal1" runat="server"></asp:Literal></td> <td align="left" style="background-color: #099ccf; height: 30px;" valign="bottom"> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 101; left: 0px; width: 100%; position: absolute; top: 168px; border-left-width: thin; border-left-color: #ffffff;"> <tr> <td align="left" style="border-top: #099ccf 2px solid; width: 3px; height: 288px; background-color: #ffffff" valign="top"> </td> <td align="left" style="border-top: #099ccf 2px solid; width: 122px; height: 288px; background-color: #ffffff; text-align: right;" valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 3px; width: 100%; position: absolute; top: 5px; height: 189px;"> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="default.aspx" onmouseover="document.images.pic1.src='Images/Home_Over.gif'" onmouseout="document.images.pic1.src='Images/Home_Out.gif'"> <img src="Images/Home_Out.gif" name="pic1" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="Services.aspx" onmouseover="document.images.pic2.src='Images/Services_Over.gif'" onmouseout="document.images.pic2.src='Images/Services_Out.gif'"> <img src="Images/Services_Out.gif" name="pic2" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="CurrentProjects.aspx" onmouseover="document.images.pic3.src='Images/CurrentProjects_Over.gif'" onmouseout="document.images.pic3.src='Images/CurrentProjects_Out.gif'"> <img src="Images/CurrentProjects_Out.gif" name="pic3" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="FutureProjects.aspx" onmouseover="document.images.pic4.src='Images/FutureProjects_Over.gif'" onmouseout="document.images.pic4.src='Images/FutureProjects_Out.gif'"> <img src="Images/FutureProjects_Out.gif" name="pic4" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="Gallery.aspx" onmouseover="document.images.pic5.src='Images/Gallery_Over.gif'" onmouseout="document.images.pic5.src='Images/Gallery_Out.gif'"> <img src="Images/Gallery_Out.gif" name="pic5" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="Testimonials.aspx" onmouseover="document.images.pic6.src='Images/Testimonials_Over.gif'" onmouseout="document.images.pic6.src='Images/Testimonials_Out.gif'"> <img src="Images/Testimonials_Out.gif" name="pic6" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="UsefulLinks.aspx" onmouseover="document.images.pic7.src='Images/UsefulLinks_Over.gif'" onmouseout="document.images.pic7.src='Images/UsefulLinks_Out.gif'"> <img src="Images/UsefulLinks_Out.gif" name="pic7" border="0"></a> </td> </tr> <tr> <td align="center" style="background-color: #ffffff" valign="middle"> <a href="ContactUs.aspx" onmouseover="document.images.pic8.src='Images/ContactUs_Over.gif'" onmouseout="document.images.pic8.src='Images/ContactUs_Out.gif'"> <img src="Images/ContactUs_Out.gif" name="pic8" border="0"></a> </td> </tr> </table> </td> <td align="left" style="width: 10px; height: 288px; background-color: #ffffff; border-top: #099ccf 2px solid; border-left: #099ccf 1px solid;" valign="top"> </td> <td align="left" style="width: 473px; height: 288px; background-color: #ffffff; border-top: #099ccf 2px solid; font-size: 10pt; color: buttonshadow; font-family: 'Microsoft Sans Serif';" valign="top"> <br /> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </td> <td align="left" style="width: 10px; height: 288px; background-color: #ffffff; border-right: #099ccf 2px solid; border-top: #099ccf 2px solid;" valign="top"> </td> <td align="left" style="width: 155px; height: 288px; background-color: #ffffff" valign="top"> </td> </tr> <tr> <td align="left" style="width: 3px; height: 20px; background-color: #ffffff; border-top-width: 2px; border-top-color: #099ccf;" valign="top"> </td> <td align="left" style="width: 122px; height: 20px; background-color: #ffffff; text-align: right; border-top-width: 2px; border-top-color: #099ccf;" valign="top"> </td> <td align="left" style="width: 10px; height: 20px; background-color: #ffffff; border-top-width: 2px; border-top-color: #099ccf; border-left: #099ccf 1px solid;" valign="top"> </td> <td align="left" style="border-top-width: 2px; width: 473px; border-top-color: #099ccf; height: 20px; background-color: #ffffff" valign="top"> </td> <td align="left" style="border-right: #099ccf 2px solid; width: 10px; height: 20px; background-color: #ffffff; border-top-width: 2px; border-top-color: #099ccf;" valign="top"> </td> <td align="left" style="width: 155px; height: 20px; background-color: #ffffff" valign="top"> </td> </tr> <tr> <td align="left" height="3" style="width: 3px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 122px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 10px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 473px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 10px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 155px; background-color: #ffffff" valign="top"> </td> </tr> <tr> <td align="left" style="width: 3px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 122px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 10px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 473px; background-color: #bdd8ea; text-align: center;" valign="top"> <span style="color: dimgray"><span style="font-size: 8pt"><span style="font-family: Arial"><span style="color: dimgray; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-GB; mso-bidi-language: AR-SA"><strong style="vertical-align: middle">? </strong></span>T and S Wilson 2007/2008</span></span></span></td> <td align="left" style="width: 10px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 155px; background-color: #bdd8ea" valign="top"> </td> </tr> </table> </td> </tr> </table> </div> </form></body></html>
Most likely ASP.NET is not setup on the site. Check with the host to be sure the site is on an IIS server running the version of ASP.NET (2.0|3.5) that you have built the site with. Most likely they have not setup ASP.NET on the server.
Thanks. They only open 10am til 4pm gmt so I'll ask them tomorrow.
I don't think you host provides .Net, or if they do .. most probably not 2.0/3.5
Looks like Streamline is a merchant company, not a hosting company.
What is the difference, they offer hosting?
Yes, they charged me an extra 35 quid for the ASP.NET framework, still only 4.5 quid a month though, so not bad.
Ta!
Sorry for my ignorance, but what is a quid in relation to a pound? I know a pound is a little more than a US $ and a pence is similar to our penny.
'Quid' is slang for 1 pound sterling (roughly $2), and a penny is roughly 2 cents.
Everybody says quid, and it's easier on a computer in case the reader's browser doesn't support the Libre 'pound' symbol. For instance, in the british civil service, I believe it is common practice to use a small i instead of the pound symbol.
You learn something every day!
Cool! I was watching the office on BBC America last night and they were talking about Quid. The manager paid the secretary 100 quid to help him in a motivational speaking event.
The directive Page is unknown
I am learning ASP.NET
I downloaded source code fromwww.planet-source-code.com
but when I tried to load Default.aspx got this error:
The directive 'Page' is unknown
Here is the first line form my Default.aspx:
<%@dotnet.itags.org. Page language="c#" AutoEventWireup="false" CodeFile="Default.aspx.cs" Inherits="_Default" CodeBehind="Default.aspx.cs" %>
What's wrong with "Page" ?
what did you "load" it into ? the syntax looks rightTuesday, March 13, 2012
The language behind www.microsoft.com
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <form> in the body... Just tones of
JavaScript.
Anyone any idea what is the language behind it?BTW it is the same with MSN.com. It is even XHTML Strict, which is
strange for Microsoft...
On 20 Mar 2007 11:35:25 -0700, georgi.ivanov@.gmail.com wrote:
> The index http://www.microsoft.com/en/us/default.aspx has .aspx
> extension, but it does not look like ASP.NET webpage. It does not have
> __VIEWSTATE, it doesn't have <form> in the body... Just tones of
> JavaScript.
> Anyone any idea what is the language behind it?
The aspx extension does not necessarily mean asp.net. For all we know they
may be using ruby on rails but mapped the .aspx extension to ruby!!! :)
--
Bits.Bytes
http://bytes.thinkersroom.com
On Mar 20, 7:35 pm, "georgi.iva...@.gmail.com"
<georgi.iva...@.gmail.com> wrote:
> The indexhttp://www.microsoft.com/en/us/default.aspxhas .aspx
> extension, but it does not look like ASP.NET webpage. It does not have
> __VIEWSTATE, it doesn't have <form> in the body... Just tones of
> JavaScript.
> Anyone any idea what is the language behind it?
it's not a language, it's Microsoft Office SharePoint Server 2007
The language behind www.microsoft.com
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
Anyone any idea what is the language behind it?BTW it is the same with MSN.com. It is even XHTML Strict, which is
strange for Microsoft...
On 20 Mar 2007 11:35:25 -0700, georgi.ivanov@.gmail.com wrote:
Quote:
Originally Posted by
The index http://www.microsoft.com/en/us/default.aspx has .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
>
Anyone any idea what is the language behind it?
The aspx extension does not necessarily mean asp.net. For all we know they
may be using ruby on rails but mapped the .aspx extension to ruby!!! :)
--
Bits.Bytes
http://bytes.thinkersroom.com
On Mar 20, 7:35 pm, "georgi.iva...@.gmail.com"
<georgi.iva...@.gmail.comwrote:
Quote:
Originally Posted by
The indexhttp://www.microsoft.com/en/us/default.aspxhas .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
>
Anyone any idea what is the language behind it?
it's not a language, it's Microsoft Office SharePoint Server 2007