im having difficulty with a project I'm working on. The project has many data tables however it's three that im concerned with. The tables are applicants, position applied for and positions. In one part of the project I have created a formview which inserts users to our applicants table. This is working fine however now I want the option within the formview for users to be able to select from a checkbox list the positions that they are applying for. I want to pull data from the positions table and the current formview and insert that information to the position applied for table. The primary key for "Applicants" is CSVC, PK for "Positions" Table is PositionID, Key for "Position applied for" is CSVC and PositionID.
I am using Asp.net grid view control and Add Check box as template column All, Create,Edit and Delete, Page name(Data bound column) for given page access permission to the user. User can Create, Edit and Delete the page content based on permission.
If I Select/UnSelect All check box Select/UnSelect the other check boxes Create,Edit and Delete on selected row in the grid.
I am using gridview. I Added checkboc under itemtemplate.My page works fine. i have set my page according 508 standards. It looks for associated control id for every textbox, check box..etc.
When i check my page by 508 standards its giving form lable is missing for gridview item tamplate checkbox. i tried adding lable inside item tamplate and i set the check box id as Associated control id for the label. eventhough its not going off that error. After setting some text my errors are resolved.
but if add any text item template checkbox alignment is missing. i cann't hidden the lable. If i hidden the label it again show up Form label is missing. how can i add lable without effecting to GV item template checkbox alignment.
have situation here. On checking checked checkbox inside template field on grid view. This my codethis code suppose to be update into mysql when checkbox of each row being checked. Mean only update database which row has being checked, other wise the data inside database not being updated.What happen now once button being click, code above will be executed, but all the data being update not considering the checked checkbox only.
I have string taskID[texbox],string projectID[texbox],,string description[texbox],,int totalHrs[texbox],,int billableYN[CheckBox],int activeYN[CheckBox]
outside the grid view .
I have gridview with edit button with bound columns taskID,projectID,description,totalHrs,billableYN,activeYN.
I want when i click on edit button this taskID,projectID,description,totalHrs,billableYN,activeYN should populate outside the grid view on string taskID[texbox],string projectID[texbox],,string description[texbox],,int totalHrs[texbox],,int billableYN[CheckBox],int activeYN[CheckBox]
I am trying to use this query in a form view "Select * from actions where emp_id = " & session("emp_id") for the select command. This is the format I am used to in classic asp. How can I acheive the same results in asp.net.
I am using a "Detail View" to edit the data in my "Customer" table. The fields are "CompanyName", "ContactPerson", "StreetAddress", and "City". If I type data into the first field ("CompanyName") and then press the "tab" key, control moves to the second field "ContactPerson". However, if I type data into the first field ("CompanyName") and then press the "Enter" key, instead of control moving to the second field ("ContactPerson") the program closes the form.
Is there someway that I can control the action of the "Enter" key so that this will not happen?
Also, is there any way that I can have control move from the first field ("CompanyName") to a field other than the seconc field ("ContactPerson") if the content of the "CompanyName" field contains the value "Internal"?
I have a form that shows simple table and let the user select a row. when user select a row the record shows in a formview below the gridview. After I update the formview changes take place in database but shows in gridview ONLY the next time I load the page.
I have a database with a 1 to many relationship in SQL Server 2008. I have created a formview in VS2008 to insert records into the child table. However I can't set the foreign key to automatically insert this value. If I manually type in a value the insert works but I need it to pick up the fk ID automatically from the master table. How can I do this?
The master table: tblTopic has ID int auto increment primary key and the child table has ID int auto increment primary key and TopicID int allow duplicates no nulls, foreign key. I have set updates to cascade in the relationship.
My insert statement is INSERT INTO tblTopic (TopicID, Comment, SubmittedBy) VALUES (@TopicID, @Comment,@SubmittedBy). The TopicID keeps throwing the error, this is the foreign key.
This is the first time I have tried to do this, so apologies if it's really obvious but I'm on a bit of learning curve.
I have a formview that runs of an SQLDS, very simple stuff. Inside that form i have various fields, one of them is a credit field, one of them is a debit field. Now i have put a radio button list with two radio buttons (credit and debit). What i want to do is when the "credit" radio button is enabled i want the "credit" text box to be enabled and visa versa.
I know how to reference an object inside a formview, but i am confused, do i reference the radio button list and then the list items inside it or?