asp.net

Discrimanant taskkill.exe for excel.exe

I have to run Excel on a server and to kill the excel.exe process I am using taskkill.exe: System.Diagnostics.Process.Start("taskkill.exe", "-im excel.exe /f"); My only problem is that if there is someone who is also using the server who is working on excel (It could happen) then their processes will be killed also. Is there anyway ar...

CreateUserWizard- How to verify data against db during wizard?

I'm using the asp.net CreateUserWizard control. I've added a WizardStep and need it to verify 3 datapoints against our internal database before allowing the user to create an account. However, when I try to wire the next button click to a codebehind method to check the data, the event never fires in the codebehind. Below is the code on...

How to capture the sender object in webforms on post-back?

If I do a form post w/ a non asp.net control in webforms, how can I get the id of the control that triggered the event from the sender object? Currently I'm adding a simple form post to my drop down list w/ jQuery and want a method to capture the specific control on the server side ... $(document).ready(function() { $("*[id$='ddlEm...

how to customize datalist to be like this?

in asp.net how to customize datalist or gridview or what ever from data tools to be like this picture http://picasaweb.google.com/lh/photo/YYaQAfXEKz3ufb0tSlxPoQ?feat=directlink ...

ASP.NET Page calls an additional aspx page after loading

To keep things simple, we have a few aspx pages... Page1.aspx - resets Session information. Page2.aspx - Search form with results and sets Session variables. Page3.aspx, Page4.aspx, Page5.aspx - require Session variables set on Page2.aspx What we're finding is that as Page2.aspx loads and setting the Session variables, Page1.aspx is ...

Having problems getting images to display within FCKEditor within ASP.NET website.

Hi, I'm having a problem with the FCKEditor html editor for ASP.NET in that when trying to insert an image within the editor and then clicking "browse server" in the Image Properties dialog I get an "page cannot be found" error. I want to get it to show all the files in the "images" folder. The website is set up as follows:- \ Root ...

ASP.NET Push Redirect on Session Timeout

I'm looking for a tutorial, blog entry, or some help on the technique behind websites that automatically push users (ie without a postback) when the session expires. Any help is appreciated ...

The timeout period elapsed prior to obtaining a connection from the pool.

I'm getting this error every few days. I won't see the error for a few days then I'll get a flurry of 20 or so all with in a minute or so. I've been very thorough going throw my code so that I'm using this basic setup for my DB access. try { myConnection.Open(); mySqlDataAdapter.Fill(myDataTable); myConnection.Close(); } Catch (E...

jquery hyperlinking like google

Hi, have you ever noticed how in gmail, as the emails are updated in your inbox, you get a hyperlink to it like so: http://mail.google.com/mail/#inbox/23e0377656b24123 and if you click on that link it doesnt reload the page? Can you do that with jquery and a datagrid? So that you get links to items in your grid, which is populated as...

Applying Existing Tablestyle to a Gridview

I'm working on a web-enabled version of our existing winforms project. Gridviews seem to be an ample replacement for the datagrids that we've been using. We have extensive table styles written for the old datagrids. Is it possible to reuse this code to apply a style to a gridview? If a re-write is necessary, what is the best way to s...

objectdatasource and caching

Hi, I have a dataset that contains around 500 records with 7 columns in each record. I would like to use objectdatasource and caching. I am sure that the data doesn't change. But there will be lots of users accessing the data. My question is whether it would be a good idea to cache the data that has 500 records. is it optimal or not? I ...

Clean way to offer a 'review' stage in an ASP.NET form

I'm currently working on a reasonably complicated data input form, based around ASP.NET Web Forms. After the form has been completed, we'd like to offer a chance for the user to review their input before actually submitting the form (as well as going back to make changes to their data if requried). Due to the large number of fields, I w...

asp.net lock() doesnt work

i try to put a lock to a static string object to access to cache,, the lock() block executes in my local,but whenever i deploy it to the server, it locks forever. i write every single step to event log to see the process and lock(object) just causes the deadlock on the server. The command right after lock() is never executed as the i do...

ASP.NET WebService without Complex Types

I'm trying to build a webservice with ASP that will be given three parameters: a string, a date/time and another string. After making the method, the wsdl contains this: <s:element name="TimesheetAudit"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="employeeNumber" type="s:string"/> <s:element minOccurs="1" ...

What Happens When You Set A Parent Control's Enabled Property?

I have a container of custom controls each of which have 2 controls in them. One to display when enabled (i.e. a textbox, or checkbox), and a label to display when disabled. I've overloaded Render like so: Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter) If Me.Enabled Then _item.Rend...

ASP.NET - temporarily impersonate the app pool service ID when default it to impersonate the user?

I have to call some code in a SharePoint site that runs under the same service ID that the web application is running under. By default, SharePoint impersonates the user viewing the web page, and the users don't have the necessary permissions. What is the best way to run some code using the web application's service ID, then revert bac...

Visual Web Developer Express with SP1 crashing when switching to design mode

I've just recently upgraded to using Visual Studio express editions with service pack 1. Previously I was using the express editions minus the service pack. The IDE for C++ and C# run fine for me but when running the Visual Web Developer IDE I get a crash when trying to switch to design mode on any page I attempt it on. I have been ab...

Why isn't the SelectedIndexChanged event firing from a dropdownlist in a GridView?

Hi, I cannot get my SelectedIndexChanged of my dropdownlist to fire. I have the following: <form id="form1" runat="server"> <div> <asp:GridView id="grdPoll" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:DropDownList ID="DropDownList1" runat="server"...

ASP FileUpload Controller in AJAX Accordion

I have a FileUpload Controller and Button inside an AJAX Accordion which I can't get working. The problem is that the FileUpload Controller requires a full postback for it to work. However, since the control is inside an update panel, asp is deciding to do a partial postback. Usually, you would just put the ControlId into a trigger on th...

How can I make an HTTPWebRequest to an ASP.NET web service and appear that I'm logged into that domain?

I have a web service that I can only hit if I'm logged into the website that the web service is on. I need to test the service remotely. So I've written some code to create a fake session that is logged into the site in another browser. Then I made the HTTP Web Request and I'm attempting to set a cookie that contains the ASP.NET session ...