asp.net

Can I place ASP.NET user controls on pages without a control declaration?

I would like to put user controls on pages without registering the tag at the top of the page. For example: <p>some text</p> <myname:mycontrol runat="server" /> Is this possible? I've heard that tag declarations can be done in web.config... is this true? If so, any idea which .NET framework versions support this? Thanks ...

Problem setting cookie expiration to DateTime.Max (December 31, 9999)?

We're supporting legacy code that is dropping a cookie and setting the expiration to DateTime.MaxValue: HttpCookie cookie = new HttpCookie(cookieName, value); cookie.Expires = DateTime.MaxValue; It seems that on some browsers (which we are not logging), this cookie expires immediately--or may not even be getting dropped. According to ...

Does anyone know of a good asp.NET cascading droplist control with multi-select capabilites?

I've been looking for a good, preferably free, dropdownlist control. It should display a summarize the selected values in a comma seperated list. It should display the items as checkboxes, or be highlightable. The items should be able to populated from an AJAX type call. The only input submitted by the control should be the comma sepe...

How to create Web based visual Process Designer ?

I have been ask to design web based process designer (Business Process designer) in asp.net/c# . I have currently one programmer in my team and we have two months for this.We have found some open source BPM designers but we want to design our own as for our learning thirst? please give suggestions ...

jQuery's native ajax function vs ajaxDotNet plugin

I'm using jQuery with ASP.NET 3.5 and the ajaxDotNet plugin. What are the differences are between these two? ...

How to get value in a textbox that is readonly

hi guys, I have a textbox.In its onclick iam calling a javascript fn to call calendar.Texbox is readonly. Clicking on textbox calendar is coming and value is showing in textbox. But on clicking submit button where I have written code to save, there i am not getting value in textbox. What may be the reason for that? ...

Select static html elements by tag name in ASP.Net

Does anyone know of a way to select all plain-html <p> elements in an ASP.net page, server-side? In my case, I'd like to apply a bit of text manipulation to all of them before they go to the browser. I realize that I can add runat=server and then FindControl for each one. But that's a lot of code. This would be the equivalent of javasc...

GridView For Each

I have a gridview that displays items details, I added two template fields one is a checkbox and the other is a textboc, what I want is simply to check all the items the customer wants to buy, and write down the quantity in the textbox, when I click on a button, I should check all rows in the gridview and when the checkbox is Checked the...

How to fix the HTML Intellisense in ASP.NET AJAX Controls or Pages

I'm using ASP.NET AJAX. I create a .aspx page that is based on a .master file. I add the , , control into the content page, and suddenly the markup intellisense no longer works for these controls, or for any controls nested within them. Is this a bug? Can I fix this? ...

ASP.NET and diacritics

Hello all, I intend to create asp.net pages using Visual Studio 2008. Preferably, the pages should be fully compliant with XHTML standard. How should I include the diacritics into the page content (no need to use diacritics in URLs)? Should I use character references (the ones with "&"), or just writing them directly form the keyboard? ...

Good ASP.NET books for the beach

or train, plane or couch. Most programming books are quite thick and require you to sit at a computer while you read it. Some of the thinner ones, like "Efficient C++" for example, are much better written and you can read them on the couch. I am looking for books like that on recent ASP.NET technologies. One example (though not reall...

Issue in Using word 2003 in C#

I am designing a widows form using ASP.Net. Then I have tried to export the contents of the web page to word by converting the HTML elements into bytes and send this bytes to word. But in word It replies the web page contents with HTML properties like table property. It is happening only in word 2003 not in word 2007. How can I overcome ...

How to call server side function using jquery wth out page refresh?

How to call server side function using jquery wth out page refresh? ...

ASP.NET - how to display server stats / info?

In php there is a function phpinfo(); which displays a whole load of server stats and config information. What is the equivalent in ASP.NET? is there anything? cheers ...

Silverlight page added to html

Hey I have a silverlight page and I have a html page with my layout. How can I add the silverlight page to part of my html page? Thank you! ...

How can I call javascript method from my aspx.cs file

I have a javascript method which I have to call from the aspx page at the time of page load. ...

loading input from multi choice

Hi I have a task as that a dropdown list to choose an input type selections are textbox datetime number while choosing one of those types, I have to open the selected input(for example if user chose datetime I have to open a datetime input) For this task which is most suitable using aspview(each input type one view) for each ...

How do I generate a 404 error from an HttpModule?

I have an ASP.NET HttpModule that handles HttpApplication.BeginRequest to redirect some requests to other files. Typically I'll do something like parse the request, write a file to HttpContext.Current.Response.OutputStream then call HttpApplication.CompleteRequest(). For some requests I can't find the relevant file - how do I return a ...

System.Web.UI.DataVisualization.Charting + Spline Area + Display Problems

Hello, I am trying to create a spline area chart with the ASP.NET charting controls. Unfortunately, I have been unable to make it do everything I want to do. I want the horizontal axis of the chart to always show the lower and upper bounds of the data set at an interval of 1. The lower bounds will always be 1 and the upper bounds will a...

How can I validate that at least 1 radio button is selected?

How can I validate that at least 1 radio button is selected? ...