|
Although I'm probably a wee bit of a fanboy in the direction of PHP/MySQL, I agree with djdan wholeheartedly on the whole 'stop living in the 90's with something that is no longer supported' sentiment. It's not a good path to follow, and will potentially cause more problems the longer you try to support it.
My only serious contribution would be to work on this project from a spare machine 'off the intranet' at the start - or at least not easily accessible - and for simplicities sake install a copy of WAMP (Windows Apache MySQL PHP - or the Linux/Mac equivalents) on it, swapping MSSQL and ASP.NET in place of MySQL and PHP. This gives you a single independently running development platform that uses what you know, is fairly painless to maintain, and is kept 'up-to-date' - at least more so than what you currently have to work with. Plus, it's free to download (well ok, minus the licenses for MSSQL/ASP.NET perhaps), and has a large infrastructure of community support.
|
|
|
|
|
Go ahead and use Server 2000 to make the boss happy. But then run WAMP (Windows, Apache, MySQL, PHP/Perl/Python) as your web server. [^]
Many more (or more reliable) tools/frameworks available if you run an Apache server.
Melting Away
www.deals-house.com
www.innovative--concepts.com
|
|
|
|
|
How much of a resource hog is IIS? Maybe I can steal a XP Pro machine... I think you can run IIS on that if I remember right.
|
|
|
|
|
If you really want to LEARN web development, stay away from ASP.NET WebForms, which is one great big abstraction on top of the Web.
I would definitely recommend using ASP.NET MVC. It doesn't hide anything, you'll be learning real web programming skills that can even transfer to other languages. I've been using it now for almost 2 years. Recently, I started picking up Ruby on Rails, and found that a lot of my experience transferred right over. Webforms experience doesn't transfer over to really anything. Then again, I've never been a 'drag-and-dropper', always a hand-coder.
That being said, you'll have to actually learn things like HTML, CSS, and Javascript, which can remain hidden from you with WebForms. They are available in WebForms, too, if you dig deep enough. But, if you really want to learn, then I believe MVC is the way to go.
It's the way things are going. In the short-term, WebForms is still the dominant framework, but MVC is building steam and will take over in the long-term.
We live in a world operated by science and technology. We have also arranged things so that almost no one understands science and technology. This is a prescription for disaster. We might get away with it for a while, but sooner or later this combustible mixture of ignorance and power is going to blow up in our faces.
--Carl Sagan
|
|
|
|
|
I once knew HTML, CSS and could get by with JavaScript but it's been way too long. Plus it looks like HTML 5 is out or on it's way so I'm sure that will be more to learn. Any ways I'm more like you and actually want to know what I'm doing vs the drag and drop method (of which I think is kinda good to get something working quick for a prototype, but nothing more than that).
I'm a big book kinda guy, so are there any good ones you can suggest to get me on my way. From the looks of it I'm going to be stuck using a Windows 2000 Server for at least a year or two so I'm not sure what that is going to limit me to. I was looking at VS 2005 last night and the web forms and it's not very intuitive anyways.
|
|
|
|
|
Either of these should help you.
ASP.NET 3.5 Unleashed[^]
Pro ASP.NET 3.5 in C# 2008[^]
Since you have VS2010 I wouldn't even consider using VS2005. Uninstall it completely, you don't even need it. I don't remember (and too lazy to look) if .NET 4.0 will install on Server 2000. If it does, use it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Looks like I'm currently stuck with .Net 2.0 with Server 2000, so I'll go with the ASP.Net 2.0 Unleashed book.
Thanks for all the help.
|
|
|
|
|
There's a new book out that I just got a week ago, and it's proving to be a good one. It's called ASP.NET Design Patterns[^].
It shows you how to structure a web application, and is applicable to WebForms and MVC. A lot of the information is actually language agnostic, and can be applied to other situations, too.
I'm currently in Chapter 5, but I like what I've read so far.
Another thing I recommend: a subscription to Safari Books Online. I've got it here at work, and it's great.
We live in a world operated by science and technology. We have also arranged things so that almost no one understands science and technology. This is a prescription for disaster. We might get away with it for a while, but sooner or later this combustible mixture of ignorance and power is going to blow up in our faces.
--Carl Sagan
|
|
|
|
|
Several years ago, circa 2005, I did a similar project for my company. It was also an on the side project. I had Windows 2003 and Sql 2005 Express to work with. It was a single page with web parts that could be loaded or unloaded based on your AD account.
I did look at DotNetNuke back then but decided it was overkill for what I wanted. It took me a couple weeks to get the main site up, including creating all the graphics (Not very good).
So, I said all that to say that, a couple of ASP.Net books and Google enabled me to learn and create the site in short order.
We are now running SharePoint 2007 and I was able to reuse some of the web parts in SharePoint.
So I'd stick with Asp.net and C#.
|
|
|
|
|
From the looks of it that is going to be the path I'm going to take. Maybe, there is a copy of 2003 kicking around, I still have to ask. But I'll be going with hopefully something with IIS and SQL Express.
Yeah I get to do the graphics and that too, thank god there is a lot of free stuff out there and now some decent sites to help with color choices.
|
|
|
|
|
Well I've gotten IIS running on my local XP PC. Probably about the same as running on Win 2000 Server, but at least it's something. Just wanted to thank everyone for their input, and now off to remembering all those things I've forgotten and learning new things.
|
|
|
|
|
hai
i have a problem in connecting sqlserver
my connection string is
con = New SqlConnection("Network Library =DBMSSOCN; server = 210.211.225.48; database = CarDb; user id = sas; password =poi098;timeout = 60")
but it is giving the following error
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
please help me
Thanks in advance
Vijay Kumar
|
|
|
|
|
Hi,
at first you should check your connection string (the 'network library'-key seems not necessary to me).
Have a look at
http://www.connectionstrings.com/sql-server-2005[^]
to verify.
If this does not work check if the sql server allows remote connection. To do this, connect to the server (RDP) and open the network configuration of the sql server. There you should specify the allowed protocols. Also open the server in the management view and check if the flag is set to allow remote connections.
For more details, have a look here:
http://support.microsoft.com/?scid=kb%3Ben-us%3B914277&x=12&y=4[^]
Regards
Sebastian
|
|
|
|
|
thanks for u r reply
but i m not using SQL server 2005
im using sql server 2000
and how should i configure -- allowed protocols and remote connection
|
|
|
|
|
|
even it not solved the problem
every thing is ok,
remote connection is also allowed
is there any thing else
|
|
|
|
|
Did you tried to use another connection string (without the network library)? Check if you can access the server from your client by using the management application of sql server.
|
|
|
|
|
have you allowed sql server to make remote connection?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
hi
thanks for u r reply
i allowed sqlserver to make remote connection
but i have a doubt
my server ip address is changed then
should i do any settings to sqlserver 2000 regarding this
ip address
How the new ip address will be connected to sqlserver 2000
|
|
|
|
|
just check your ports are open which it's accessing remotely
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hello,I have a case scenario and will appreciate if some one help me.
1) I have small Inn which has a series room and people. the owner need people from Korea insert their specific details.
I define the classes as below:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.ComponentModel;
namespace DuryHouse.Repository.BusinessLayer
{
public class Room
{
public int _id = -1;
public int _bed = -1;
public int _floor = -1;
public string _roomName = string.Empty;
public string _type = string.Empty;
[DataObjectFieldAttribute(true, true, false)]
public int Id
{
set { _id = value; }
get { return _id; }
}
public int Bed
{
set { _bed = value;
if (value > 10)
{ throw new ArgumentException(string.Format("Maximum bed is 10!!!")); }
}
get { return _bed; }
}
public int Floor
{
set { _floor = value; }
get { return _floor; }
}
public string RoomName
{
set { _roomName = value; }
get { return _roomName; }
}
public string Type
{
set { _type = value; }
get { return _typeass; }
}
public Room(int id, int bed, int floor, string roomName, string type)
{
this._id = id;
this._bed = bed;
this._floor = floor;
this._roomName = roomName;
this._type = type;
}
}
}
next class is for people
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.ComponentModel;
namespace DuryHouse.Repository.BusinessLayer
{
public class People
{
protected int _id = -1;
protected string _name = string.Empty;
protected string _passportNumber = string.Empty;
protected string _naionality = string.Empty;
[DataObjectFieldAttribute(true, true, false)]
public int Id
{
set { _id = value; }
get { return _id; }
}
public int Name
{
set { _name = value; }
get { return _name; }
}
public int PassportNumber
{
set { _passportNumber = value; }
get { return _passportNumber; }
}
public int Nationality
{
set { _naionality = value; }
get { return _naionality; }
}
public People(int id, string name, string passportNumber, string nationality)
{
this._id = id;
this._name = name;
this._passportNumber = passportNumber;
this._naionality = nationality;
}
public People()
{
}
}
}
then I have another class Korea which inherit from People
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace DuryHouse.Repository.BusinessLayer
{
public class Korea:People
{
public string _city = string.Empty;
public string _state = string.Empty;
public string _street = string.Empty;
public string _phone = string.Empty;
public string _mobile = string.Empty;
public string _email = string.Empty;
public string City
{
set { _city = value; }
get { return _city; }
}
public string State
{
set { _state = value; }
get { return _state; }
}
public string Street
{
set { _street = value; }
get { return _street; }
}
public string Phone
{
set { _phone = value; }
get { return _phone; }
}
public string Mobile
{
set { _mobile = value; }
get { return _mobile; }
}
public string Email
{
set { _email = value; }
get { return _email; }
}
public Korea(int id, string name, string passportNumber, string nationality
, string city, string state, string street, string phone, string mobile, string email) :
base(id, name, passportNumber, nationality)
{
this._city = city;
this._state = state;
this._street = street;
this._phone = phone;
this._mobile = mobile;
this._email = email;
}
}
}
because of I am practicing on inheritance just wondering to know am I in right track? do I get the meaning? by the way if you have any suggestion or idea regarding Inn please let me know.I know I should define another class checkInOut and transaction.
|
|
|
|
|
First, if you post is long- please say so in the Subject line(like mine), people will down vote you otherwise.
You seem to have grasped the basic idea of inheriting. You should also consider defining Interface s for your classes, and work with the interface rather than the concrete type.
Your class names are a little confusing (probably just a langauge or typo thing), but it is important for clarity to get these right. People only defines one person so call the class Person simlarly the class Korea should be Korean or KoreanPerson or similar.
Finally, I've a few sytanx suggestion, see the code below:
public class Person
{
public int Id { get; set; }
public int Name { get; set; }
public People(int id, string name, string passportNumber, string nationality)
{
Id = id;
Name = name;
}
public People()
{
Id = -1
}
}
|
|
|
|
|
thanks for you reply. Could you please explain a little more about this sentence.
You should also consider defining Interfaces for your classes, and work with the interface rather than the concrete type.
why do I have to use interface. please explain a bit more.
thx
|
|
|
|
|
An Interface just defines what Methods / Properties / Events etc must be publicly available, how to achieve it is the responsibility of the class. So the person Interface might look like:
public Interface IPerson
{
int Id { set; get; }
int Name { set; get; }
int PassportNumber { set; get; }
int Nationality { set; get; }
void SomeFictionalMethod();
}
Note that the Interface declares public members, so you don't (in fact can't) state the visibilty. You can Generate a Interface by right-clicking on the class name --> Reafactor --> Extract interface.
You don't have to use an Interface, but it is good practise. I can't think of a meaningful explanation for your example, so here's a simplified one. Let's say you have need to model modes of transport, that all expose two methods Go And Stop . A horse is a mode of transport, but so is a car, the implementation of these would be totally different so a common base class doesn't make sense. The solution that makes the most symantic sense is to create and IModeOfTransport interface and have both the Horse and Car implement it. Now let's suppose your Person object needs a ModeOfTransportProperty you can Declare it:
public class Person : IPerson
{
public IModeOfTransport {get; set;}
}
Now you can pass any object in the inherits from IModeOfTransport , even if they don't have the same base class, this help to decouple the code.
|
|
|
|
|
Dear All,
I have two web pages, say SourceWebPage and TargetWebPage, on the TargetWebpage I have a directive like:
<%@ PreviousPageType VirtualPath = "~/SourceWebPage.aspx" %>
These are the code behand on TargetWebPage Page_Load Event:
if (!Page.IsPostBack)
{
if (Page.PreviousPage != null && Page.PreviousPage.IsCrossPagePostBack)
{
DateTime reportDate = PreviousPage.DTReportDate;
string serialNo = PreviousPage.SerialNo;
}
else
{
LoadReportType();
odsSyncSummaryReport.FilterExpression = GetObjDSFillerExpression();
gvSyncSummaryReport.DataSourceID = "odsSyncSummaryReport";
gvSyncSummaryReport.DataBind();
}
}
else
{
odsSyncSummaryReport.FilterExpression = GetObjDSFillerExpression();
}
there is a link button on SourceWebPage like this: OnClick = "lbSerialNo_Click" PostBackUrl = "~/TargetWebPage.aspx".
Both pages are able to be accessed by click on the menu, when I go to SourceWebPage first and then click the link button, it posts back to the TargetWebPage and everything works fine. But the problem is when i go to the TargetWebPage first, it throws an exception.
I think i know the problem because the PreviousPage property (SourceWebPage) hasn't been loaded yet, therefor there is no way that the TargetWebPage to get the value from SourceWebPage. What i want to know in here is how do I know whether the TargetWebPage is posted from SourceWebPage or it is posted from Menu. This piece of code doesn't help me at all: if (Page.PreviousPage != null && Page.PreviousPage.IsCrossPagePostBack)
I was googling for hours but without any luck, can someone in here shed me a light?
Thanks
|
|
|
|
|