Forms Data Controls :: Return To Page Where Last Product Was
Apr 26, 2010
im using listview to display my products and also use pager and count 10 item per page. my problem is, when i click one of the products to see big image and info about the product (in new page) i have some back button to return to the products page its return to number 1 even if i select product from pager 8, how can i return to the page were the last product was (like: 8 or 14) and not to the first pager?
I'm writing new section to a website and am looking to use a UI similar to the MSDN Download page with the Product Details and Keys in an accordian like section. Haven't been able to find a description of how this is done as of yet - still looking though but figured I'd ask if there is an available control or a description of that control instead of reinventing it.
I have datagrid, View details button on the datagrid. If I click on the button, It will redirect to another page with all the details.I have update button and return button on that page. If I click on update, It will update data in the database. If I click on the return button, It will return to previous page which has datagrid but I want the update details in the datagrid. I have a big doubt, how to store that datagrid so that we can retrieve data on return button
I have a "search page" where the user enter some search criteria and a gridview where I display found records. When selecting "edit" on a row I open a second form to allow editing the found data. When the user click close button on the second form I want to go back to the search page. From the beginning I did just return (redirect to page 1) to the page but now the users also want to retain the search form with the serach criteria and found rows (also refreshing the found rows with possible changed data).
I can not just use a javascript with "history.back()" since the edit page might have done postbacks so that will not return to search page.Of course one solution would be to call the search page with a query string (or other ways to pass data between pages) containing the original search data but that solution might get messy.
When a Product is deleted, I am simply displaying a message to User like "Are U sure ....". I am doing it like:
<asp:TemplateField HeaderText="Delete"> <ItemStyle Width="5%" HorizontalAlign="Center" /> <ItemTemplate> <asp:ImageButton runat="server" CommandArgument='<%#Eval("Gallery_ID")%>' BorderStyle="None" ID="BtnDel" ImageUrl="../Images/icon-delete.gif" CssClass="imgbutton" CommandName="DeleteRow" CausesValidation="False"></asp:ImageButton> </ItemTemplate> </asp:TemplateField> protected void GvGallery_RowCreated(object sender, GridViewRowEventArgs e) { ImageButton btnDelete = (ImageButton)e.Row.FindControl("BtnDel"); if (btnDelete != null) btnDelete.Attributes.Add("onclick", "return check();"); } <script language="javascript"> function check() { if(confirm("Are you sure u want to delete this Gallery? Once deleted it cannot be retrieved.")==true) return true; else return false; } </script>
But Now, my requirement is that I want to display "Product Name" with in the message like "Are U sure U want to delete <Product Name>". How can this be done??
adding a product from my datalist. The code to add a new product works on the page where you can check out the product a little closer, but not in this "overview" of all products. When I hit the buy button, I get this error(translated from swedish): "The sequence don't contain any elements"
I have a gridview with paging. So for instance, I'm on say the page number 10, and I open the form details on a specific record_id (link). After I update/submit the form, it returns to page number 10. But, if I go to another page, for instance page 5, and submit the form, it returns to page 10.
I've tried some things, for instance history.back(), but it returns to the first page I went to, in this case page number 10 (or whatever the first page I go to).
A new row could be added to the grid by selecting an item in a combo box/dropdown in the Product column which would be populated from a DB query.
The only columns that could be manually edited would be the product dropdown, and the qty column (could be dropdown or textbox). I think there would need to be an add button once the product and qty columns were populated. Does anybody have any pointers on the best place for me to start here?
My site is currently ASP.NET 4.0 and I am using TabContainers and the CalendarExtender from the AJAX Controol Toolkit project. So a solution using parts of that project would be perfectly acceptable.
I`m making an online order project.Clients can chose products of some categories and than they can order it.
I have a database with tables: Clients,Products,Categories,Orders,A table that connects orders with products,etc etc.Now if a client cliks in category (for excample motherboard) than all kinds of motherboard will show in aspx page.
I want to ask you how to do this:how to take products i want from database and put them into an aspx page and after that clients need to click in one product and then order it.
i have a first page and user selecting some products. Passind with session. Retrieving from first page. And in this point i want to connecting my northwind db and display selected products detail side by side in my second page. (listview or datalist) here is my second page codebehind.
I have a gridview displaying the items in the shoping cart. I want the customer to be able to change the size of the item he or she has chosen to buy. I have therefore added a dropdownlist inside the edititemtemplate. I would like to display all sizes that are available in the database in the dropdownlist, but don't know what the sql-statement would look like.
The problem is it's display all the other item's attributes and not what kind of attributes that is left, for example Medium, Large, X-Large. how to implement the sizes into a dropdownlist and the sql-statement looked like this:
i build some shopping cart. I have Datalist that display products from SQL table (id, productName, productPrice) and "Add" button. After the user click the button the product appear in the GridView (im using Session DataTable) until now all fine and work greate! in every product i need to add 2 checkboxlist from SQL tables (its some extra to the product). How can i get the items the user was checked and put them with the product name in the same datatable coloumn? the aspx code:
how should i write selected product ids from grid view to database with customer id. how to associate customer id with job ids selected from grid control.how should i store which customer selected which product after login
i have a product data entry form in which if somebody wants to add more data for one product then there is link called more and opens a new aspx page. In which i have a 40 textbox and dropdown list associated with them. so i have a data like interger id of dropdown list and textbox value for that dropdown list interger,something kind of key and value pair. I want to store that and pass it to the original pair so i can add that to the database once the whole product is created. I do not want to use session to store this much of data.
I am putting a C# asp.net web form together that has a number of fields that we want to ensure data is inputted in them. I have added the RequiredFieldValidation control, but I am unsure what to put in the Button_Click event. I want the click event to check the fields and if not filled in, preserve the fields that already have data and then return the page data with the missing fields so that they user can take corrective action.
I am using a cms product that likes to cache every page so that you get quick response times. The downside of that is that pages can get stale. My question is: are there different caches per user? Does asp.net keep track of caches on a per user per site basis? That's what is seems like to me, but I can't seem to find it documented anywhere. With this cms, they have a load of hashtables keeping tabs on the modified pages. If you clear out the cache, log out, and log back in again as another user, you still have stale information. The only way to get the information to be current for all users is to recycle the app pool, which is something you don't want to do too often ( kinda like pulling the emergency brake on the train ).
there I have a situation where I need to make to call to a normal .aspx page from asp.net mvc web application. How can I make this request and get data back from the page. the data will be returned on on the page_load event of the .aspx page