Tuesday, July 28, 2009

ASP.Net 2.0 Starter kits how do I load it?

Starter Kits are here:


http://msdn.microsoft.com/vstudio/expres...





I ran the installer and it placed a zip file here:


C:\Documents and Settings\Administrator\My Documents\visual studio 2005\Templates\ProjectTemplates\Visual Web Developer\VisualBasic\





so I unzip it.. and now how do I load the template in VS 2005?

ASP.Net 2.0 Starter kits how do I load it?
open the folder and look for a file with the extension .sln


double-click the .sln file and it will open in visual studio


Monday, July 27, 2009

USER LOGIN function in VB.NET (Code Syntax?)?

Hi all, I need help here =/





I need to develop a web based application based on:


- Microsoft's ASP.NET 2.0


- SQL Server 2005


- Programming language is VB.Net








Programs I used are:


- Visual Web Developer 2005 Express Edition


- Microsoft SQL Server Management Studio








Currently I need to do the LOGIN FUNCTION for the user but im not sure how to start. I studied C# in school but my internship company (currently) required me to code in VB.Net and for that I find it very confusing.








Description of what I have:


The main page has a UserID and Password.


- 2 textboxes (and 2 Required Field Validator)


- 1 Login button


- 1 label for Login Error (A login message will be shown if user failed to log in)


- Forget Password Link








The database has a table named User:


- Fields are UserID, Password, .............








*Note* User do not have to register. There is no registration form.








I would like to know how the code syntax is like in VB.NET?





Thanks!

USER LOGIN function in VB.NET (Code Syntax?)?
IMHO, your C# background is awesome and you shouldn't use that as an excuse now. You can do it. Take heart that VB.NET and Visual C#.NET are not really worlds apart since they share the same Base Class Library. Believe it or not, it will be easier for you to learn VB.NET with your C# background than it is for most VB6 developers to transition to VB.NET!





Here's an excellent .NET developers' website that may have some clues for you: http://www.codeproject.com/info/search.a...


Having said that, most of those articles deal with complex forms authentication and role-based security, which is probably beyond what you need. You simply need to validate the user credentials against the db and then allow access (redirect, most likely) to other pages or not.





Let me ask you this: Do you have a good idea how you'd accomplish this in C#? If so, you may want to write out and post some C# pseudocode snippets and see if people can help you translate it to VB.NET. If nothing else, it will help you organize your thoughts.


How to access IIS's aspnet_regiis utility?

I just installed IIS 5.0 and want to use the aspnet_regiis.exe command utility to register ASP.Net file mappings with IIS.





According to the asp.net book I have, the directory of the utility is:


C:\Program Files\Microsoft.NET\Framework\[Version]\... -i





However, when I checked the directory, there is no Framework folder inside the Microsoft.NET folder.





I have installed MS Visual Studio 2005 before installing IIS. Is there a way to access the utility?

How to access IIS's aspnet_regiis utility?
This is a command prompt utility. To run it go to:


Programs %26gt; Visual Studio 2005 %26gt; Visual Studio tools %26gt; Visual Studio 2005 command prompt





type: aspnet_regiis





if you need to supply special arguments to it, check online help.





Hope this helps.
Reply:The above answer is right on, but your book is incorrect on the location of aspnet_regiis.exe. It can be found here:





C:\WINDOWS\Microsoft.NET\Framework\%26lt;fr... version here%26gt;\aspnet_regiis.exe

quince

How to include windows.h correctly?

I am using VC++ 2005 standard edition and tried using #include %26lt;windows.h%26gt;


in my project but there are a list of errors with the description:


"error C2872: 'IUnknown' : ambiguous symbol C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\unknwn.h "





I found that the windows.h file is in the C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK directory. The project has also included the $(VCInstallDir)\PlatformSDK\lib, \include and \bin lines in the project options window.





How to include windows.h correctly?

