asp.net

Facebook development toolkit for .net - setinfo

I'm playing with the Facebook development toolkit and I can't get profile.setinfo to work. The documentation is not useful. I'm using the latest source - 28656. Can someone post a VB.Net example for me please? Update: I was asked for a specific problem, so here it is: Setinfo takes a List(Of facebook.Schema.info_field) and info_fi...

HTTP Handler problem

I've got an HTTP handler set up in the web.config file: <add verb="*" path="*_*.aspx" type="SeoHandler"/> And have a file SeoHandler.ashx in the root of my web site that points to a SeoHandler.ashx.cs in the App_Code folder (the web site isn't a Web Application project). When I run the site locally and type in a URL like "dor...

Can I use ASP.NET AJAX History without having .NET 3.5 SP1 installed?

Is it possible to use this feature on a server that only have .NET 2.0 installed? After an initial look into how AJAX history is implemented, I'm not sure it would be easy. I am just curious if anyone knows of a way to do it. ...

when running asp.net project I get: Internet Explorer cannot display the webpage

hello, I recently installed vs2005 with sp3.5 on a new vista computer. Never had Visual Studio installed on this computer. whenever i'm building a web project, i receive the following: "Internet Explorer cannot display the webpage". I can't run any of my projects... Thanks ...

ASP.Net Time Localization

I'm working on a site that lets users add calendar entries, on the main page all users can then see these entries with some text saying how long until those entries are current for example Entry 1 : 5 Minutes Entry 2 : 7 Hours Entry 3 : 4 Days The problem I'm having is that everyone could be in different timezones. I've decided I want ...

Multiview Vrs Multiple aspx pages - which one is better..?? (regarding speed..)

Hii.. I am using a Multiview for a application. Each aspx page contains Multiview. A single multiview contains atleast 5 to 6 views. (so less no. of aspx pages). When user clicks any button such as say "Edit View" (where user can edit his entries), a diffrent view is displayed. So user feels that he is redirected to another page. So a s...

Sending SMS

I want to send SMS from my Web application in C#. Can anyone guide me as to how this can be done ? ...

User impersonation with ASP.NET Forms Authentication

Scenario: In an e-commerce system, a helpdesk user should be able to "impersonate" or "log on as" a specific customer (from the web-based administration site) so that he can support the customer first-hand - eg. when the Customer is on the phone. Additional clarification: There is no need to keep track of the original authentication con...

Visually edit C# imagemap control?

Hello gang, I just discovered the imagemap control in Visual Studio 2008. I'm familiar with the imagemap concept from HTML, I'm just used to having editors that allow you to select areas visually, like drawing a hotspot on the image itself, and the software generates the HTML itself. But I can't do that in Visual Studio, and I have about...

.NET Entity framework project layout (architecture)

I'm trying to determine how best to architect a .NET Entity Framework project to achieve a nice layered approach. So far I've tried it out in a browse-based game where the players own and operate planets. Here's how I've got it: Web Site This contains all the front end. C# Project - MLS.Game.Data This contains the EDMX file with all...

need help in asp.net content page

Hello all, Somebody please help me how to place the content page in center of the page.I am trying to do using css class but content doesn't have css property.In my application when i am clicking on LOGIN DETAILS , that page should open in the center but opening under the menu item. Here is my code: ...

Is it possible to change the HostName for a request in ASP.Net on IIS6/7?

Hi, Is it possible to change the HostName for a request in ASP.Net? We need this for rewriting all requests to abc.xyz.com to abc.xyz.com/sites/abc (we are running Sharepoint). I understand this is possible with ISAPI. We are running IIS7. Kind regards, ...

How can I know online users of my web site

I am setting the value of Session["UserID"] to Id of logined user, so I can know who the user is. But I want to know all users logined my page, and show the list of them. ...

ASP.NET WebForms Data Binding Solutions

I am looking for some easy to use data binding to forms controls. Something that will handle formatting, validation and error handling, something that will handle filling controls from business object/DTOs and vice versa with minimal code. I did use google and have found these two links: Implementing two-way Data Binding for ASP.NET ...

What does variable names beginning with _ mean ?

When writing my first asp.net MVC application using C#, I see that there are some variables whose name start with an underscore character(_). What does this mean? Is there any specific meaning for this? ...

ASP.NET RegularExpressionValidator, validate on a non-match?

Is there a way to use the RegularExpressionValidator to validate only when the ValidationExpression does not match? In particular use a PO BOX regex to validate an address that is NOT a PO BOX. Thanks! ...

Use of a microphone is Asp.Net application

Hi, Since SilverLight doesn't natively supports the use of microphone, is there a workaround I can use to get a live stream of what the user said in his microphone. I need to access to a audio stream (from the user client microphone) that a server class (c#) will use. I look to use Flash or Java applet, but it's all seems to be pretty...

Explanation on how this code using web namespace

Hi, HttpContext context = ((HttpApplication)sender).Context; In the above example, why do we cast sender to a HTTPApplication and not HTTPContext? Also, what is the purpose of the brackets? I know they are for casting, but if you get rid of HTTPApplication and the surrounding brackets, that leaves: (sender).Context; Why not sende...

Performance vs Quality of Code

Do you think it's worth trading off some performance for code-quality and maintainability? I remember a post by Jeff Atwood that stated that hardware is cheap, developers are not. I think I'd like to change that to "Hardware is cheap, time is not." I've noticed with an MVC project I've been working on lately that sometimes I lose DAYS...

Illegal characters in XML document in ASP.NET Web Service

I'm going to ask and answer my own question, I hope nobody minds but I thought this might be useful to other people. If you setup a ASP.NET Web Service that returns objects that contain characters that are invalid for XML an exception will be thrown after the object is serialized in to SOAP xml and the client attempts to deserialize tha...