I work with server and client,
In the server which contains All operations (Insert, update, Delete)
I tried this code, to insert into table, but there's no effect, or even error!!
InformationSystemDSTableAdapters.StudentTableAdapter StTA = new InformationSystemDSTableAdapters.StudentTableAdapter();
StTA.InsertStudent(St.FirstName, St.LastName, St.BirthDate, St.Address, St.Gender);
I worked with dataset
So,
I desided to work with data base ahead
I added connection string to App.Config
<add name="InformationSystemDBCS" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\InformationSystemDB.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
Then I used this code to connect it:
string ConString = WebConfigurationManager.ConnectionStrings["InformationSystemDBCS"].ConnectionString;
But this error occur :
Error 15 Cannot apply indexing with [] to an expression of type 'System.Configuration.ConnectionStringSettingsCollection' E:\SVU\MWS\04 ADP_F14_Mohmad Aljinidi\ADPProject\InformationSystem\InformationSystem\RemoteInformationSystem\MyInformationSystem.cs 38 32 RemoteInformationSystem