Hello All, We have the following scenario. 1. In code behind page I have defined two Page Methods. suppose Page Method 1 executes Add funtionality of two numbers. Page Method 2 executes Substraction functionality. 2. I want those two methods to execute at the same time in parallel. When the methods are called from JavaScript, they are called in sequential order. However, those two methods Add() and Subtract() should be called in parallel to improve the performance by getting the response quickly. Can you please shed some light on this and help us to solve this issue. Yours Raheem MA
Raheem MA
Posts
-
Calling multiple Page Methods in parallel -
How to close an aspx page from code behind?Hello Tanweer, Thank you for your response, If we use this it works fine. But on button click event Excel file will be generated and pops up the open/save dialog. After the open/save dialog pops up, the main window should close. If we do not have this code, the attribute works fine without any issues. The main issue is when we have Response... related code we could not close the main window. Can you please give some idea to get rid of this? Thank you in advance, Raheem MA
-
How to close an aspx page from code behind?Thank you Mark for you response, Is there any way to get the control back to the main window after the Excel file open/save pop up opens? Can't we access the controls after Response... related statements from code behind? Please help us to get rid of this issue. And also it seems its an iteresting concept behind it. I want to know that clearly. It may help most of the developers. Please put the concept here to help most of our friends. Thank you, Raheem MA
-
Dividing projectHello, You can add the dll of first project to the second project as a reference and then you can use using statement to use the methods of first project in second project. Following is the procedure: 1. Select and Expand second project (say Project2) 2. Right click on References and choose "Add Reference" 3. Browse for the first project dll which would be in 'Bin\Debug\' folder of the first Project (Project1) 4. Select the dll and Click "OK". 5. Now you can use using statement in the second project to use the methods of Project1. Let me know if I did not answer your question correctly. Thank you, Raheem MA
-
How to close an aspx page from code behind?Hello Friends, We have the following issue, please help us in getting rid of it. Scenario: We have an aspx page which contains two button controls. On click event of first button, generating excel sheet and prompting the user with the open/save dialog box. Requirement: Once the excel file generated and open/save dialog prompts to the user, the main window (which has two button controls) should be closed. We are using the following code to return generated excel file: Response.Clear(); Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; string excelReportName = "MpmCostDataTemplate"; Response.AddHeader("Content-Disposition", "attachment; filename=" + excelReportName + ".xlsx"); .......................... and using the following statement to close the main aspx page window Page.ClientScript.RegisterStartupScript(this.GetType(), "myCloseScript", "window.close();", true); Issue is: The above close statement is working fine if we remove the Response related code (that returns the excel file to the user). But its not working when we have Response related code in place. Please let us know how can we get rid of this issue when we use Response kind of code. Thank you, Raheem MA
-
How to prevent Asp.net page postback when we click on MasterPage button in Content pageHello All, We have a scenario for exporting some data to Excel when the user clicks on Export to Excel button. We have "Export to Excel" button on Master page. Anybody has idea to stop page postback on Export button click? Can you please shed some light on this? Thank you in advance, Raheem MA
-
How to get screenshot of an asp.net page?Thank you for your quick response, but, Even though its not working with the third party tools. Anybody knows any other way to take screenshot/thumbnail of the current page in asp.net web application? Thank you in advance, Raheem MA
-
How to get screenshot of an asp.net page?Hello All, We have a scenario to get the screenshot and export it to PDF. I would like to know the process to take the screenshot/Thumbnail of the asp.net image. I found some third party dlls, but Forms Authentication causes the issue with them. With the third party dlls, if we give any url directly to the dll, its getting the thumbnail of the login page as it will be redirected to login. Our Scenario: --------------- We will have multiple pages in our Asp.Net web application. On every page we have export button. When the export button is clicked, the screenshot/thumbnail of the current page should be taken and save as image. Can anybody shed some light on this scenario and let me know if the solution found. Thank you, Raheem MA
-
How to refresh only Content page without refreshing master pageThank you for your quick responses. Any way to acheive my required functionality? Thank you in advance, Raheem MA
-
How to refresh only Content page without refreshing master pageHello friends, Hope u r doing good. I have a scenario as following: We have two dropdown lists and left menu on the master page. We have 7 content pages based on the master page. After the selection of two dropdown lists, the menu will be populated. Once the menu populates, the menu will have links to 7 content pages. When we click on the links in the menu, the dropdowns should not be refreshed (Master Page content should not be refreshed), Only the content of the content page should be displayed in the content area without refreshing the whole master page. Whenever we click on other content page link, only the content place holder area should be replaced without refreshing everything on the page. We want to hold the values of dropdown lists while loading the content pages. Any Ideas how to acheive this? Thank you in Advance, Raheem MA
-
Exporting Asp.Net page to PDF file -
Exporting Asp.Net page to PDF fileThank you Deepika for your response, But I dont want to capture the complete webpage. Following is the scenario: We have "Export" button on every webpage(contains Charts, graphs etc...). On Export button click, the charts , graphs ... of the particular page should be exported to PDF file. Any ideas ? Thank you in Advance, Raheem MA
-
Exporting Asp.Net page to PDF fileAnurag, Thank you for your reply. I did go through the links you provided. First one, AltSoft might match our requirement but it is not free of cost. Second One, just creates PDF files in Asp.net but does not export the asp.net page to PDF. Our requirement is exporting the complete Asp.net page (.aspx) to PDF file. Can you please provide any other information regarding this. Thank you in Advance, Raheem MA
-
Exporting Asp.Net page to PDF fileHello, In our project, we have a requirement to export a web page (Asp.Net) to PDF file. All the controls on the page (The web page completely along with its format) should be exported to PDF file. Anybody has worked on this before? Can you please shed some light on this to get it work? As we have some constraints, we have to do it without spending money. Thank you in Advance, Raheem MA
-
How to implement timer in asp.net application?Hi friends... We are developing online exam webpage using asp.net. When the exam starts (When page loads at the first time), duration of test will be displayed( for example: for 30.00). As the time passes on the duration would be decreased like 29.59, 29.58.... We are displaying one question per page. When user clicks on next button for next question, the timer is getting refreshed like displaying 30.00 again. we are displaying time in
tag client side. The issue is the timer value should not be refreshed when the user clicks on next button or previous button. Please shed some light on this so that I can get rid of this issue. Thank you, Shah_Tech
-
How to kill the session when user closes browser in asp.net 2.0Thank you for quick reply. One thing is should I write the code in all the aspx pages of my application? How can we kill the session when the browser is closed without writing the code in every page? Thank you, Shah_tech
-
How to kill the session when user closes browser in asp.net 2.0Hi friends, We are developing a web application that uses sessions and Forms authentication. I want to call Session.Abandon() to kill the session when the user closes the browser window(from any page of the application after logging in). How to achieve this? Please shed some light on this to help me. Thank you, Shah_tech
-
How to determine whether a session is running on worker process or not?Thank you all for quick response, The website is already in production. The user name gets displayed on all the pages once the login successful. Suppose user A logged in and USER A is getting displayed on the next page. In another browser window user B logged in and USER B is getting displayed on the next page. Now, if you go th browser A, and do refresh the page, then USER B will be displayed on the page. this is the issue currently we have. How to overcome this? Please give me ideas :) Thank you, Raheem MA
-
How to determine whether a session is running on worker process or not?Hello, I have a web application hosted on local machine. Ex: http://localhost/xyz.aspx We have login page which prompts for user id and password. Once the user is validated, enters into another page. On all other pages, the user name gets displayed. Can we determine is there any session for the website is running or not? if we can find it, we want to stop multiple users from logging in from the same system. Please give me any ideas on this. Thank you, Raheem MA
-
How can we get Primary Interop Assemblies installed?Hi, We have 'Primary Interop Assemblies' folder at the following path: "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" How can we install them? or with which product we get these assemblies installed? any help would be greatly appreciated Thank you, Raheem MA