I have a gridview which is present inside a repeater. I have been successful in displaying the data inside the grid view. Now I want to fetch data from the gridview. But i have not been able to fetch the data from the grid view.
I have two databases (DB1 & DB2) from which i wish to build a single table/gridview output, ideally i want to be able to sort the table by using any data.
However i cannot seem to figure out how to have more than one datasource per Gridview, and if i have more than one Gridviews then i can't sort all the data by any of the columns.
This is a oneway street, i do not want to update the databases from the webfront end.
My application has GRID VIEW control, which displays, Folder Name and Folder Path. While rendering in the webpage, i want to display only the Folder Name. For this, i set the visible property to false. Now iam able to display only Folder Name column.
Now the problem is, though iam hiding the Folder path column, i want to retrieve, the Folder path, when user clicks on submit button. Iam getting empty value for the hidden column.
I have stored images in folder each images is more than 700kb so datalist binding process became slow.so it is possible that while loading record and corresponding images from folders Can I reduce the image size or compress images so that record fetching become faster.In database i m stroing image path and image is stored in directory.
How can I fetch the first two information from it into my aspx page? for example I want to read the first two timings.. Should I use xmlReader or what?
I'm quite confused about how to implement a many-to-many relationship and my domain model. Let's say I'm creating a recipe box web application and I have three tables called Category (categoryID, categoryName), RecipeCategory (categoryID, recipeID), and Recipes (recipeID, recipeName, recipeDescription). If I were to present this information as an ASP.NET application and wanted to insert a new recipe and category, am I responsible for writing the logic to insert the information in the RecipeCategory table OR is it possible to set RecipeCategory.categoryID and RecipeCategory.recipeID automatically with default values based on newly inserted records in the related tables? If I'm responsible for writing the logic to insert values in RecipeCategory.categoryID and RecipeCategory.recipeID is that a trigger? What's the best way of implementing this?
I have a SqlDataSet connected to a FormView with a stored procedure for the InsertQuery. The SP has an InputOutput parameter and about 8 other standard input parameters.I referesh the parameters etc., and when I run the app and post the insert NOTHING happens. Well actually all of the insert events fire and the FormView goes to ReadOnly mode like its supposed to, but nothing is sent to the SQL server.
I'm running SQL Profiler and can see that literlaly nothing is happening.However, if I change the SP to just a regular query and just put some random query (like SELECT * FROM TEST), then when I do the insert the query does get passed to the server, along with parameters for all of the fields (even though I haven't created any parameters, due to the fact that I'm using bound controls I assume).
One thing about the SP I'm trying to use is that the names of the parameters are the same as the column names for the fields to be passed to them, I'm wondering if this is an issue, i.e. spAddUser @name = @name, @email= @email, etc?I wonder this because I've also tried just using the SP as a Query, instead of an SP, doing EXEC spExample @param1 = @param1, etc, and that doens't work either. In that case it also sends nothing to the server as well.
I have a List View lstViewAB , by the above code i m trying to find the text on the lblMobile for those which are checked (checkbox). But the problem is that the text of label lblMobile is fetched of 1,3,5 rows only and for 2,4,6 rows it shows text "".
I am fetching data from oracle data base in asp.net application. To achieve this functionality i have used Oracle.DataAccess dll . In my developement enviorment it working fine.
But once I deployed this code on IIS 6.0 it is stopped working and I checked my log and found connection not get established . Then I make sure Oracle.DataAccess.dll present in to bin folder also I try to put this dll in side GAC, but still my code is not working on deployed server.
name | phno. | emp_name(in dropdown) | buttonfield
wen user comes on this page this grid comes filled but then I need to select 1 emp_name from dropdown and click button(in last column) corresponding to that row. then on clicking that row button it should fetch that toq Primary Key and dropdown corresponding id. how? Wen I m fetching its fetching row index as 0 though it is no.4 record as per database(coz my records are in desc.order). I mean its giving row index as per grid and not as per my actual table(primary key).
I want to find a control in gridview using client id of the control as the id is changing dynamically. I am getting the client id but it is not getting assigned in a variable whether of string type or object type.
I want to show daily collection of the mandli on the google map info window. .According to date input ....so I want to how can I fetch the data from two different table..
User enter date in the textbox and click search button that is my scenario. ..
I need to know a way to process images in asp.net web pages. I need to be able to highlight a certain area of the image and put an image on top of the other, then save the image with those changes. So far everything I have seen requieres buy 3rd parties components which I can not afford, I need to develop this functionality using objects inside the .net framework, or a free component.
I have a web form on which the user fills in a basic data: date (with drop down lists), an asset class (with a radioButtonList that is bound with en Enum) and other simple controls... The, when the form is submitted, I make a query on the database to retrieve my data and bind these data into a gridView.
The 1st time I submit the form everything is working well, the second time even if I change nothing in in the web form, the GridView1_RowCreated fires an exception when the property AssetClass is called. The error message is
Must specify valid information for parsing in the string.
This is because rblAssetClass.SelectedValue is empty, but I don't understand why.
I would like to know how to display a loading gif picture before an image is fully loaded from server. That images are hold in a datagridview control on a master page. I searched through the web but i am really confused with what should be the possible options. should it be jquery , javascript or sth else ? and how can i implement it ?
I want to show a processing image on every page load how to do that...Not only in button click it should happen in all page load. It should start when page load starts and ends when page load completed.
1)usign execute scalar i will get 1st col and 1st row value.
2)using dataset i will get whole table.. if my stored proc has 2 queries then i will get 2 tables within same dataset.. i can reference therese using ds.tables(0).rows(value).
3)suppose i use a datareader then i will get multiple-rows. i want to know how to get these each separate rows coloumn values into variables. below is the reader aspx.vb
reader = cmd.ExecuteReader(); while (reader.Read()) {
4)what is it mean by data reader is forward only method of getting data.
5)why do we do readeritem.tostring()
6) can you tell me the basic how is this reader,ds,scalar works.i mean i know to use but donot know basics esspecially the dataadpapter.why do we fill it when using dataset.
Suppose the form is to be submitted to Controller: Product, Action: Add. What sort of coding techniques can I use to handle this dynamic form, such that I follow good or best practice, and if possible also be elegant.
The solution I see so far is to test the Request.Form (or Formcollection) indexer/dictionary for existence for the dynamic input fields. E.g.
public ActionResult Add(Formcollection form) { int productEntry = 1; string productPrefix = "Product"; while(true) {........
I have used Expression Web to create a website with a standard .ASP form that saves data into an Access database using standard HTML controls. This works fine except there is no validation of the fields. A user can enter anything to get past the form.
I want to use ASP.NET to validate all of the fields in the form and then save to the same Access database. When I rename the webpage from .ASP to .ASPX, I am able to get the validation controls working properly by changing HTML controls to ASP.NET controls.
However, I cannot figure out how to get the form data submitted into the Access database because the code to connect to the database was removed when I inserted the first ASP.NET control.
What am I missing? It seems like a simple task but I haven't been able to figure it out. I have a couple books and they don't answer the question. Can someone guide me in the right direction?