i want to display results from multiple queries in a repeater... is it possible? for example, a user searches for a keyword "test" i search 4 different databases for it, and display results from all 4 in one repeater.
I have built an asp.net web site with .net framework 3.5 and I am trying to avoid sending unncessary queries to my database in order not to have high server load. I have a login view in my master pages and it contains templates for anonymous users and members. To lighten my server load, I am using Sql Data Profiler and Database Tuning Advisor. I noticed that every page load triggers a stored procedure to get user role using dbo.aspnet_UsersInRoles_GetRolesForUser stored procedure.
My question is that if it is necessary to check for every page load or I can store it somewhere and check later. is it Login View or Login Control sending queries? is it about access rules to member's pages? or is it because I used the login controls in my master page?
I get from SQL Server Server Data. I need to use datas form 2 colums of my SQL query for a VB.NET. The VB.NET need 2 values for both colums and produce 1 answer. I what to display the value on the same line instead of the 2 1st values. How can i store the 2 colums wich lot of SQL values on my vb.net script and diplay the result with the other data from the SQL query ?
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:
Is there a way to display gridview as "gallery view" instead of plain "list view". For example like ebay(you can toggle the view 1.list view, 2.gallery view, 3. side by side view). Any asp.net controls or jQuery controls will do the job for me.
how can I display on a single page(View) data from two tables in my db? In my project the model is *.edmx file. i have two table one with categories, and the second one with products. All I want to do is to display on home page(view) in left column all categories, and all products in right column. After clicking on category in left column, in right column there should be products form category which was clicked....
I am having a hard time solving the following with an MVC view. My goal is to display data from multiple tables in a single MVC view. The bulk of the data comes from a table called Retailers. I also have another table called RetailerCategories which stores the retailerid from the Retailers table and also a categoryid linking to a Category table. Note that there are multiple records for each retailerid in the RetailerCategories table.
In the view I want to show a list of retailers and with each retailer I want to show the list of categories applicable to them. What would be the best way to accomplish this?
1, select Itemname, 2,based on Itemname it ll get the avaliable qty and serial no, 3, while click the select button, all the values ll stored in to grid view,
upto this i did and even i have check weather the serial no avaliable for duplication, but now i have situation like, when i select more then one serial no, it ll stored in the new row in the grid, so the item name and aveliable qty , repeatedly so now i want to change the display format, like.,
Item name Avaliable Qty Serial No AA 3 12345,36545,
before it look like :
Item name Avaliable Qty Serial No AA 3 12345, AA 3 36545 AA 3 78954
so tell ur openion, and and how to handle this, and while submitting i have to send this as an XML format.
when the user chooses high priority ( may be as a radio button) in front end asp.net form, the database saves the priority state and according to it in the report form, based on the priority it should show a colored symbol : ex: for high priority red color dot.. and for low priority blue dot.. is it possible to implement using grid view?? im going to implement this in mobile...
I have a problem while displaying the data from the grid to the excel.I have implemented pageing and the problem is the page that is displayed is only exported to the excel not all the pages.
Am having a details view and grid view in a page. In details view I have one dropdown list with selected index changed.I have to take the values from database and bind it to the other fields in details view. I have Written the Query which is executing fine and fetching values(this one i have checked in SQLServer). But when i select any items in DDL, instead of binding it in DetailsView its getting binded to Grid view.
I have a method that retreives data from table and needs to display in details view. The method is give below: The problem I am facing is I did put some break points to figure out if all the lines are executed but the problem I am facing is that the compiler is not going in the while(reader.read()) loop(I have made to loop bold so that would be easy to locate) and hence unable to retreive data.
public static Workstation GetWorkstationByName(string workstationName) { Workstation computer = new Workstation(); string key = "workstation_workstation_" + workstationName; if (workstationName == null) return null; if (SiteUtility.Cache[key] == null) { string con = SiteProvider.Instance.AltirisConnectionString; List<Workstation> workstationlist = new List<Workstation>(); SqlConnection cn = new SqlConnection(con); SqlCommand cmd = new SqlCommand("Select [Server] from vComputer where Name = '@workstationName';", cn); cn.Open(); cmd.Parameters.Add("@workstationName", SqlDbType.VarChar).Value = workstationName; SqlDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { Workstation ws = new Workstation(); ws.Server = reader["Server"] as string; workstationlist.Add(ws); } string ADSPath = "LDAP://" + SiteProvider.Instance.DomainString;..............
I'm currently working on a project, i have got a web form and some text fields and drop down lists and radio buttons, i manage to store them in the database after the users click on the submit button. Now i need to display all these values in a detail view in a new web form page. Is it possible? How should i go about doing it or is there any other alternatives since i did not use the grid view for users to store their information.
i configured the datasource and and link it with the detailsview but when i run i cnt see the details view...this happen mostly when i changed default mode to edit of read-only..
In my application, I need to get data from three tables and display them in 1 view. I have created a .dbml and created a ViewModel in my Models folder to deal with this. Here is my ViewModel:
[Code]....
My web application uses the Default ASP.NET Membership. So User [ u ] is of type aspnet_Users from the default Membership. This ViewModel allows all the CRUD opertation to be carried out. However on the Create and Update operations, I would LOVE some Model Validations, My question is:
1) Would the User [ u ] default validation kick into place in my ViewModel ? Cause I know by default ASP.NET Membership, has Model Validation.
2) For table SUserDetails (which I have created myself, not part of default) how do I add ViewModel validation to it for when someone does an Update or Create?
I have a details view that currently shows the positionID when displaying data in select mode. This corresponds with the way the stored procedure was written. I've decide I want to display the PositionName though. I want to know the best way to do this.
I know I can rewrite the procedure to pull the PositionName instead but I thought there might be another way of doing it. Rewriting the stored procedure to pull the name instead of the ID may be the best way to do this. I thought there was probably a way to cross reference the position Id with the name. If there is then it may be unnecessarily cumbersome and not worth doing.
I also want to be able to pass the id to the Details view when it is in edit mode so a drop down that lists the position names will start with the correct current value selected when in edit mode. This would prevent the value from being accidentally changed. I'm not sure if I rewrite the procedure to return the PositionName instead of the PositionID that it won't cause issues with me wanting the drop down in edit mode to start with the correct value by passing the PositionID. The Position is stored as an int for PositionID in the db.
I want to display images that a user uploads in a list view so that all the images a user uploads will appear as at the moment no images appear using the list view but the xml data source file gets updated. I am using VS 2008 usinf asp.net, vb and xml codes. What would I need to do so that the images appaer in the list view.
I'm attempting to display some data in a list view with an edit button beside them so I can edit them in a different form. I want to get the currently selected item but it's always -1 and the selectedndex doesn't seem to fire.
I have a search button ..The result will be displayed in grid view if the button is pressed .. i am able to do it
But now i want to do like this ..that is my grid view is only displaying the ResultId .. I want to display the ResultName rather than resultID in the table