asp.net

When I logged in I have to be directed to a specific form

I am new to .net. I have created a page with login. When I enter the information and when the username and password match, "My home page" text turns into a hyperlink, when I click the hyperlink it directs me to a profile web-form. I need to modify the code in such a way that when the login details match the page should be directed to t...

LoginView not display databound control.

I've come to a scenario where I need to databind something only if the user is logged in. To do this I am using the LoginView control to display a Login control when they are not logged in and a GridView control when they are logged in. However, when I databind to the GridView object in the LoginView, nothing ever gets displayed. I have ...

ASP.NET reset thread culture after use?

If I set Thread Culture and UICulture for one ASPX, after pass for that page, all my aspx that use the same thread(not same request) will have the same Culture? Because I need to set Culture just for one ASMX ...

SSL in HttpContext.Current.Response

Might be a dumb question but I need a confirmation regardless. In ASP.NET, if a file was downloaded on a page that was protected by SSL, through a server-side postback that writes to HttpContext.Current.Response.OutputStream, is the transmission that file ALSO protected by SSL? Thanks for any help. ...

ASP.NET GridView - How to Perform Custom Update Statements?

Hi Guys, I have an ASP.NET GridView which displays a list of neighborhoods. I wish a user (administrator) to be able to edit the neighborhood name. Now, the database is quite complex, and as such, i can't simply provide an UpdateCommand / SqlDataSource for the GridView. I bind the data manually (on first load, and on the PageIndexCha...

Custom ascx control in modal pop up panel disappears after it triggers a postback

I have an ascx control loaded inside a panel tied to a modal pop up panel extender. The problem is that an action triggered by the ascx control causes a postback; when the postback completes, the panel controlled by the modal popup extender which contains the custom ascx control disappears. It is merely hidden though with it's default...

asp.net security issue, customErrors

we were all recently alerted by scottgu with this security vulnerability. http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx I'm wondering, since I've been redirecting errors via Global.asax on the Application_Error event, I was wondering if that can suffice the fix for this issue or do I sti...

Stop processing the ASP.Net page in Visual Studio 2010 at a breakpoint (but not terminate debugging altogether)

I am debugging an ASP.Net C# application in Visual Studio 2010, the application is running and execution is currently stopped at a breakpoint. How can I stop the page execution without "Terminate All" or killing the debugging process altogether, similar to what would happen if an unhandled exception was thrown? The "Break All Cntl+Alt+...

How can I get Html.RenderAction to call the Get method on a Post?

After rendering a view on a Post, a call to RenderAction inside the view will call for the Post method. Is there any way to specify I want to call the Get method instead of the Post? ...

Keep ASP .NET code-behind files on server?

I'm inheriting a web application and the previous programmer compiled all his code into a .dll. The .cs files are not present on the server. Working on previous projects, I've always uploaded the .aspx file and the corresponding .cs file. It's never been a problem for me and I always thought it was standard procedure. Am I wrong or jus...

How to pass the data path for object flash tag from the root directory?

Hello guys, I'm using urlrewriting to rewrite my url. Let me introduce my problem by bellow example: Here is old url: http://localhost/test/pages.aspx?pageid=1 I have 2 cases to rewrite: http://localhost/test/url-rewriting-get-start.aspx http://localhost/test/url-rewriting/get-start.aspx The first case is ok, but I would like to use...

ASP.NET WebFormsMVP PageDataSource Events Executing Twice For Unknown Reason

The problem is SelectMethod and other actions execute twice. This has been difficult to isolate, as it only occurs on a larger solution, and not in simpler demo applications. //.ascx <asp:FormView runat="server" DataSourceID="userSource" DefaultMode="Edit"> <EditItemTemplate> <mvp:PageDataSource id="userSource" SelectMethod="GetUse...

Communication between aspnet_isapi.dll and aspnet_wp.exe

This MSDN article states that: To guarantee optimal performance, aspnet_isapi uses asynchronous named pipes to forward requests to the worker process and to get responses. On the other hand, the worker process exploits synchronous pipes when it needs to query for information about the IIS environment (that is, server ...

ASP.NET authentification session

i have many sites under one asp.net forms authentification, they have mixed frameworks, some have 2.0 some 4.0. but it is all fine. everything works fine. but!! here part of my web.config: <authentication mode="Forms" ><forms loginUrl="../web/start_page/start_page.aspx" name=".ASPXFORMSAUTH" protection="All" path="/" ...

which is faster for running SQL on small tabular data (250 records), XML or SQL server?

I'm working on a small standalone .NET app needs to refer to some tabular data and its only just selects and at most these tables have 250 records. Previously developers have used a SQL server database. Would i get a performance advantage if i simply convert the table data to XML and read from that? Also is there any kind of performanc...

ASP.NET 4 Form inside a webform page..

I am new to programming but attempting to learn. Im running visual studio 2010 with an asp.net webform project using C#. I am trying to implement paypals buy now buttons on one of the pages and the code that is generated is in form tags also. No matter which button it is, the first button on the page never works and there is a solid blue...

dynamically built SiteMapPath in asp.net

I'm trying to build a dynamic site map on my site using SiteMapPath. Should be like this: Home > Products > %product_name% > Prices where %product_name% is set dynamically in the runtime, depends on user's choice. I've read many articles on the theme and choose this http://harriyott.com/2007/03/adding-dynamic-nodes-to-aspnet-si...

How can I solve this issue: "System resource exceeded"?

I'm using Access as a database in my asp.net project and I'm facing this error: System resource exceeded. Please guide me how to resolve this issue. ...

How does the URL Rewrite Module Work

I'm probably going to use the URL rewrite module for IIS 7 eventually and I have a fairly straight forward question that I really can't find the answer to. If you have a base case of: http://yoururl.com/page.aspx?ID=7 You can obviously have it rewritten to: http://yoururl.com/page/7 or whatever you want. My question is this: When u...

Cookies for different browser

I am using asp.net with c#. My issue is this that I am setting cookies to check that the same user is returning or not but user are returing from the same machine with different browser. Is their any alternate I would know that same machine user had visited my site. ...