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...
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...
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.
...
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...
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...
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 ...
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...
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
...
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...
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!
...
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...
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...
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?
...
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.
...
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.
...
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 ...
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...
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...
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...
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...