I want to create a web form which display a list of records from a database. I would like these records to display in a control (on the left of the page) which allows selected records to be dragged to a similar control on the right of the page.
What is the best way to achieve this using ASP.NET web forms and C#?
I have a relatively complex dataset (numerous tables, some with multiple records) generated from reading in an XML file. I need to connect said dataset fields to an ASP form. At the moment I'm assigning them manually, like so in the pageload:
I did some looking into binding the textboxes (and dropdownlists, and checkboxes, and and and...) directly, but it seemed to be too many formats to use.
So this works fine, but as the number of fields increases, those load and unload lists are going to get unwieldy.
I have a datagrid control which is bound to a table which containing more than 1000 records. And i want to show only 25 records once a time. I have used paging in datagrid. But each time the next page index is set, query is fired again. This takes lots of time. So what is the easiest way to bound data in this case to improve performance.
my problem is that i have a gridview that fetch the data from database .I added the linkbutton on gridview that redirect to next page but cant working becouse at run time i add a bound field on gridview to calculate the time. source code
I've got a gridview with three fields, the last of which is a template field with an imagebutton in.
The first field is a Date, and the second is a time field (it is however just varchar field as it may differ and will not be programmatically used).
I want the following to happen if I click on the imagebutton (reserve):
Four other fields must be inserted into the record.
Is the best way to launch a detailsview where the row.imagebutton@=ID and just edit the fields like that or should I pass the two fields (and RecordID) along with the query string to a new page where the passed information can be in invisble textbowes and just have the user enter (UPDATE) the four outstanding fields? I feel like doing it this way?
can read on 1. setting up the onrowcommand code for the templatefield 2.
This should be simple as it is only one table with records that has to be partially inserted by an admin person (2 Fields) and then completed by a web user (4 fields).
I am tryin to get records where certain fields are empty, but the following sql does not give me correct result.
SELECT [specimen Type], [Year], [Lab Number] From [PET Fish] where ltrim(rtrim([Diagnosis])) = '' or ltrim(rtrim([Results])) = '' or ltrim(rtrim([Sign out Date])) = ''
It should return all records, but it returns none.
I have an gridview consisting pager Templet. In pager templet, add first, previous,next and last Buttons to control records. PageSize is 3. First I am binding first 3 records from the list (Consisting 9 records) to the GridView.
My question is:
<1> Is it possible to bind the next 3 records(record4, record5,record6) to GridView when click on next Button?
<2> Similally, Is it possible to bind records for other buttons?
I am doing a online web application whereby user is able to enter in new template as well as search for template. The Add template is located outside the grid view and if user clicks on the button, it will load the grid view that is populated with data as there is a row of empty fields at the bottom. However when I click on the Add Template button, the grid view does not appear.
This is my business logic that I used it to search for records as well to click on the Add Template button to add in new records:
I have a stored procedure named spGetCustomerByCustID that returns all of the fields for a customer whose CustID matches the parameter. I'm using this to populate a drop down with the last names of the customers.
I want the drop down list to be populated with a concatenation of the LastName and the FirstName in that order with a comma and space separating them. So it would be like "Smith, John". It should be easy since my procedure is returning both values. I don't understand how to do this though. I'm not sure if it should be done with the DataTextField or the SelectedValue.
I am re-writing Access applications to ASP.net using VB. On one Access application I have a combo box that is capable of displaying an entire record (3 fields) from a table on each row of the combo box. When that record on the combo box is selected, each of these 3 fields updates 3 separate fields on another table. This is an easy process to do in Access, but I cannot seem to find a way to do this in ASP.net using the drop down list. Can a drop down list display multiple fields or an entire record or is the drop down list limited to a single field per row?
I am building a retail shopping website and want multiple db records per row - e.g. 2 records per row side by side. Each record will have an image, a couple of labels from the database to state Item title / name, description etc and I need to add a textbox for the quantity. In clothing section a radio button for size and another textbox for item colour. I will then add a button (any button) to gather the info (recordID and textbox input) and take me to the shopping cart.
Problem: In ListView I get the multiple records but can't get the data from the textboxes: In Gridview I can get the textbox data but can't get multipe records per row.Which grid should I use to get both of these features working?
I have a function or binding grid where i pass the flag for query to be displayed for page load i have below query
if (flag=="pageload){sql= "select "; sql= sql * " from (select top 50 * " from "; sql= sql+ "(select top 50 * from EMPLOYEE order by NAME )"; sql= sql+ " as T1 order by T1.NAME DESC) as T2 order by NAME ASC "; } else if flag=="filteration select * from EMPLOYEE
In the above query i get 50 records per page & the next prev navigation works fine but when i filter out the records i cant use the above query to get the filtered records as I need to filter from the whole recordset say I have total 1000 records after filtering i get 500 records after filtration i am not able to navigate across the records correctly...
I need to export a list of records in the following format using itextsharp.
I expect the following format to export to pdf.
Resource History -> This should be the heading Name : xxx Age :27 Designation : ASE Technology : .Net ......etc.
I have the entire details of the resource in a datatable and the problem is i have to export entire resource details in the pdf in the format i mentioned above.
In my web application, their is a drop down list item that contains arround 5000 items, and becuase of this the viewstate grows upto 160 to 180 kb and my sever reponses a viewstate error...
I have a two Grid where I have to display some records from the table. The table consists of employee names ,manager names and their comments. Now on the first gird I am fetching data of employee names. Now on the second grid I have to display data of manager names and their comments. The data is on the same table. On show button of the first grid it shows all the employees. then on AdvWebGrid.ClickLink or any selected user on the first grid , i have to display the manager names and their comments on the second grid. How can I do that ?
How would I format the template fields to be arranged on the screen different other than side by side? I suggested we use a repeater but they want to use the gridview. I need to format is where I can have one field at the top, another under it and then a description field under it.