asp.net

Can anyone recommend an IoC container for ASP.NET 2.0 Webforms?

As the title says, I'm looking for recommendations for an IoC container to use with an ASP.NET 2.0 Webforms app. I believe that some containers are .NET3.5 or newer only. ...

UPnPLib.dll - UPnPDevices.Count returning 0 (not right - please help)

This library comes with windows, in the windows\system32 directory, if you register it and type the following code (C#/VB.Net/VB6/Delphi either is fine): Dim devices As UPNPLib.UPnPDevices = New UPNPLib.UPnPDevices MsgBox(devices.Count) I keep getting 0, but i know this cannot be true because if i do a FindByUDN (in the UPnPDeviceFind...

Strange Request URLs in logged ASP.NET exceptions, but not in IIS logs

Getting unhandled exception event log messages for legitimate exceptions but the event log message includes noise in the request URL. The noise is injected where uri escaped characters are. Noise like the apppool name, "An unhandled exception has occurred.", False and sometimes the request url itself recursively injected, sometimes a do...

Button clicked twice before postback

Hi, This is really driving me crazy having been on it for hours. I have a url whose query strings are concatenated based on selected items on a form, I need to do a post to this url, but an imagebutton control has to be clicked for the post to occur. I put the PostBackUrl property of the imagebutton inside the event of the image button,...

File Upload / The connection was reset

I am writing an upload handler (asp.net) to handle image uploads. The aim is to check the image type and content size before the entire file is uploaded. So I cannot use the Request object directly as doing so loads the entire file input stream. I therefore use the HttpWorkerRequest. However, I keep getting "The connection to the ser...

How To Deny Access To File But Allow Server

I have a web application that has a configuration folder that houses multiple XML files that are configuration settings for multiple "portals" as you will. I need IIS to have access to them so the "portal" loads (sql connection strings, master page paths) but I want to deny any outside access (url browsing). Here's an example below: h...

Online Vehicle Tracking System in ASP.NET

Hi! I wanna make a web site for Online Vehicle Tracking using ASP.NET. I am good enough at ASP.NET, C# and SQL. Do you have any recommendation where i should begin? Any tutorial, any books? thanks. ...

How close Html window when click asp.net button?

I have asp.net button "OK" in html popup window. I after my logic done how close that popup window it self? <asp:Button Id="btnOK" runat="server" AccessKey="<%$Resources: wss,multipages_okbutton_accesskey%>" Width="70px" Text="<%$Resources:wss, multipages_okbutton_text%>" OnClick="btnOK_Click" /> ...

Does AdventureWorks ASP.Net web project exist?

I know nopCommerce and dashCommerce quite well, but I so far have never found any open source shopping cart (including HumanResources and Vendors) bigger than the nopCommerce. I'm wondering whether AdventureWorks database comes together with a web project or other UI projects as an open source. Or it just exists as a sample database on...

Asp.net SSO on same domain implementaion issue

I need to Implement SSO on my websites on same domain.I have provided a link on website 1 that redirect to website 2. I need to allow users directly logged in if coming from website 1 link otherwise just by typing url for website 2 should redirect to login page. On which event I can determine the request source(Requested URL)? ...

escaping string for json result in asp.net server side operation

I have a server side operation manually generating some json response. Within the json is a property that contains a string value. What is the easiest way to escape the string value contained within this json result? So this string result = "{ \"propName\" : '" + (" *** \\\"Hello World!\\\" ***") + "' }"; would turn into string res...

Complex editing on a gridview in C#

Hi all, I am working on an attendance system that has the following tables: Entry +---------+-----------+ + EntryID + EntryDate + +---------+ ----------+ Hour +---------+--------+---------+ + EntryID + InHour + OutHour + +---------+--------+---------+ With the following example data: Entry +---------+---------------------+ + En...

Callback function?

I need to callback Javascript function in my code, but not firing. I am providing details what I am doing?. I have input button in the page that calling javascript function. There I am loading another ProfilePic.aspx page. ProfilePic.aspx has FileUpload, OK and cancle button <input type=button value="Change Image" onclick="javascript:...

IIS 7 - Authentication in IIS vs Authentication in web.config

I'm relatively new to using IIS 7. I'm getting confused by the various options that IIS 7 provides. What does setting authentication mode="Windows" do in the web.config of my ASP.net site do? What does enabling Windows authentication in the Authentication module in IIS 7 do? What is the difference between these two? Does one override ...

No response from web page

I have a web page where I redirect the user to if I see that IP is not valid. I want that user's browser will get no response but kept into waiting state, but I also want that my server thread is not blocked for that request. So the idea was that server will response quickly but the user' browser will put into waiting loop to discourage ...

Add bottom side-to-side scroll bar to ExtJS Grid

Here are my two grids -- they are ExtJs grids however we wrap the declarations in vb.net code: Dim VehicleOptionsGrid As New Framework.WebControls.Grids.Grid With VehicleOptionsGrid .ID = "VehicleOptionsGrid" .Title = "Vehicle Options" .Toolbar.UseDefaultButtons = False .Mode = Grids.Grid.Grid...

IIS Worker Process and RAM question (w3wp.exe)

Hello. In my vds server (windows server 2008) some asp.net websites using iis worker and these use also 50 mb ram. Sometimes this is increase to 250 mb. Is it normal? ...

ASP.NET _doPostBack from Javascript

The follow code does not work in IE: <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $(function(){ $(":text[id*=txtPopCEP]").keypress(function(e){ var tecla = (e.which) ? e.which : e.keycode; if(tecla == 13) { ...

Passing file data between Administration app and Web site app

We have two separate web applications for a site: One for the site itself, and one for the cms/administration side. I'm not sure why the original developer designed it this way, but whatever. I am tasked with adding some functionality to the administration side that uploads files. These files then need to exist within the folder stru...

Need help tracking down sporadic "Unable to serialize the session state" server errors.

We have been receiving reports of the following server error periodically from users. [OutOfMemoryException: Exception of type System.OutOfMemoryException was thrown.] [HttpException (0x80004005): Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session stat...