asp.net

Preventing quotes causing a HttpRequestValidationException

To prevent a HttpRequestValidationException I httpEncode (using a javascript library) my input to send it to the server, where it is httpencoded again and stored. Then process it reversed to get it back, with an extra encode added if it's going into a label. This seems to work fine but I get a HttpRequestValidationException if I put a s...

Are there any asp.net or jquery wysiwyg editors that work inside an updatepanel

I've tried multiple editors and have been able to successfully find one that works 100% of the time in an updatepanel and in IE8. ckeditor works fine until a postback in which it fires a hidden error. There are posts on it but no successful resolutions. I was wondering if anyone has an example site that successfully used an editor in an ...

CheckBoxList binding needs second collection to determine checked status

Hello, I have a situation where I need to databind a string array to a CheckBoxList. The decision if each item should be checked, or not, needs to be done by using a different string array. Here's a code sample: string[] supportedTransports = ... ;// "sms,tcp,http,direct" string[] transports = ... ; // subset of the above, i.e. "sms,ht...

ckeditor in asp.net

I have to use a ckeditor in my application but I dont know how to write the @ Register Assembly="" Namespace="" TagPrefix="" %> From where I could get the assembly? ...

Do I need a server to run a .net framework web application?

Is a server needed for the .net framework to run a .net web application on my local machine? The application is on my local machine and I have configured it in IIS. I am connecting a server(xxx). Does xxx need the .net framework to run a .net web application at my local machine? ...

APIs for implementing Document Editing and viewing features for a web app?

I'm looking for APIs to bring online document editing features for a web app - Any suggestions? The criteria of selection depends on the following factors Support for editing for common document formats (doc, docx) Support for viewing common document and presentation formats (doc, docx, pdf, ppt, pptx) The API should be easily accessib...

String manipulation in GridView on render (or prerender)

I need to dynamically modify the contents of a column in a GridView1 before it is displayed. Basically, I need to convert every 'Environment.NewLine' in a field to a so it displays as a new line on an ASP.NET page. How do I do this? ...

Define constants (enum like) for using in all projects and easy maintenance.

I had this question solved: http://stackoverflow.com/questions/3898217/define-dynamic-enum Which I needed to get some Codes defined in the web.config from a class in App_Code for easy call. Well, the problem now is that I need to use this same Codes inside my business classes (and they won't access Web.config keys.. Accepting any solut...

Linq2sql count grouping vote entity query problems, can't get properties once grouped?

I'm building a music voting application, similar to stack overflow almost. I have 3 tables, Charts, ChartItems, Votes. I'm trying to bring back a list of chartitems, which link to a single chart, with the number of votes for each chart item counted. This is what I am trying currently var firstList = from chartItem in db.ChartItems ...

Internet explorer sending cookies even though they are blocked?

I have a strange problem with an ASP.net website whereby we perform a cookie check to see if cookies are enabled and if not redirect users to a page on enabling cookies etc. This is working fine in all browsers except for Internet explorer, whereby I get past the page that performs the cookie check without this redirection. I attached th...

Accessing resource strings with CultureInfo in .NET

Another simple questions. I have website with different languages. If I want to access a string from the resource file I would use it like this Resources.MyResourceFile.MyStringIdentifier Very easy. That way I know during compile time, that the resource string exists. Now, this works only if I want to use the current Culture. Somet...

Editable Combobox with ExtAspNet?

Does anyone know how to achieve an editable combobox with ExtAspNet? The input element has its readonly attribute set, so I think I can just remove that attribute, but I'm wondering if there is an easier way. ...

GridView and objectDataSource

Hi All, I have a grid view that bounded to an object data source that select data from type of student public class student { int id; string name; int age; public List<students> GetAllStudents() { // Here I'm retrieving a list of student from Database } } In the UI Control ascx <asp:GridView ID="MyGrid" ru...

Setting label text in DataBinding in a GridView (ASP.NET/C#)

Hi all, I need to perform some string manipulation to a columns contents in a GridView, and I'm using the DataBinding event for the template field for this. I'm converting all Environment.NewLine's to 's for outputting. Here is the code: protected void Label1_DataBinding(object sender, EventArgs e) { Label lb = (Lab...

Dblinq reference in ASP.NET Web Service on MonoDevelop causes xsp2 to fault

I am trying to try DBLinq with the sqlite provider inside a simple ASP.NET web service. I am also using MonoDevelop 2.4 and Mono 2.6.7, The project in monodevelop references the DbLinq.dll which by default is set to be Local Copy. I can compile the webservice just fine. By when I try to run it from Monodevelop or using the xsp2 f...

ASP.net on-line calendar consumed into outlook

Hi I have an on-line calendar of company events that is based in a sql table. The fields are Date : Event Name : Event Description : Location Is there any way of publishing this via say an rss feed via asp-net or a web service for it to be consumed into the outlook calendar. This would have to update every morning on the subscri...

How to override DataAnnotations Required tag to allow conditional client side validation

I am using DataAnnotations tags for client-side validation in ASP.NET MVC2. I am using the Required tag, but in my case marking a field as required is not always an absolute. I have other conditions that determine whether or not a field is required. Is it possible to override the required tag to allow for this conditional logic? I wo...

Which dll will aspx compiler use when a dll is referenced one but multiple versions exist in bin folder

I have an ASP.NET Web Application which has a reference to 'C:\references\Utils.Varia.dll'. There is another dll referenced which uses the signed version of this dll ('C:\references\Utils.Varia.Signed.dll'). Now in my aspx i have the following imports directive: <%@ Import Namespace="Utils.Varia" %> This page uses a string extension fr...

Possible to execute jQuery on C# string object?

I am retrieving the HTML source code from a remote URL via C#. I am storing the html in a string. I would like to parse through it, but do not want to use RegEx. Instead of want to leverage the jQuery engine to parse through it. Is this possible somehow? This is how I getting the html from the remote url: HttpWebRequest wr = (HttpWebRe...

.NET Webservice sessions

Hi guys, I'm having some wonders. How's session based authentication designed for webservices ? Imagine I do have a web solution where people can sign up and then log themselves in, then they can do stuff that's processed by webservices (either hosted on the same machine or on a remote server). I know how to manage sessions after log i...