borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (ASPNET User)Next Topic (basic dreamweaver MX & ASP.net) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : New to .NET got some ?s
Poster Message
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488

icon New to .NET got some ?s

Hey all...I am just getting acquainted with .NET and I am putting a few ASP.NET pages together and having a little difficulty...got some general ?'s for y'all...

I starting out using the ASP.NET Web Matrix to write my pages, which I can use easily and had no problems...then I downloaded and tried the "Visual Web Developer 2005 Express Edition Beta" from MS and immediately got errors on the page (something about codebehind I think)...so I decided to try VS.NET (VB.NET) and opened my page I wrote in that and a few things happened...
1) it didnt like that I was working off a mapped network drive...it wants to save everything to http://andreavb.ipowermysql.com/webapp...is there a way to work off a mapped network drive (to my web server)?
2) VS.NET inserted code into the @PAGE header that gave me a error..."Inherits="xxx._default"" the error says..." Parser Error Message: Could not load type 'xxx._default'."...what gives?
3) I can't add Web Controls (<asp: controls) to my page in HTML/code view only Design mode...why not?
4) My pages as is only do one thing (so far) and that is a simple user login. Being used to (asp 3.0) Session() I am finding the .NET changes a little confusing...but I'm working through it...I am using a simple login script which sends me to "default.aspx" (my default site page) after a successful login...how do I change/set this? I could probably use a good example of a login script if someone has it...

What IDE do y'all recommend I use (or is best to use) to build ASP.NET sites?



____________________________
Eggheads unite! You have nothing to lose but your yolks.

18-04-2005 at 05:17 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: New to .NET got some ?s

Hi Bean,
First I had better point out that I am also quite new to ASP.NET, so take my advice as you wish, based upon that.

I use Visual Studio .NET 2003 Pro  as my IDE and it works great for me. I did have a bit of a dabble with Web Matrix so I can understand your confusion, as that does not support the concept of "Code Behind". I quite like this idea as it means you have got your VB in a seperate "module" in the IDE which I find easier to work with. (suits my simple mind!)

Why the problem with developing to andreavb.ipowermysql.com? Do all the work on your machine then just copy the aspx files and the built dll onto the server site to test it there. I THINK that you can develop on a remote server but you need to specify it when you first start the project.
You can only add asp Web Controls to a "Web Form" (aspx) page - not to an standard html page.
For User Logon you can create a simple aspx WebForm with a couple of TextBox controls and a button. In the code behind for the button Click put the code for the database connection and validating the user input. You set the startup page (User Logon) in the Project Properties, then transfer to another page after you have validated the logon is as easy as --
Server.Transfer("NextPageName")

I hope that helps a bit.




____________________________
multi-tasking - the ability to hang more than one app. at the same time.

19-04-2005 at 03:25 PM
View Profile Send Email to User Show All Posts | Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon Re: New to .NET got some ?s

Thx M8 yeah that helps me some...

I have ditched ASP.NET Web matrix and I have started my project from scratch in VB.NET and it makes more sense now.

I have also (kind of) figured a way to develop to andreavb.ipowermysql.com by using the Project->Copy function to move it to the server. I have an issue though I am not sure hwo this happened but my development computer has .NET Framework 2 but my server has .NET 1.1. Will this cause problems? (perhaps related to below ODBC issue...?)

I think I have got my Authenitaction figured out after looking over many examples. Thx!

I am having one problem now where I am connecting to an ODBC compliant database (it comes with its own driver) but .NET for some reason (tell me WHY!) does not intrinsically support an ODBC connection. So I downloaded and installed an add-on from MS for ODBC called "ODBC .NET Data Provider" and I get an error from my driver that the commands are not supported (so i am thinking that my databases ODBC driver doesn't like the new .NET thing). But WORSE than that now when I try to run my old ASP 3.0 pages which connect to the same database I get a BLUE SCREEN STOP ERROR! AAAARRRGGGHHHHH!!!! I uninstalled the ODBC .NET Data Provider add-on and still get the blue screen...

not good...

I am using Win 2000 Server and .NET Framework 1.1 on the server

    

____________________________
Eggheads unite! You have nothing to lose but your yolks.

19-04-2005 at 09:20 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : ASP.Net : New to .NET got some ?s
Previous Topic (ASPNET User)Next Topic (basic dreamweaver MX & ASP.net) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder