If I have an Access database with two tables, called 'Users' and 'Items', what is the method to create a watch list, so a user can login and see the list of items they have chosen to watch (as you can in ebay for example)?I thought the solution might involve using code to modify the relationships between the two tables, but am not sure how this would work in practice.I've searched for answers, but have not made any progress,
I'm designing my own custom control that contains a .NET dropdownlist. What I'm wondering is if it is possible to populate my dropdownlist with listitems placed in a placeholder? For example:
This doesn't work because the DropDownList control only allows ListItems as child controls. But, I want to do something similar to this so when the user includes my control on a page, they can do something like this:
Is it possible to select values from a List, where the items contain in a different list aswell?for example;
[Code]....
What I need are all the items from the first list "Items", where the string contains something from the second list "List".So I need something which returns the first 3 items (which contain the term "Item") from the first list.
I've created a page that can list Directories and Files but when you click on the file link it posts back to the main page for some reason. If you can point me in the right direction....let me know.
I have one question here.I created a registration form using asp.net and c#.
when I entered all the fields in that form and hit the register button the data will be inserted in to the database table called xyz table
in that table I have an id field which is a text field in access database consists of guid starting with letter P
when I inserting the data from aspx form...the guid is not inserting into the table.
one of my datarecord in that table with the id field is like this.(.P11111111-1BBB-4444-A9D1-111111111111)
need to insert anoother record in that table that field must be generate with the ID starting with P..its an guid.. the creating guid in the aspx.cs page..??
I am trying to get a simple multi-page program to run correctly. I have everything set up, except for the "remove" function. When I try to remove an item from the list box nothing happens. Insted of trying to explain it I will show you the code...
ave a webpage that maintains a list of items. Each item is displayed as a simple short text string and has a int/string data value associated with it. At the moment I am displaying the list as a common separated string. I can generate the present string very simply from the result of a linq query:
string displayString=""; foreach (var i in linqResult) displayString = displayString + ", " + i.Name; displayString = displayString.SubString(2);
However, I want to modify the page so that the user can remove any item (name) from the displayed list
I was debugging my web project and faced a problem that I don't know how to watch content of hashtables or similar data structures.
For example, I have assigned before that Session["errorMessage"]="Hewstone we have a problem here...". What is my actions in order to watch that string in watches list?
I am trying to add the value from a textbox which is also in the formview into the dropdownlist as a list item. I currently have this code for it: Protected Sub Formview1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView1.PreRender Dim dropdown As DropDownList Dim listvalue As TextBox dropdown = FormView1.FindControl("dropdownlist5") listvalue = FormView1.FindControl("textbox1") dropdown.Items.Add(New ListItem(listvalue.Text, listvalue.Text)) End Sub
This code works and adds the new item to the dropdownlist if I have no SelectedValue set for my dropdownlist. However when I set the selectedValue I get the error message:
"'DropDownList5' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value"
This is the bit I dont understand because the value does now exist in the list of items as it was added in from the textbox value. Does it try to do the selectedValue before adding my list item? If so how can I add the list item first, or do I need to set the selectedValue in the code after adding the list item?
Another niggling issule. I am trying to remove all the databound items from my listview but it doesn't work. I am trying to remove the items as i have used the delete command button (alongside with the updateand edit)
I have an object, that has many properties but the only two to worry about are:
myobject.ID which is an int myobject.Names which is a HashSet
Then I have a List of those objects that looks something similar to this:
List<myobject>
I use Linq to get a some of the data into a repeater, but I'm not sure how to get the list of Names and how often they show up.
Want to use Linq to avoid having to loop through the data.
As my tags should show, this is an ASP.NET solution using C#.
Some clarification: Lets say I have just three items in my list: Item 1 has John, Fred, Jack in its names. Item 2 has John, Fred, Joe in its names. Item 3 has John in its names.
I am trying to return the following: John - 3 Fred - 2 Jack - 1 Joe - 1
Also, as a note I am familiar with having to write my own comparer for my object, I'm just missing the 'how to' for the overall solution in my thoughts.
I have a List in which I select users from db each time a sql query runs with certain value and selects one user in the time thus I cannot limit identical users in sql.