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...
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 ...
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
...
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.
...
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...
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...
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...
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+...
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?
...
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...
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...
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...
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
...
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="/"
...
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...
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...
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...
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.
...
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...
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.
...