asp.net

IIS 6 not serving up asp.net 1.1 pages?

Ok, this is strange. Some background Windows 2003 R2 SP2 32-bit IIS 6.0 I've got a very simple dot.net 1.1 example app that just echoes something to the screen via a response.write. Works fine on my workstation. Once I deploy it to this server, when i go to the page, it wouldn't render but instead serves up the source code of my as...

How to host a WCF service in a Windows Service and get it to respond to WEBGET requests?

Hi, I've been asked to write a windows service which will respond to WEBGET. I'm new to this. Can someone tell me if this is even possible. I originally wrote the service as a webservice and it worked fine. The contract I have is: [ServiceContract(Namespace="http://Microsoft.Samples.WindowsService")] public interface IService { [Ope...

GridView strange behaviour

I have problem on page bellow, in gdvCar_DataBound I add three buttons, when I click on any of them, page go to postback but doesn't enter in gdvCar_RowCommand and then that buttons ( and images that I also add in gdvCar_DataBound) disaper. Grid is then full like gdvCar_DataBound isn't execute. My question is why it doesn't enter at gdv...

ASP.NET Tab index in a sequence..

Hi I have a set of text boxes and html editors in my form. I am not able to set the proper tab index. The tab index moves from the first text box and skips all the controls in between and reaches the last html editor and the third tab takes me to the address bar and then it moves randomly all over the controls. I now want to remove the...

Retrieving the underlying dataitems of selected gridview rows

I have a button on the page and a gridview with checkboxes on the first column. The gridview is bound to a List. On buttonClick, I need to retrieve the underlying bound data item (MyEntity) for each selected row. How can I do this? I can't simply recreate MyEntity based on the gridview columns, because I am not displaying all the fields...

Good service for getting location by IP?

Which detect location most accurate. ...

PopUpExtender on ImageButton inside GridView problem

I have GridView on my asp.net page, one column in that grid is ImageButton (TemplateField with ID="imbReserve"). On click on that button I want to show PopUp, but when I put TargetControlId="imbReserve" I get error message " A control with ID 'imbReserve' could not be found". How to achieve this, on click on button inside Grid show PopUp...

Programmatically find when the ASP.NET worker process and app domain last started?

In ASP.NET: How can I tell when the ASP.NET worker process last restarted? In ASP.NET, how can I tell when the app domain last recycled? ...

Free Comment and Rating control for web page ?

Hi, Is there a free web control out there which can do following. Post new Comment Rate any posted comment Rating should not be duplicated. User can only rate any comment only once If there is nothing out there then I may just write one and publish it to the public. Thanks ...

Learning Materials for ASP.NET MVC 3.0? Please list!

Hello, I am looking for learning materials (like blog posts and tutorials) for ASP.NET MVC 3.0 specific materials. If you know of any books, blogs, sites or online resources that are exclusively, predominently or even mainly MVC 3.0 related, I would love to hear about them, also, specific links to individual MVC 3.0 related tutorials & ...

How to read web.config APP key settings in HTML markup

I have an ASP.NET site which uses a 3rd party activeX control. I have to pass a few parameters to the OBJECT tag in the HTML page. If i hardcode these parameters into the HTML everything works. I would like to place the parameters in my web.config with app settings "key/value" pairs. My problem is i cannot read the app key setting in ...

C# Compile Time for Last Updated

I have a website and I want to include a "Last Compile Time: XX:XX:XX" in the footer of the website. Is there an automated way to alter the contents of an asp:label at compile time? ...

ASP.NET Form Validation Doesn't work first time

<asp:UpdatePanel ID="LoginPanel" UpdateMode="Conditional" runat="server"> <ContentTemplate> <div id="login"> <div class="row"> <div class="label"> <asp:Label ID="lblUsername" Text="<%$ Resources:Login, UserNameField %>" runat="server" /> </div> <d...

Unity 2 trouble referencing RegisterInstance using InjectonProperty

I have the following code: Unity Container: Settings settings = CreateSettings(); container.RegisterInstance(settings) .RegisterType<MyHttpHandler>(new InjectionProperty[] { // How do I tell Unity to inject my settings created above? new InjectionProperty("Settings", new Resolved...

Problems in the global namespace when I try to use my custom server control (in the App_Code directory)

Traditionally I use the regular asp.net website (created using the File > New Website). Recently, I opted to work off of a full fledged project (created using File > New Project > ASP.net Web Application). I've been using the same custom controls for years without incident. I simply create the new website, place my CustomControls.cs f...

ASP Login Web Control events are not behaving as expected

I have an .aspx page that contains an <asp:Login> web control. For authentication, I have another class (MyMembershipProvider) that inherits the System.Web.Security.MembershipProvider class. The login process is working fine - i.e. username/password is properly authenticated by the MyMembershipProvider object. My question is in regar...

Radical techniques for reducing ScriptResource.axd? (and optionally WebResource.axd)

Scenario: I have a complex Asp.net app serving various units through programmatically constructed control collections in HttpModules. Some of these controls use Asp.NET Ajax. Across many different units, ScriptResource.axd averages a transfer size of ~27k. I have a ceiling that only allows ~3k for it. There definitely isn't time to ...

Best|Useful tools for ASP.NET/C# Devs?

What tools do you use to develop .net apps? Things that make life easier|quicker. Fiddler was just recommended to me but I'm not sure how it works yet, though it looks interesting. I also use Notepad++ as a quick text editor. Aside from that, it's just VS studio for me. ...

How do I get these values from a string?

The webservice returns the following string "ID: xxxx Status: yyyy" How do I get the value ID value without the "ID :" text, and "Status" value without the "Status: " text. Id value should be xxxx Status value should be yyyy the value length is unknown. ...

Dependency Injection and code maintainability

I am working on a (vb.net/asp.net) project that is using interfaces to provide dependency injection. But to me, it feels like the maintainability of the code has been killed. When I want to read through the code, I can't simply jump to the code of a related class that is used. All I see are the interfaces, and so I have to hunt through t...