In Alex James' Entity Framework tips articles, (which are excellent by the way) he talks about how to fake foreign key properties. This seems like exactly what I need, but for whatever reason I can't seem to pull it off when I'm updating. I have the following in update portion of my controller:
[AcceptVerbs(HttpVerbs.Post)]
public A...
Hi guys
i am having trouble joinging tables on a LINQ query.
As you can see there are three tables there. On my webpage, i want to display the following data in a List View.
betid | bet.title | bet.description | match.location | match.begindate/enddate | teamone NAME | teamtwo Name.
so let me explain this.
I want 3 fields from the ...
i am just trying to understand the deployment build model with asp.net
i write code locally on my machine in visual studio and when i hit f5, it starts up a local webserver for all my testing.
then, i FTP all of my source code to my webserver and then hit the real URL.
my question is when does this get compiled on the webserver. is i...
Hi All, I'm working on an asp.net application where I need to display records in the form of a ListBox in hierarchical format (parent-child records). I managed to do that using ASP.Net 3.5 ListView Control, but I couldn't get the functionalities of the ListBox control like selecting multiple items. Can somebody guide me on how to do that...
I've got a number of ASP.Net websites (.Net v3.5) running on a server with a SQL 2000 database backend. For several months, I've been receiving seemingly random InvalidOperationExceptions with the message "Internal connection fatal error". Sometimes there's a few days in between, while other times there are multiple errors per day.
The ...
Hi everyone.
I'm having a problem with ASP.NET MVC 1.0.
The first time I access a View "Products", its ActionResult method is called without a problem (I used a breakpoint to see it).
But, if I access a View "ProductsOrders", for example, and try to go back to "Products" by pressing browser go back button, the "Products" ActionResult ...
I have a problem with site deployed on IIS6 sever. Here the problem, when I first deploy asp.net 3.5 site to server (site is relatively small with 5 pages and 5 libraries in bin), it is works as expected. But after some period of time (~1h) server returns black pages instead of expected content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4...
Hi,
My project have two web application in a single solution file. First Web application is based on old architecture and second one is on new architecture. slowly & gradually we are shifting our old application on new architecture. Now, i am facing a problem while navigating from a page say "Form1.aspx" of first web app to "newForm1.as...
Hi i have a linq query below
var Free = (from row in
dt.AsEnumerable()
where row.Field("AppointmentType")
== "FreeTime"
select new{ row.Field("BookedDate")
row.Field("TravelTime")}).Min()
what i want to do is have a minimum on the travelT...
I have a simple key/value list in JSON being sent back to ASP.NET via POST. Example:
{ "key1": "value1", "key2": "value2"}
I AM NOT TRYING TO DESERIALIZE INTO STRONGLY-TYPED .NET OBJECTS
I simply need a plain old Dictionary(Of String, String), or some equivalent (hash table, Dictionary(Of String, Object), old-school StringDictionary-...
I have a webpage with 1 label and 2 buttons. One button does a postback generates a random squence of numbers, saves it to the Application object, and calls a method which gets the list from the Application object and writes them to the label. The other obutton just calls the method which gets the numbers and writes them to the label. On...
Is there anything special that needs to happen to a 3.5 web.config file to take advantage of new features in sp1?
...
Question about c# ASP.Net server side code:
Using c# ASP.Net 3.5 for on the fly created file
ContentType = "application/save"
File extension is exe
I want the browser to open the save/run .
I'm doing a resumed download using
string contentRange = string.Format("bytes {0}-{1}/{2}", lastRange, fullSize - 1, fullSize);
Response.Ad...
When I've built applications in the past I've used AutoEventWireup to handle the page events for me. From what I've read this incurs a significant performance cost and I'd like to do it manually in my current application.
What is the correct place to set up the event handlers?
My initial thought was to just set up a constructor in my c...
Hi,
I have made website deployment project for ASP.NET 3.5 website. After build i have found two setup 1. MyApp.msi and 2. MyApp.setup.
At deployment PC when i just copy and paste only setup file it will prompt error message for finding msi.
After copy msi when i again run setup i will install successfully.
I am not able to find why...
Is there a difference between sql server connection string and the express vesion?!
...
I'm working with the DotNetOpenAuth controls and on my ASPX pages in source view I have a blue squiggly line under the @Page directive with the following error.
ASP.NET runtime error: Could not load
file or assembly 'DotNetOpenAuth,
Version=3.2.0.9177, Cultur=neutral,
PublicToken=2780ccd10d57b246' or one
of its dependencies. ...
Hi MY asp.net APPLIATION dashboard, i need to provide help icon on the screen. For that i have few option as follows
I can use AJAX modal popup and register usercontrol having help content and show it on modal popup control on click of help button
I can use javascript buble tooltip for help on mouse over/enter of help icon.
Can you s...
Does anyone know of decent examples of custom JavaScriptConverter classes? The MSDN's only example is of one converting a ListItemCollection. What about custom classes? What if the custom class has a property of another custom class? Do we need two converters? Any references would be greatly appreciated.
Thanks!
...
I'm writing a website in ASP.NET 3.5, and most of my URLs at this stage are using PathInfo, as in:
http://localhost:<whatever>/Account.aspx/Login
The only problem with this, is that when the form posts back, it attempts to use the URL:
http://localhost:<whatever>/Account.aspx/Account.aspx
So far, I've tried setting the ...