asp.net

Is there a benefit of turning ViewState Encryption Off (asp.net IIS7)?

I understand how to turn off ViewState encryption for asp.net web applications. I want to know if I should. My question is more from a performance stand point than a security one (All of our traffic is on a private network and we do not store any sensitive data in the viewstate). Before I dedicate hours of setting up tests scenarios...

Exception ThreadAbortException on RedirectFromLoginPage

Hello people ! I'm having some trouble when people try to log on my system in IE8. Before tomorrow everything is fine, but now when they try to log on the line who call RedirectFromLoginPage method throws ThreadAbortException exception. After some investigating i found that if i change createPersistentCookie to false they can log norma...

ASP.NET Pop-Up with wizard control. UpdatePanel vs Iframe

I have an implementation question. My Job wants me to create a popup with an updatepanel inside of it. The updatepanel would have a wizard control that would take you through some steps. Would it be better to use and Iframe to simulate an updatepanel between steps or just use an updatepanel? ...

what type of visual studio website/project should i use?

I wanna build an online project by using ASP.NET , It is an online timetable creator which takes the information from different schools , stored them in a DB then build a timetabel object for each school. first: what type of a website/project should i use in visual sudio 2010? second: how i can store the timetabel object -that made fr...

The Best Way For Transfer Data From One DataBase (sql server 2008) To Another db(sql server 2008) With Different Schema....

hi my dear friends : what is the best way For Transfer Data From One DataBase (sql server 2008) To Another db(sql server 2008) With Different Schema? is there a program for doing that ? thanks 4 your future asnwer best regards ...

Web config size limit exceeded under IIS7 0x80070032

I have a web.config file which is quite large in my current solution running on IIS7. It's working perfect on my dev server however I encounter the error 0x80070032 "Config Error Cannot read configuration file because it exceeds the maximum file size" My current solution uses a very large web.config file. The architecture of my CMS ap...

Spell Checker for my asp.net mvc application

hello Friends, Can any one provide me a good tutorial about to implement spell checker? that is I have a textarea and one button.. what ever I enterd in to the textarea i need to do the spellchecking on that.. thanks Thanks ...

ASP.NET: HttpRuntime.Cache getting flushed when saving WebConfigurationManager -- Is this a bug?

Recently, I've been experimenting with caching objects with HttpRuntime.Cache and I was generally under the impression that if I "added" something to the cache like this: HttpRuntime.Cache.Insert("Test", "This is a test!", null, Cache.NoAbsoluteExpiration, Cache.NoSlidingExpiration, CacheItemPriority.NotRemovable, new CacheI...

Is there a C# framework for parsing and validating CSV/XML files uploaded to an ASP.NET site?

I have a product-based website and I'd like to expand the number of file formats/layouts that we accept for inventory uploads. Ideally that would be done using some existing implementation that supports various file formats and assists in validating and allowing user corrections to the uploaded data. Anything giant and "servery" like Bi...

File upload Date add in table and display on grid.

Hello, I have table called tblfiles. I've added loaddate column here. I am uploading file to table using button click code. I want to add date in table automatically like system date and display on my grid. I am not entering date here, I need get automatically in table and display on grid. I am using C# .NET and SQL Server 2005. Here'...

ASP.NET MVC 2 - avoiding returnUrl parameter being set by partial view's Ajax ActionLink

In a master / detail scenario, I use an Edit ActionLink that fetches the partial details view via a jQuery Ajax call; pretty typical, right? The problem I've come across is when a user's auth token expires and he clicks on the Edit ActionLink. The returnUrl parameter of the LogOn action is being set by the ActionLink that returns the p...

Is something wrong in this Spell checking using jquery

<script type="text/javascript"> // check the spelling on a textarea $("#check-textarea").click(function (e) { e.preventDefault(); $(".loading").show(); $("#text-content") .spellChecker({ lang: "en", engine: "google", suggestBox...

Entity Framework 4.0 Scaling and Security

I want to use an ORM, and have been looking at EF 4. Is this platform scalable. I see a lot of stuff on the web, but everything looks very biased in one way or the other. Anyone know of benchmarks or non-subjective information. On that point, does EF prevent SQL injection or XSS. I know that it used parametrized queries, but is that eno...

Is ASP.NET with .NET 4 faster

I'm looking to upgrade my ASP.NET web app to the .NET 4 framework. Would I see performance improvements right away? ...

How can I get the URL of the current page from within a C# App_Code class?

I have a logging class that, well, logs things. I would like to add the ability to automatically have the current page be logged with the messages. Is there a way to get the information I'm looking for? Thanks, ...

ASP.Net DataGrid OnCheckChanged Event Row Information

When using a GridView, not in edit mode, is there a way to get ANY information to the Event in the CodeBehind. I would really like to be able to use the same thing that is used on button with CommandArgument But it dosent have anything like that on a checkbox. I could of course just use images, but I shouldnt have to, there should be an ...

Regular Expression Pattern Error C#

When I have an Expression declared like someText = Regex.Replace(someText, @"/*.*?*/", ""); The Error Says System.ArgumentException: par"/*.*?*/" parsing - Nested quantifier *. How to rewrite the code to avoid this error? ...

Page Expire in Asp.Net

My site has a master page, that part of it is a login section. Some of the content pages can be viewed by all visitors, including guests, while others are subject to security level. After logging out, I want to prevent the user from pressing the back button on the browser. If possible, showing a Page Expired form. ...

links in nested master page pointing to both master pages

i have 1 master page with a 2 page form in it. since i cannot accomodate both pages of form on this master page, i made a nested master page which shall load with page 2 of the form. Now the original master page has 5 different URL links in it. I want these links to be seen from both the master pages. So doesnt matter where the user is, ...

ASP.Net LinkButton CommandArgument property ignores <%= .. %>

I'm trying to do what I thought was a very simple operation to set a property on an ASP.Net LinkButton control but for some reason ASP.Net is ignoring the tags and just passing through the value as a string. <asp:LinkButton id="viewDetails" runat="server" Text="Details" OnClick="btnDetails_Click" CommandName="ItemID" CommandArgument="<%...