How can i store several iphone contacts in sqlite3 table - ios-simulator

I developed an iPhone app which displays iPhone AddressBook contacts list.
I want to add extra fields to the selected contact.
Using AddressBook framework,it was not possible.So,i want to attach those values to the "contacts" table of my database.
How can i insert those existing contacts into sqlite table(contacts).
Please,help me with a sample code.
Thanks in Advance,
Ramya.

Related

Best User Interface way to update an employees Sql table from an ASP.net web application

I would like the communities opinion on the best approach to update a table from an asp.net web application.
I have an Employees table in SQL and I want to create a webform page to Insert, Update and Delete the employees from the employees table.
Not looking for code but for ideas/examples on the User Interface for this webform.
Like have a webform split into two sections one list all the employees in the table. The other sections has textboxes that represent all the fields for the employee table. When you click on one of the employees in the list all their info appear in all the textboxes on the other section.
To insert a new employee you would fill in all the textboxes then click the enter button to save the employee to the table. and so on
Would like the community to show me other better... more exciting...way to do this.
Thank you
Check out jTable - a jquery plugin to perform ajax based CRUD operations.

how can show all table in db in sql dataSource in asp.net

I work asp.net and use "aspnet_regsql" for manage user and role .. but i have a problem with work 'data source'.
in 'data source' only show views in database and all table hidden.
I want to know is how the table will be displayed in the list.
please see 2 image in comment.
all table and data source configuration
All tables in your database are asp.net created tables, they don't show up in the list of available tables, try adding your own table to the database and see if it shows up there.

Web-based configurable DB using Microsoft products

I'm looking for a method or a platform that I can build on that would allow for the configuration of a dynamic DB from web-based configuration pages rather than having to hard code the DB tables in the back end. I offer an example:
I have an asp.net app with a DB. In that DB I want to put a table that tracks the following attributes:
Field1 = 80 char field
Field2 = date field
Field3 = Text area
Currently I have to manually create a new table directly in my SQL DB with 4 columns: Autonumber ID field, Char field, Date Field, Long Text field.
I would like to have a backend web page in my asp.net app where I could do the following through .Net web pages alone without having to touch the DB directly:
Create a table called TABLE1 with the Char field, the Date field, and the Text field (the ID field would be created automatically)
Add fields to this table at any time through the back end .Net web pages.
Add relationships between fields/tables.
I'd prefer to use a Microsoft product/functionality to allow for this dynamic DB creation and administration as it would allow me to give more power to my users and mean that I wouldn't have to hard code everything directly in the DB. I know this is possible because I can see it being used by large companies like Salesforce.com. Any direction on books, products/platforms or techniques on how this can be accomplished on a smaller scale?

Advanced editing, insert, delete with datagridview ASP.NET Web Forms

I am moving from windows forms to ASP.NET Web Forms and I run into troubles. I am trying to insert, delete, edit and update. Bellow are two table that i have.
Person table - PersonID, Person
Company table - CompanyID, Company, PersonID
How to use the datagrid properly so that instead of PersonID I use Person field in a dropdown list so that the user can choose a value from and at the same time I can do insert, delete, edit, update.
I hope you get my point here and will help me in a way. Thanks
This can be done easily.
You need to attach a datasource of Company table with the grid, by default it will show person Id. In order to connect it to the person table, change the column of person ID to Template. In the Edit Template import a dropdown and attach another Datasource of Person Table to it. Select Value and Key accordingly.
For a basic Idea have a look at: http://odetocode.com/articles/231.aspx

spreadsheet like asp.net and dynamic view

I want to create an application that users can select fields from database table and create a spreadsheet by those data. Is any control or sample to implement it?
Getting the schema of table varies from database to database.
No matter which database you use, it would be easy to get the list of columns and let the user select which columns to show.
To create a speardsheet you should look at these controls ASP.NET Real World Controls
These custom controls enable you to create excel like grids in asp.net. It is open source allowing you to extend them as may be needed by your project.

Resources