I have a Gridview that displays a huge list of products. On Client click of a select button in the grid I fill textboxes with the selected row's data. When i do this, I want to stop the Grid from Binding in Javascript. Is this a possible feat? Now the Gridview is in an updatepanel. Perhaps i could stop it from updating???
Is it possible to kill the current running process in order to run a new process in asp.net? The problem I have is that when a report is running, the user may click on other process, then the process of report should be finished in order to run another process. So is it possible to kill the current process?
i am using icrosoft.Office.Interop.Excel to read the excel file datas. i need to kill the "EXCEL" process if any runtime error occur or any other "EXCEL" process running before read the excel data. I am using this code to kill the process.
private void KillProcess(string processName) { system.Diagnostics.Process myproc = new System.Diagnostics.Process(); //Get all instances of proc that are open, attempt to close them. try { foreach (System.Diagnostics.Process thisproc in System.Diagnostics.Process.GetProcessesByName(processName)) { if (!thisproc.CloseMainWindow()) { //If closing is not successful or no desktop window handle, then force termination. thisproc.Kill(); } } // next proc } catch (Exception Exc) { throw Exc; } }
Now, My question is if the multiple users running the web application with different sessions then it cause problem right. because this method close all the "Excel" process that are currently running. how to kill the excel process for the particular session.
My javascript code is calling a asp.net webservice, so i have a call to the webservice something like this:MyWebservice.GetData(param, ResponseReceived, ResponseTimeOut, ResponseError);When the webservice returns data, ResponseReceived method is called.However sometimes the user might navigate to another url before the webservice call actually returns, in such a scenario FireFox throws an Error saying 'An error occured oricessubg the request. The server method GetData failed'So my question is how can i kill the async call when the user navigates to another page or makes another request to the webservice? I know in a normal XMLHttpRequest i could have called Abort method, but not sure how to make it work with the above webservice proxy.
I want to show a popup about browser compatibility to the users visiting my website. I have used the popup in about 5 pages and it would be annoying for the users to see the same popup for more than once when they visit my website. So I am thinking to use a session and kill it when the user closes the poup. IT should not be shown until the browser is restarted.
I have an asp.net application, which opens an excel file and reads it content. If user closes the application or the page when the excel file reading in progress, i want to kill the Excel process (which is opened by the current instance.
How to set session timeout and clear session in web.config and login.aspx ? And when we close the web application , the session must be cleared? I have use session.abandon as per below but is not working.
I have a Gridview and on the OnRowCommand of that GridView I want to Bind the data for another Gridview, but everytime I do that nothing gets bound to the Second Gridview.
I am having a gridview control inside another gridview control. Well.,, when i click on the edit button the second gridviw inside the 1st one should bind with a data source. I am using the sqlDatasource and configured it,In which event of the gridview i need to write the code for binding the records .
In whole when datalist1 is show on page datalis2.visible=false
Now I want use pagination for both of them but i dont know how i can do it? I just use pagination for datalist1 how i can do for my second datalist. I use this SP for my datalist 1
ALTER procedure [dbo].[GetCustomersPageWise] @PageIndex INT = 1 ,@PageSize INT = 5 ,@RecordCount INT OUTPUT
[Code]....
And for my datalist2 i need these column
select Name,Description,Image,Address from House_info
I would like to show the title and the price of a movie in my Gridview. The title and price are properties from the class Movie and Movie is a property of the class CartItem. Here is the Code of my gridview
The DataSource of my gridview is List<CartItem>. This are the classes
public class CartItem { private Movie _movieInCart; private int _Count; public CartItem() { } public CartItem(Movie movie, int count) { _movieInCart = movie; _count= count; } public Film MovieInCart { get { return _movieInCart; } set { _movieInCart = value; } } public int Count { get { return _count; } set { _count = value; } } public double getSubTotal() { return _movieInCart.Price * _count; } } public class Movie { private string _title; private double _price; public string Title { get { return _title; } set { _title= value; } } public double Price { get { return _price; } set { _price= value; } } //More properties here }
Apparently the GridView shows only first level properties, but how do I show these second level properties.
This binds the properties in myObject to the gridview, but I'd like to get the key as well. If it's not possible, is there an alternative, e.g. use a repeater?
I have one form in which GridView contains 1 "rate" field in TextBox. The rate field is not added to database. Now on another form (report generation), in GridView i want to show the value of the rate field which is in first form, How can i do this?