How to include windows.h correctly?
Is the program failing on the include? Did you try a simple console program, that does nothing but include windows.h? There is nothing more to it than #include %26lt;windows.h%26gt; and then linking the appropriate libraries.
Reply:Try #include "windows.h"?


Which programming language should I learn if I want to try to make a basic A.I. program?

I've had experience in Visual Basic 6 and HTML but I've recently had some ideas about making a program with some basic A.I. (i.e. talking to it and it talks back). I've heard about the various other Visual languages that Microsoft have to offer (such as Visual C#, V#, C++ ect). I have Visual Studio 6 to hand if it's any help (although with all the new versions they've released like .net and 2005, I'm not sure if 6 is a bit outdated by now). Can anyone give some ideas please?

Which programming language should I learn if I want to try to make a basic A.I. program?
there has been alot of work done in A.I. in LISP, but outside of AI the language doesn't see much use. For versatility, some version of C++ would probably be the best. For ease of use, I understand that python is a pretty good choice at this point, but I don't have any personal experience with it.





If your planning on doing such a program over the web, PHP/MySQL would be a good choice, and it's free as well.
Reply:Why not look at Java. It is free, and universally available.
Reply:PROLOG is the programming language for designing Artificial Intelligence
Reply:I would recommend c++, but I am sure you could do it in just about any language you really wanted to!!!
Reply:LISP is a true AI language... But it all depends on the programmer... you can use VB to program an AI agent... just design the software on paper and proceed with any language of choice.... Good Luck!


Rescue Pets Online HELP!!!?

when ever i try to register it gives me this ....








Server Error in '/' Application.


--------------------------------------...





Index was outside the bounds of the array.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.





Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.





Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.





Stack Trace:








[IndexOutOfRangeException: Index was outside the bounds of the array.]


System.Data.RecordManager.NewRecordBase(... +1694516


System.Data.DataTable.NewRecord(Int32 sourceRecord) +21


System.Data.DataRow.BeginEditInternal() +82


System.Data.DataRow.set_Item(DataColumn column, Object value) +138


RegistrationAndLogin.DataSets.CountriesR... value) in C:\Visual Studio 2005\epets\RegistrationAndLogin\DataSets...


ChildRegistration.OnLoad(EventArgs e) +1879


System.Web.UI.Control.LoadRecursive() +47


System.Web.UI.Page.ProcessRequestMain(Bo... includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061














--------------------------------------...


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

Rescue Pets Online HELP!!!?
to be frankly honest, im not fluent in computer language, but sometimes websites run into stupid problems, so your best bet is to try agian later. If theres any more problems, call a service provider, or the company.


Exception when I run a program developed with C# .net 2.0?

I used visual studio 2005 to developed an application. it was working well. recenty i used "Computerinfo" class of "Microsoft.VisualBasic.Devices" namespace. for which I had to add a visual basic dll as reference. But my problem is when I run the program from Visual Studio 2005 IDE It works fine. but after publishing It throws an exception with 'detail', 'quit' and 'continue' button.





************** Exception Text **************


System.Management.ManagementException: Provider load failure


at System.Management.ManagementException.Th... errorCode)


at System.Management.ManagementObjectCollec...


at System.Management.ManagementObjectCollec...


at Microsoft.VisualBasic.Devices.ComputerIn...


at Microsoft.VisualBasic.Devices.ComputerIn...


at MountUp.MainUI.MainUI_Load(Object sender, EventArgs e)


at System.Windows.Forms.Form.OnLoad(.....

Exception when I run a program developed with C# .net 2.0?
I recall reading somewhere that not all of the "My" objects available to VB function properly in C#. Since most of the objects provided through the "My" keyword are available to C# through other means, it's probably better in the long run to spend a little more time to write the code for that directly. You didn't say exactly what property you were trying to access when the exception occurred, but from what I can see that's available through the ComputerInfo class you'll probably have to resort to pinvoke to get most of that info.

garden centre