|
Actually Mazy, I am pretty happy with it so far, there are a lot of examples, just not quite sure why I can't get the above to work. I will figure it out eventually, hopefully sooner than later though.
Nick Parker
|
|
|
|
|
The Request.UserAgent and Request.UserHostAddress should work fine.
Try creating a file called "test.aspx", and paste in the following:
<script language="vb" runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Response.Write(Request.UserAgent & "<br />")
Response.Write(Request.UserHostAddress & "<br />")
End Sub
</script>
Load that page and see what happens. On my machine, the response is:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705)
127.0.0.1
|
|
|
|
|
Yeah, I actually got it last night, I was trying a little too damn hard thinking that I would need to do something like Response.Write(Request.ServerVariables("UserAgent")) when all I needed to do was drop the ServerVariables("") stuff. Thanks for the response.
Nick Parker
|
|
|
|
|
I have found a place on the internet that can offer you ASP.NET support for FREE!
Check this out: http://www.brinkster.com/registration/default.asp
If you look at "General Solution" you can create a FREE account with ASP.NET support!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I have brinkster and it is painfully slow. But if it works for you go for it.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Well... my forms authentication doesn't work!
I have the a can get to the protected page without logging in... wird... I think there is something in the Web.config file!
(I testing the same code that Jeff Prosise wrote in an article in MSDN Magazine, May 2002 Vol 17 No 5)
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I've had a Brinkster website and it wasn't too bad.
They do advertise it as more of a demo/prototype/test environment than a production site.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
SimonS wrote:
They do advertise it as more of a demo/prototype/test environment than a production site.
I guess that that would explain the performance issues.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Do they let you have access to stuff that I can currently only do by going to the IIS Admin Tool, i.e. set up error pages, etc.?
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Domenic [Geekn] wrote:
Do they let you have access to stuff that I can currently only do by going to the IIS Admin Tool, i.e. set up error pages, etc.?
If they do I never found it (I doubt they do)
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
My friend has a web server and want ASP.NET support to it. How to make the web server to support ASP.NET?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
What server software is it? If it is IIS (Internet Information Services), it comes with NT, 2000, and XP Pro. All he has to do is install the .NET runtime and it should install it. I am not sure if PWS will support ASP.NET. If it is non MS software chances are it won't work.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Do you know any place where ASP.NET is supported?
I mean, where can I put my ASP.NET site? Does XOOM or Tripod support ASP.NET?
Do you know any place that do support it!?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I haven't found free ASP.NET hosts yet, but if I find one I will let you know.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Aah!
Thank you very much! (but don't forget it now! )
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
but don't forget it now!
It is marked in my inbox
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Is there any configuration to use MSDE and IIS? I can access the database through Web Matrix but I cannot get it to access through a page on IIS.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Shouldn't have anything to do with IIS. If the connection string is setup properly in your code you should be able to connect to the database.
|
|
|
|
|
This is my connection string
SqlConnection myConnection = new SqlConnection("server=MATT\nsDB;database=NSUsers;Trusted_Connection=yes");
SqlCommand myCommand = new SqlCommand("select * from Test", myConnection);
myConnection.Open();
MATT is the computer name (I also tried the IP address in it's place)
nsDB is the named instance of the SQL server
and Test is the table name. When I try to open the connection I get
SQL Server does not exist or access denied.
It gives me this stack trace:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.SqlConnection.Open() +761
ASP.datacontrol_aspx.Page_Load(Object Src, EventArgs E) in c:\inetpub\wwwroot\dotnet\redo\user\datacontrol.aspx:14
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Try adding user id and password to the connection string. I believe the problem is the connection is trying to be made using the ASP.NET account and useless you've added it a DB user it can't connect.
|
|
|
|
|
Mark Nischalke wrote:
the connection is trying to be made using the ASP.NET account and useless you've added it a DB user it can't connect.
I'm not sure what you mean here
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
I have written some ASP.NET code that uses some TextBoxes and Buttons but I can't see them when I open my .aspx file in IE!!!
It seem like I don't have ASP.NET support, right?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
You need IIS with ASP.NET installed. If you don't have IIS, and using WebMatrix, it comes with a server that you should try out.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
Matt Newman wrote:
If you don't have IIS, and using WebMatrix, it comes with a server that you should try out.
WebMatrix? If it comes with VS.NET I think I have it... but if not,.... I don't have it!
I installed everything except from everything that had with VB.NET to do!
hm... if I install Microsoft Personal Web Server, do I get everything that I need to get my ASP.NET code to work?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
WebMatrix is not included with VS.NET. For lack of a better analogy it is FrontPage for ASP.NET.
Did you install the ASP.NET components on your webserver?
|
|
|
|