I need a sample which connects a control to database with Ajax and vb.code.Most of the examples are in C#.I need one Ajax script and the web service code has to be with visual basic.
Actually m developing a simple website, where I am using ASP.Net Login control and now I want to connect it the database where I am accepting somewhat same kinda information one and one of my field specifies the type of the role that particular person would be playing. So, how would i connect the authenticate through my database's table?
I have created a web application and an SQL database using Web Developer 2010 Express. I have SQL Server 2008 and SQL Server Management Studio Express. In order to deploy the database to my hosting space I need to create a .BAK file from my new database. I think I can do this from with the Management Studio, but can't figure out how to get it to connect to the database. I have used Management Studio before to retore another SQL database and the only connection I see when I open the Management Studio is the old connection to the old database. How do I connect to my new database?
and I'm trying to use that to submit to my database, but when I click on the submit button, no data is being inserted into my database, but I'm also not receiving any errors.
I moved to ASP.NET from PHP where the queries are run directly. So I always create Connection in the Page_Load Event, dispose it after I do all stuff needed, and access data with NpgsqlCommand. (Yes, I use Postgresql in my ASP.NET applications.)
After starting to learn ASP.NET MVC I was amazed how easy it is to access SQL with the LINQ to SQL thing. But... It works only with MS SQL. So my question is how to implement the same functionality in my applications? How to connect to databases easily?
I wrote my own wrapper classes for connecting to Postgresql. 1 class per a table.
This is a part of the Student class:
[Code]....
So as you see the problem here is that with every INSERT, DELETE, UPDATE request I'm using Connect() method which connects to the database. I didn't realize how stupid it was before I had to wait for 10 minutes to have 500 rows inserted, as there were 500 connections to the database.Using pooling while connecting does help, but still making the connection and making the server check the pool during every single query is stupid.So I decided to move Connection property to a static DB class, and it didn't work either, because it's a really bad idea to store such objects as connections in a static class.I really don't know what to do know. Yes, there's an option of manullay creating the connections in every Page_Load event and close them in the end like I'm doing it right now.
i would like to use asax to check my database for every 5 min. if let say the database detect high in threshold.. it will send a notification to administrator. Anyone have done this before mind to share some code?
I have already created the database for my website, however when i create the webforms such as a student sign up form i dont know how to connect the text boxes to the database to its relevant table, so data can be updated and deleted. I am aware of the grid view and form view tools but when using those tools I can't seem to move the labels and text boxes around the webpage for design purposes.
so this is my first Solution using the Entity Framework (EF). Here are my steps so far:
1) Created Database named: BSA with an owner of username/password (AspNetServicesUser/password) 2) Created Entity Data Model (EDM) in a separate project (contained within the same solution) 3) Created an ASP.NET Web Application with basic functionality (new project within the same solution) 4) Added Reference to the EDM in Web App and added Connection String to the EF 5) Decided I wanted ASP.NET Membership added to the Web App 6) Configured SQL Server for Application Services using aspnet_regsql.exe on BSA database
Now, I need to know:
a) How do I create the connectionString for the Web.config file in the WebApp?
Errors I receive:
I get this error using the ASP.NET Configuration Tool under the "Security" Tab:
Login failed for user 'AspNetServicesUser'.
I get this error using the ASP.NET Configuration Tool under the "Provider" Tab --> Select a single provider for all site management data --> Test
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
I've got a situation where it seems I am required to have an identity impersonate statement in my compiled web app, i.e. <identity impersonate="true" username = "mydomainmyusername" password ="xxx" /> The thing is, it is not required when running from Visual Studio and virtual web server, as everything works fine, but when I do not have the <identity> tag in the web.config file in my compiled web app, I get a connection error. Simply won't connnect to the database if the <identity> tag is not there. I'd rather just do away with this requirement, and have been looking through IIS for a solution, but can't seem to find any.
i red some stuff, and what i got is that mvs normally works not directly with MSSQL on pc but witht he one it creates within project.. hm.. like that, and you can not see the database created from the project in normal SQL server databases.
i want to connect Db2 database with my .net application.how to fetch data from my DB2 database through my Asp.net application then how to genrate crystal report through this data.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'Gullanian'.
I've created the database 'Scirra'. I've also attempted to add a login, but nothing seems to work. Logging into SQL management via Windows Authentication is the only way I can gain access to my DB's.
Ideally I just want to create a user, and that user having full control of DB. So I can run scripts etc.
Here's a few details:
Microsoft SQL Server Management Studio 10.50.1600.1 Microsoft Data Access Components (MDAC) 6.1.7600.16385 Microsoft MSXML 3.0 6.0 Microsoft Internet Explorer 8.0.7600.16385 Microsoft .NET Framework 2.0.50727.4952 Operating System 6.1.7600
Idk why it says v2 for asp.net, all my application pools are set to 4.0.
I was assigned a task on creating a web application that connects and display database information on a grid view. My supervisor suggested me to download .NET pet shop 4.0 to serve as a template for my project.As I only have limited basic knowledge on C# and HTML codings, the .NET pet shop 4.0 is too difficult and complex for me to understand. So I have a few questions:
Which functions are required to connect to the database? Which functions display information of the database? How do I change the categories of the .NET pet shop 4.0? If I want to add a grid view to display the records instead of listing informations of the products, where should I add the code and how will it roughly look like?
i want to creat gridview and connect it with the database.and add a text box and win i enter the id in that text box all the information about that id should be displayed in grid view.
Just beginning to set up and get into MVC and I have immediately run into a problem...
I opened a new MVC project in Visual Studio 2008 Pro, tried to run the basic template project, chose the logon/register page, enterered my details and got a runtime error message in AccountsModels.cs:
Unable to connect to SQL Server database Do I need to download a db from somewhere first, have I missed a step out the install ?