asp.net

Open a pop up window maximumize to the user's screen configuration

What is best way to open a pop up window maximized to the user's screen configuration? I am using C# ASP.NET 3.5 web site project. Update: @Anthony - The windows xp task bar covers up some of the browser window. How do I set to maxmmumize and stop at the windows xp task bar? Update 1: I used the following the solution to maxumize t...

How to maintain confidentiality of transformed media in two-host configuration?

Let's say I have two machines, A and B, on the public internet (not an intranet). Machine A has a web server that hosts unencrypted images of confidential documents. Machine B hosts an ASP.net or Java servlet page for allowing manipulations of those images. The URL of media on Machine A can be passed to the page on Machine B, which ca...

Possible to run a javascript function after postback using an asp.net button?

I am trying to implement a web page that will on an asp.net submit button click will go to the server to add a row to the SQL database table. After that, on that same page, I want to be able to display the columnID as an alert using javascript (this has to be javascript). Is this possible? Any help would be appreciated. ...

Using images on Web Applications and Visual Studio for ASP.NET MVC

Hi all, I am developing an ASP.NET MVC applications with MS Visual Studio 2008 SP1. My project structure is the default one: Project |-Content |-css |-img |-Models |-Views |-Controllers The thing is, I am able to access all the content placed under Content directory provided the file is included in the project. On the o...

IIS7 Creating Virtual Directory to files on another server

I am migrating some ASP.Net applications from IIS6 to IIS7 and all has gone well until now. I am trying to create several virtual directories on 1 server that will point to files on another server. In IIS6, all I had to do was make anonymous authentication use a user that had access to the files. In IIS7, I can't get it to work. I setup ...

Web based visual query builder

I am after a visual query builder along the lines of http://ajax.easyquerydemo.com/. I am using ASP.NET but MVC so would rather something that is not WebForms based like the one in the link. If anyone knows of similar tools that are largely platform agnostic please let me know. ...

Programmatically checking code complexity, possibly via c#?

Hi all. I'm interested in data mining projects, and have always wanted to create a classification algorithm that would determine which specific check-ins need code-reviews, and which may not. I've developed many heuristics for my algorithm, although I've yet to figure out the killer... How can I programmatically check the computationa...

From ASP.NET, How to Download Two Excel Files and Invoke Batch Command on Them?

Hi All, I need to download two Excel files onto the client, and then run a (diff) executable against them. I know how to download a single Excel file, from here. But how to download a second one automatically in succession? And then how to run a batch command on them? Is this even realistic? Any guidance or pointers would be gr...

asp.net doesnt display web page when connected to internet

I have developed a website in asp.net when I disable my internet connection it runs but otherwise when I am connected to the internet I get this error: ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://localhost:4719/IWS/ The following error was encountered: Connectio...

asp.net page is not responding while converting word document to html

i m using microsoft.office 11.0 object library and microsoft word 11.0 object library. The code makes problem only when we host the website locally or in server other wise it function well. i think below code makes problem. Ant one pls help me. i m in an urgent. Microsoft.Office.Interop.Word.Document doc = wordApplication.Documents.Open...

ASP.net c# magical array issue

Hello, I'm encountering an interesting issue with the following code. productObject is a custom object that contains a number of product-related variables including a 'VendorLocationId'. Given these items in a listbox: "Town A" value:1 "Town B" value:2 Also given: both items are selected within the listbox. 1 productObjectArray[]...

ASP.NET Locks up only in a single browser

I have a complex application running on IIS7 and Vista. It usually works ok but sometimes during longer processing threads/pages it seems to block(appear like there is no more wp's), but it blocks only on a single browser. Eg I have firefox open and go to a page which sleeps for 10 mins, then I hit other normal pages and these pages al...

Running ASP.Net websites in Medium Trust environments

Hi, Disclaimer: I have limited ASP.Net skills I have a couple of websites which I am transferring from my current hosting onto the Mosso hosting service. When I tried transferring one of the websites, I got the error "System.Security.SecurityException: That assembly does not allow partially trusted callers.", which appears to have to d...

Disabling account lockout with the SqlMembershipProvider

How do I disable the account lockout feature of the SqlMembershipProvider? The MSDN documentation for the MaxInvalidPasswordAttempts property does not specify how to disable it. If I can't find the correct way to do it I will set the maxInvalidPasswordAttempts attribute to the maximum value of an int which may effectively achieve the s...

Delete from multiple tables ASP.NET

How to delete from two tables at once using the same delete statement in ASP.Net? ...

Concurrency between windows and Web app C# asp.net

Hi, I am wondering if there is a best practice in regards to concurrency between asp.net and a windows app using the same db? I have a db with items their quantity, any of these items can be sold with different quantities from a website shopping cart or store location. updating the item quantity when user adds the item to their shopping ...

What are the pros and cons of these client options in C#? winforms, WPF, Jquery, ASP.NET AJAX, and Silverlight

just wanted to clarify the options for client presentation : 1) winforms - for windows client - older technology 2) wpf - for windows client - newer technology, uses xaml 3) jquery - for web client - uses javascript 4) asp.net ajax - for web client - older technology 5) silverlight - for web client - new...

store HttpContext.Current.Request.Files in session variable

Hi, I want to store files uploaded by user in session variable,so that i can use it from any page i want in my project.i am retreiving files from statement: httpFileCollection uploads=HttpContext.Current.Request.Files; how can i store and retrieve this in session variable?? Thanks in adavnce ...

URL Verification in multi-tenant architecture

what would be the best way to verify URLs in a multi-tenant architecture web-app to make sure that a user from one org does not gets access to the another org's data simply by changing the query string parameters. I dont want to be doing a verification on each page load. the app is being built on ASP.net 3.5. ...

ASP.NET Solution Migration to 3.5 .. but only for *some* of the CS Projects !

I need to migrate a .net solution from 1.1 to 3.5. The solution currently contains 2 CS projects 1) a Class Library and 2) a Web Service application. Problem: I need to migrate the solution file and the Web Service application project, however I cannot migrate the Class Library as it is shared with another solution that will not be mig...