Which Control To Present Table For User To Choose From
Nov 10, 2010
I want to put up a table with a couple columns, and have the user select a row. This will all be from code; not through a DataConnection. GridView seems like it wants to deal with bound controls. What control should I use? ListView doesn't do columns. A table doesn't seem to allow selection. Specifically, what I'm doing is letting the user find a person in active directory. They'll enter the name, and I'm going to present a list of the Active Directory matched results that they can choose from. Is there already some built in control or package that will do this?
I've got a drop down list that I want to populate with items from a SQL Server database, which I did successfully, but I can't figure out how to write an if statement that will clear the drop down list based on a selected index and repopulate it with data from another table. The drop down list is inside an update panel that auto posts back.
Basically I want to allow the user to choose an item, but rather than populate another drop down list control, i just want to repopulate the current one with new data.I'm guessing that if I want to get data from more than one table the code below isn't going to work for me. Could I get the data from all the tables at once and store each table data in its own variable until I need to use it? (Each table will have under 10 items, in 5 tables.)
Here is the code to get the data from the database:[Code]....
I have an user control in master page with id 'ucTopUser' and a button 'btnSub'.I need to hide the both control from my current aspx page.How can I do this?
I am trying to add a user control into a div at runtime. I can add the control no probelem but it overwrites the previous control added.Basically, I am trying to add passengers to a travel system - the passenger details are in the user control and I don't know in advance how many there will be. I have an add new passenger button which should append the new user control into the div without overwriting the previous passenger. The code is c#/.net 4. I have tried to save the control data into viewstate and re add it with the new one but that also doesn't work. Here is a snippet of the code I'm using
foreach (Control uc in p_passengers.Controls) { Passenger p = uc as Passenger; if (p != null) { p.SaveValues(); } }
however, p.SaveAs() (just writes the control values into ViewState) is never hit.
I'm only a novice asp.net developer and have never done this before. I have a developer working on a new web application for me. Part of the application allows the user to select a time when they receive an email, containing information collected throughout the day. The user can select a time, e.g. 5pm, then at 5pm every day they receive an automated email of information from the system. They can log in to their control panel and change this time.My developer says there is only two ways to schedule this batch, but it's not possible to let the user select a time. They have suggested:
a) Using a console application that will trigger the event everyday and send the batch update b) Using a Windows Service that will deploy on your server and do the operation.
I really need the system to be able to let the user choose the time of their email. I hoped this would be possible with ASP.NET. Is it? If so, how?
I was wondering when a user logs in using the login control for ASP.NET, how do we choose where the user goes after? Do we configure this in the web.config file?
I am using Visual Studio 2005 version, DOTNET Framework 2.0, Technologies C#.NET and ASP.NET and Operating System WindowsXP.In my excel sheet i have two columns of data. Using Gridview i am retrieving data from excel sheet and presenting data. While i am writing RowDeleting event i am getting error primary key not exist.Below code i am using in my program: Default.aspx
my requirement is : am having a excel sheet with some values listed i want to pass each value present in any(specified) column to a text box present on a remote page (a site other than mine) as a input and capture the result displayed on the page and then store the input and reuslt side by side in db this should repeat till the end of the input values in the excel sheet.
Is there a way in ASP.NET to check if the browser where the page was requested is still open? If the browser is closed, a way to stop the request's rendering.
I want to check if a user in User table is found either in UserName Column or in FriendUserName Column in UserFollow table and if yes display lable found, But if no display lable notfound. This code will be excuted onse a user logs in the connection code
Since I am new to Ajax control kit so thought to ask this question,I need to know what controls should i use for the following requirement.I've a state Drop down on selection of state drop down i would like to display all city of selected state in check box so that user can choose multiple cities and would like check box control to display only 5 city name per row for example if there are 10 cities in one state it should show 2 rows with 4 city and one row for 2 city.
i m using Telerik grid to present memos received by user below is the code
[Code]....
where i m binding third column (Subject) my intention is to make an ActionLink where subject is the display text and i want a dynamic ID coming from <#=MemoID#>. memo id is working fine and gives me a link with dynamic Memo IDs. the problem is with the subject i.e ("<#=Subject#>") is rendered as it is on the screen without mapping to the actual subject of the memo. i have also tried ("<%#=Subject%>") but to no gain.
I have "Order" object with Columns Ticket,OTP and CustomerName etc.Intially on DataGrid, I'm binding Ticket only , when user clicks on "Column Chooser" button, another windows appears to pickup CustomerName,OTP columns to add specified column dynamically on Datagrid. Environment : Asp.net ,C# with Object Data source
Public Class Order { publc void Order() { } public string Ticket { get { return this.strTicket; } set { this.strTicket = value; } } public string OtpNumber { get { return this.strOtpNumber; } set { this.strOtpNumber = value; } } public string CustomerName { get { return this.strCustomer; } set { this.strCustomer = value; } } } }
Requirements call for the ability to save search values so that they can select them at later times to return the results without having to re-enter the values. They have the ability to search on 4 different types of data (Date, Time and Lat/Long), so they would like to capture what was entered and ONLY if they chose to save those values, it will be saved and next time they login, if they are searching, they can pick an old search and submit it again.
Im thinking that i add a checkbox next to each button, if they check it, it saves the data into a table with there values and username. Next time they login and go tothe search page, if there are any records for them in the table, i present them with a link that displays all the values stored and if they select one, it will run the search again and present them with the results. does that sound like the right way to handle this request?
I want to display only single table in pop up window out of many tables present on my page. i have 3 check boxes.When user checks those check boxes and clicks on "Generate report Button" then i want to display a static table in pop up window according to the selected conditions.. these static tables are already present on the page but are hidden..so i want to make them visible and show in showModalDialog(...)"
I have a wizard named as "Wizard1" which has a Textbox named "tbRegion". Now I want to get the value from the textbox into a label "Region". Now this textbox is in step 2 of the wizard.
I don't think I understand fully how ASP.NET does inheritance of controls.I have a user control, ucBase, which has an asp.net label in the ascx file. Code behind references the label and it works fine during run time if the control is not a parent for another user parent.
If I have another user control, ucChild, inheriting from ucBase, the label in ucBase's code is always null. ucChild has no controls in its ascx fileThe server controls (like the label) needs to be declared in the ascx file and not created programmatically.What needs to be done for ucBase to see its own controls when it's a parent user control?
I have created my first Custom asp.net server control.But i think such projects probably contains AssemblyInfo file.But i am missing that. When i created project that file was not added.
I am working on VS 2008 Team System Edition,with VB.NET language.How to get that file ?
Explaination in detail I have a tree view control on left of my page and AjaxToolkit:TabContainer on the right,consisting of 9 tabs in it (I have developed individual controls and added to the tab panels). On selecting a value from the tree view control the I am refreshing the values inside all the tab panels. There is a method reload written on all the controls which are called on tree view click which sets the value of the selected tree item in properties in all the controls and also refreshs them. Its a big performance issue for sure which i need to improve on but that would come later. My problem
1. In the Main tab (ascx control) consists of asp:chart control which I am populating and it also consists of 2 buttons in which ModalPopupExtender would open up another 2 controls on button click within this control. Now on the tree view click I am calling the reload of Main Tab which internally called the reload function of these 2 controls also
On Tree view click
Maintab.reload { ModalPopupExtender1.reload ModalPopupExtender2.reload } Secondtab.reload Thirdtab.reload If I populate the asp.chartcontrol without reloading the ModalPopupExtender1.reload ModalPopupExtender2.reload it works great but when I call both ModalPopupExtender1.reload ModalPopupExtender2.reload it shows up and goes away.
Any thing i am missing on ? How to make chart control stay on the page and not vanish. I tried making it visible again. The main page contains a chart control which comes and goes away and does not stay only if i comment out the reloading of these usercontrols it stays visible with values on the main page else goes away.
2.Performance problem- I am not sure how to lazy load the content inside the tab panels so that controls should have the selected item for tree view click and can populate thereon.
3. This is how I call my user controls to reload on the treeview click from within the main page. PEGeneralInfoPortfolioProfiler1.PortfolioCode = strPortfolioCode; PEGeneralInfoPortfolioProfiler1.ReloadControl(1);
I have put my gridView inside an UpdatePanel with Timer control for auto refresh.The gridView has a linkButton column which is bounded to referenceNo column from database.
On click of this link button i want a panel to get visible. This Panel contains details corresponding to the referenceNo shown in differnt controls (mostly texboxes). Do i necessarily need to put the panel inside the Update Panel.If not how do i do it?
I have tried putting panel outside UpdatePanel, but it doesn't show panel on clicking the linkbutton nor does the values are updated inside this panel (if panel's visibility is set to true by default for testing purpose).