I' using ASP.net2.0 and SQL server2005.I have installed AJAX toolkit.
i want to make a search similar to google search ie retrieve from a database a list based on user typing characters and clicking search.
i have used a text box and AJAX autocomplete extender .i have made a connection to DB and able to make a list from a field. But when i select one list elment and click search button it doesn't go into the Search button on click event.Without using autocomplete i'm able retrieve records and display it on data grid view.Do i need to convert the list returned to an array.
I need to filter data based on a date range. My table has a field Process date. I need to filter the records and display those in the range FromDate to ToDate.
Here what i am trying to accomplish. I want to have a div or panel on the page and have some text on it. The div or panel must hava a specfied time limit and then disaaper from the page. Say i want this text to apper on 10Cotober 10.00 Â and disapper from the page on 11October 18.00.Â
if I google it I get things like "you could try..." or "that doesn't work if...", etc. and I want some tried and true way. So, have you written any age-calculation routines and found they actually work when put to the test (that would be, when they go live ) or simply found one on the Internet?
I tried googling "vbforums .net calculate age" and I got some VB6 code. I am thinking there might be something more sophisticated in .NET.
I tried searching "calculate age" in the advanced search here, and got hits like "calculate tax" and "calculate discount" so it's not recognizing my combined keyword string.
I have the following code that retrieves a bunch of records in a category, but I need it to retrieve them in a basic SQL way with a WHERE and ORDER BY.
var people = FnesseFitness.Categories.Include("People").Single(g => g.CategoryName == category
i have a link query that retrun all the records that have their status = 'completed' ordered by their ids, but i want to return only three records not all the records
i have a table for customer forecast with following fields.. customer, year, week, quantity. now i need to write the SP to retrive the records based on the from week,year and to week,year... like this... from 45th week of 2009 to 25th week of 2010. how can write the query...
how can we retrive records from sql-server between two dates. Dates are specied using DateTime datatype of C#. Also the stored date in sql is of Datetime type.
-7vf- I write a program by c# to check and retrieve data from database
The problrm:I have one table(1), I want to make update for that table(1) that is by compare the one column in table(2) with the right side from one column in table(1), so if there is any similarity it will retrieve the data and if there is no match just it will make the record empty(null) "the data type of retrieving columns: number 'double'", but the problems is:
I try to retrieve 11 columns, 7 of them are empty .the program run with out error ,but it will retrieve some records with full data 11 columns, but some of records has only 5 columns have data and 7 columns are empty (these records when I run the program did not retrive any columns, it give me empty records!!)
this is the code : while (or.Read()) { or.GetValues(field); OdbcCommand oc2=null; [code]....
I want to retrive all data which are empty or null and all data
I dont know why my GridView.DataSource is become nothing when the Page.IsPostBack = true.What i did is bind the dataset to the GridView.DataSource when page load. Then when the button click event is trigger i need to get all the records from GridView. But when i debug and check i found that the GridView.DataSource is become nothing. how should i get all records from the GridView and assign to dataset. I'm using VB.net to work on.
I am trying to retrieve Detailsview records filtered by dropdownlist which is populated within Detailsview template.
not sure if this is possible but,
i have three cascading dropdownlists within the detailsview and want to set the third dropdownlist value and dependant dropdownlist values according to retrieved record.
at moment they cascade values independant of what record set is retrieved in detailsview and obtain there parameter from selected dropdownlist in pagebehind.
below is select statement bound to Detailsview and itemtemplate for third Dropdownlist control
Formview with some Accordion block. In the block there are some complex structure, displayed with GridView. (but the GriewView is generated dynamically by input ) For the GridView has some rows, I converted it into a string and stored it in a "Column" (or said "field") of a record.
But when i doing search. I cannot bind the gridview to the "column". because string has to be converted manually into dataset to be accepted by gridview.
I just hope to do the coverting in the "Selected" event and databind the gridview with the data converted.
Using a ListBox, where multiple items can be selected. Using StringSplit SQL function the string passed from Listbox is separated where the delimeter is comma ( , ).ListBox is in search form where user enters search criteria using other controls and the ListBox. All works good by simply using below SQL statement in Stored procedure that carries search.
[Code]....
Question:- Now one of List Item is None , when None is selected or None is selected with other ListItems from ListBox it is required to retrieve all records where COLUMN IS NULL.Example: When the Male, Female and None is selected from ListBox, SQL statement in Stored procedure will be
[Code]....
Like to know how this can be handled? It is required to retrive NULL values when None is selected in ListBox as well as in combination of other ListItems(Male and Female) i.e., Male, Female, Null when user selects multiple items from ListBox.
I want to retrieve all the records where the datetime is greater than or equal to 30 days ago. What is the correct formatting for this line: WHERE Property.dateadded >= NOW -30 days .. Dateadded field is in datetime format.
SELECT TOP (1) Property.Name, Property.Price, Department.DepartmentTitle, Images.ImageId, Property.DateAdded FROM Property LEFT OUTER JOIN Department ON Property.DepartmentId = Department.DepartmentId LEFT OUTER JOIN Images ON Property.PropertyId = Images.PropertyId WHERE Property.dateadded >= NOW -30 days
I want to create a listing view in which the record will be in this format(basically one record based on other, what mvc approach i should follow) .Basically i am using linq to sql and i have module and features in the same table with module being identified by is module =true tag . basically i am looking for suitable mvc approach. i could create a codebehind html table and rendered it here but that not i am looking for.
My table Module1 Module1Feature Module1Feaure2 Module1Feature3
I am creating an application with html using vb as the back end. Microsoft Visual Studio is the application I am using.
My question: I have two drop down boxes...one called department, the other program. When a department is selected, I want the program dropdown to only display the programs that are associated with the department chosen. I have found several different codes to do this but nothing has worked so far.