473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SqlDataSource - CRUD options grayed out

Hello all,

Using Net 2 0 and VS 2005 and MSSQL 2000...

I am a newbie to ASP. I am trying to created a screen to manipulate a
table - CRUD commands.

The problem is the checkbox to autogenerate the CRUD commands is grayed out.
- Drop SqlDataSource on design
- CreateNewConnection
- Login w/Windows authentication, test connection ok.
- Select table. Select all fields '*'.
- Select Advanced tab - both the 'Generate Insert, Update, Delete' and
'Use Optiomistic Concurency' buttons are grayed out.

I have tried saving select and reloading solution. No good.
I tried using 'sa' as the user. No good.
I double checked that the table in SS had permission to modify.

I tested with Northwind db and it works. crap!

Anyone have any ideas.

Many thanks,
bruce

Sep 18 '07 #1
1 3674
Found my problem - no primary key on the table.

Thx.

"nospam" <no@spam.orgwrote in message
news:HqSHi.12720$mk2.11585@trnddc07...
Hello all,

Using Net 2 0 and VS 2005 and MSSQL 2000...

I am a newbie to ASP. I am trying to created a screen to manipulate a
table - CRUD commands.

The problem is the checkbox to autogenerate the CRUD commands is grayed
out.
- Drop SqlDataSource on design
- CreateNewConnection
- Login w/Windows authentication, test connection ok.
- Select table. Select all fields '*'.
- Select Advanced tab - both the 'Generate Insert, Update, Delete' and
'Use Optiomistic Concurency' buttons are grayed out.

I have tried saving select and reloading solution. No good.
I tried using 'sa' as the user. No good.
I double checked that the table in SS had permission to modify.

I tested with Northwind db and it works. crap!

Anyone have any ideas.

Many thanks,
bruce

Sep 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jesse Liberty | last post by:
I created a new database (tried both in 2005 and in SQL 2000) and then created a SqlDataSource control in an asp.net application. Clicked on the smart tag and whose configure data source. When I...
0
by: Sean | last post by:
Using SqlDataSource controller with sprocs and its been working fairly well. I changed a table by removing a foreign key, removing 2 columns and adding 3. I rewrote the update sproc and works fine...
2
by: phil | last post by:
I have an ASP.NET application with an SQLdataSource and a Gridview Everything works very well except I have a 'Button' that goes off and changes some of the record data back in the underlying...
7
by: gtrDayve | last post by:
Recently I ran all my Windows Updates which included many for Visual Studio 2005, & now when I open VS05 (using ASP.NET, VB.NET), all my toolbox options are grayed out except for the Data options;...
2
by: Joe Kovac | last post by:
Hi! The informations of our customers are saved in two tables: Customer: ID, CustomerNumber, ... + Person_ID Person: ID, Name, ... I want to have an editable GridView displaying all the...
11
by: walterbyrd | last post by:
With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax and non-Ajax solutions abound. With Python, finding such library, or apps. seems to be much more difficult to find. I...
0
by: =?Utf-8?B?X3ByZWZpeA==?= | last post by:
Hello All, I have written a page with a sqlserverdatasource control and a formview web control. I want to use stored procedures to perform CRUD operations. Formview textboxes bind to table...
1
by: Lars | last post by:
Hi I have another problem as well. For some reason the Configuration of the SQLSataSource doesn't allow me to select the commands Insert, Update and Delete. They are grayed. HOwever I seam to be...
1
by: ken | last post by:
Hi All, I try to using the dotnet control instead of code behind to create a quick solution (ASP.NET with VB.NET) by using the SqlDataSource and GridView control (with SelectCommand,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.