asp.net

How to set multiple selected values in asp.net checkboxlist

I have a asp.net checkbox list bound to a linq to sql datasource and when I check the item count of my CheckBoxList on the page load event it is 0. I want to be able to set the selected items on my checkboxlist here but cannot. The datasource's selected event fires after the page load. If this is the case, how can I set the selected ite...

RIA Services + Entities - Date moving 24 hours earlier in client

Hi All I am currently working on a silverlight project with RIA Services and have seem to come across a bug(or wrote a new one). In a simple query I am retrieving a entity model from the server. In the server side service class a DateTime is correct(to what's in the db) but on the client it seems to go back 24 hours and maybe 10 hours....

how to configure memory size for asp.net inproc cache

I do not want asp.net to take decision on when the items in the cache should be invalidated, rather the business logic should trigger the cache clean up. Asp.net automatically invalidates some items from the cache when the cache usage reaches a particular threshold value (inbuilt optimization in the framework). As of now the virtual m...

Preventing anonymous user from submiting form many times in ASP.NET without SqlMembershipProvider

Hi, I have a simple form that dumps selected answers to XML file. How to prevent anonymous user from submitting this form many times? I am not looking for totally bulletproof solution, and I have a limitation that I cannot use the database, and therefore no SqlMembershipProvider. Will some cookie checking work? How to do this right? ...

Retain anchor after postback in asp.net

I'm using a coda slider like consctuct on one of my pages. Naturally, the anchor ("#currentTab") information is lost after a postback. This is annoying because when you press a button on a certain tab, you always end up on the first tab after the postback. What is the best way of letting this information survive a postback? ...

Is ASP.NET MVC worth looking into?

Now that ASP.NET MVC has had its official release, should I be looking into it for my team? We're quite a small team (6 developers), developing mainly in-house applications for administrative teams. Any, and all, advice is appreciated. ...

C# and IIS - SSL dropping connections, fine over HTTP

In a testing environment, I self-signed a cert and installed it on a web site in IIS 6. This is using .NET 2.0. Cert seems fine (minus the fact that client services don't fully trust it as one would expect). I can do whatever I want to by hitting the site locally from the server on HTTPS or HTTP. The problem is coming in when accessing ...

Looking for a free SMS gateway that works with C#

I have developed a Website in ASP.NET 2.0 I want to send an SMS to every person who registers to my site. I want to do it in C# code, is there any service[webservice] which I can use and send free SMS to any mobile. Thanks in advance ...

Web.config for authorization of a private user folder

I have a private folder with thousand of users' folders which only be accessible by the correct user. No user can access other users' folders. I can only think of creating a web.config authorization rules for each of the users' subfolder. In this case, I don't have to add every rules for each user in one web.config files. I am wondering...

multiple Html.ValidationSummary's in a single .Net MVC page?

Is it possible to have multiple Html.ValidationSummary's in a single .Net MVC page? I have a create user and a login form on the same page and would like to have to summaries ...

How do I output XML as a string from an XmlTextReader into a Response.Write?

I have retrieved some XML from an API (at least I think so, the server response is 'OK') however I am putting the response stream into an XmlTextReader, how do I output this XML as a string? ...

GridView.PageIndexChanging fires but there's no SelectedIndex afected!

Hi. I have tow diferent implementations for the same problem. A gridview that is binded with some data and it has a select column that has a button. When the button click is fired I know in debug that the : sender.SelectedDataKey and sender.SelectedIndex have values that I use later. But now I whant to use the ajax accordion control. I...

What is the best practice for URL rewriting a Blog Article Address?

Hi, I see many sites that have address like this: http://www.myblog/2008/10/10/articl-title.aspx Question 1 If I am using linq2sql to pull the article it is obvious that i must search for article in db using Startwith() function, but is this really smart and precise over searching using the ID ? Question 2 What is the best way to ...

Use Oracle 6 from ASP.NET application

I have an ASP.NET 2.0 web application. It uses "System.Data.OracleClient, Version=2.0.0.0" to access an oracle database. I get the following exception on connection: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. I looked it up and found several articles/posts that say that the error is misleading and ...

Dynamically identify/locate HTML tables within a page?

Admin users can add HTML content to a website via a CMS textbox control. When this content is displayed to a website visitor, I'd like to identify the presence of a HTML table (added by a Admin user using the CMS) and display an option for visitors to export that table. I can handle the exporting, but identifying the HTML tables has me...

ASP.NET Is it possible to differentiate session length from user?

In asp.net session length, can it be of a different length depending on the type of user logging in? I want admin users to timeout after 3 hours, but standard users to timeout after 30mins, because staff in the office often have multiple windows open, and requested a longer session length. I'm a little sceptical about lengthening it for ...

What should go in my Lucene document?

I use Lucene.net to index content and documents etc.. on our CMS. This has worked well so far, but now I've got to take account of the following additions to web pages: Publish date Expiry date Page 'is active' User authorisation So the search results should only show pages that are within the Publish / Expiry window, are 'active' an...

Can i live without IIS 7 integrated mode ?

hi, i wonder what are the pitfalls of not adapting it, as i am facing many problems with integrated mode. for example URLRewritng.net is not parsing Arabic query string with integrated mode, plus many other problems. better yet question that is their ability to combine both from web.config, i mean let some HTTP handlers and modules fu...

IIS 6.0 and ASP.NET - Could not write to output file ... The directory name is invalid

I'm running IIS 6.0 on Windows 2003 and started getting this error: Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7382c13f\ea9b3ff7\App_global.asax.zodyof_q.dll' -- 'The directory name is invalid. ' I've checked all the permissions, and every...

Experience using gcServer="true" to set garbage collector for .NET

Someone has used a configuration enabling the garbage collector optimized for multi-processor machines using Aspnet.config with : gcServer enabled="true" gcConcurrent enabled="true" There was improvement in the performance of your site? It was noticed a problem? ...