asp.net

Asp.net MVC 2 relation without Foreign Key with Entity Framework 4 Or With Foreign Key

1 - Is it necessary to have foreign key to obtain a Relation in Entity Framework between each entity.? 2 - I have a Language Table and many many table with a foreign key related to the language table. Is it right to add this foreign key or I should do something else ? Ex: Language LangID LangName TableTextA TblAID TextInfo Lan...

Can you reccomend me a book on asp.NET application deployment?

Hi, Can you advise a book or an article with full coverage of asp.Net application deployment? I mean consider you have developed your software on your local machine and now you want to host your application on a server. So I need a book, covering all the stages from selecting the right asp.net host to setting up the environment of your...

Basic Bing Silverlight Control ASP.NET C# Example

How do I add simple "pushpins" or other objects to a Bing Maps Silverlight Control from the ASP.NET C# code behind? I have only found examples for modifying the actual Silverlight control (i.e. MainPage.xaml). This is not the answer I am looking for. Thanks for the help, completely new to Bing Maps. ...

Correct way to build and publish asp.net web application (with or without MSBuild)

I'm using VS2008 (just in case it matters), and I have a solution with multiple projects, some are class libraries, and some are build tools, which the main web project is dependent on. Until now I have been publishing with VS right click publish project, and everything builds and deploys correctly. I've tried creating a few simple publ...

How do I correctly set an association between two objects in the Entity Framework 4 Entitydesigner?

For a new project I'm trying to create my business classes first and create the real database tables later. Therefore I'm using the Entity Framework 4 Designer. A created a new "ADO.Net Entity Data model" file, with the extension .edmx. I created two Entities: I want to add a 1 to nc relation between Product -> Group. If I'd created t...

Ajax framework failed to load with Gzip compression on IE only

Well, I got gzip working, but there are issues with IE. (works fine with FF and Chrome) Message: ASP.NET Ajax client-side framework failed to load. (and many other js related errors) How can I prevent gzip compression on ie browsers ?? Other people who had similar issues enabled compression in IIS and that seems to solve the issue, but ...

Javascript Intellisense in ASP.Net Usercontrols

As you will all probably be aware you can reference external Javascript files in Visual Studio 2010 using the following directive. /// <reference path="MyExternalFile.js" /> Great! Directives to external Javascript files that exist in masterpages are automatically transferred to content pages. Again great! However how can you create...

DotNet OpenID and ASP.NET membership

Hi, I would like to know if is possible to use DotNet OpenID together with ASP.NET membership. Or other way or allow OpenId account in ASP.NET membership. Thanks ...

How to change a View with a button on a Repeater?

I have the following structure <asp:UpdatePanel ID="MyUpdatePanel" runat="server"> <ContentTemplate> <asp:MultiView ID="MyViews" runat="server"> <asp:View ID="List" runat="server"> <asp:Repeater runat="server" ID="Repeater1"> <ItemTemplate> <asp:LinkButt...

Asp.Net Membership - Providers in Entity Framework 4

Hi, I have a website using ASP.NET Membership, Entity Framework 4 in place and MS SQL 2008 for DB. I would like to know if using ASP.NET Membership the interaction with the database will be pass using Entity Framework? Thanks for your help! ...

Only update actually updated fields in Entity Framework

Quite a common use case, it seems, is when re-populating an object from a form is to go myobj.Name = "textbox value"; myobj.Content = "textbox content"; But, name may not have changed, it may only be a change to the content textbox. The problem is that entity framework treats Name as changed just because I've set it's value, regardle...

Default Sharepoint 2010 Tabs

Hello, I've been searching on stackoverflow and google for a solution for my 'problem' and still didn't find anything that worked. I'm developing a solution using Sharepoint 2010 translated to Portuguese, but in some points of the systems, the translation isn't accurate, or, it's a different word that has many other meanings. I really...

Server.TransferRequest is not preserving HttpContext.Items

I've just updated my ASP.Net code from HttpContext.RewritePath(targetPath) to use the .Net 3.5 function: HttpContext.Server.TransferRequest(targetPath,true) However, I now no longer have any of the custom HttpContext.Items that I added, before the transfer. Anyone have any ideas as to how I overcome this? ...

Is it possible to do a linq query on a GridView (ASP.NET)?

Basically I have a datakey that I'd like to query from my GridView instead of looping through all the rows and comparing the key of each row. So I was wondering if it was possible to just do a linq query on the gridview (not datatable) and filter with the datakey. ...

Base page in MVC 2

Hi, I have just moved over to using ASP.NET MVC 2. In web forms, I normally had a BasePage class that extends from System.Web.UI.Page. And then every page extends from this BasePage. In this BasePage class I have methods that I need. How would I do this in an MVC application? Any samples would be appreciated. Thanks. ...

CodeDomSerializer Serializes a new Instance of the user class when changing Designer Laguage.

Hi, I have a usercontrol “DataDesigner” that is more or less like an DataSet Designer. In this Control I define the Database Structure in my own classes. Ever Form has a FormDescriptor, each FormDescriptor can have multiple TableDescriptor and each TableDescriptor can have multiple FieldDescriptor. All of this classes have a lot of ...

suggestions for Membership in ASP.NET MVC application

With this question I am mostly looking for answers from people that have implemented the out-of-the-box ASP.NET membership in their own database - I've set up the tables inside my database and as far as I can see they contain mostly what I need but not everything. I will have the notion of a Firm (Company) to which Users will belong so I...

SQL sorting , paging, filtering best practices in ASP.NET

I am wondering how Google does it. I have a lot of slow queries when it comes to page count and total number of results. Google returns a count value of 250,000,00 in a fraction of a second. I am dealing with grid views. I have built a custom pager for a gridview that requires an SQL query to return a page count based on the filters s...

What is the most suitable .NET Web technology to implement this?

I will be interfacing with a third-party - the exchange of information is done as follows. If my application is the client and the third party is the server, then: Server-to-client: I give them a pre-defined URL and they push data with HTTP POST. The POST parameters contain a variable "xml" with the request in a proprietory XML format...

stackoverflow exception in DataView row filter

Hi All, I am getting "An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.dll" in my DataView rowfilter property. I'm not getting any stack trace for that. So can any one help me on that. Please find below the code where i'm getting the error in filterView. DataSet metalAttributeDS = L...