Suppose I have
table Person
table Employee, which inherits Person.
I want to get a list of Person only. How do you get entity framework to do that without joining the Employee table?
I have a page that a user selects what he wants to download, the submit button posts the form to
public FileStreamResult GetFiles(FileSelectionModel model)
{
//zips files into one zip
return File();
}
However, what if the model wasn't in a valid state? How do I check it? It wouldn't let me return View() or return RedirectToAction() here
thanks
I included a text file as output in a WCF set up project.
The text file is correctly located in the same folder with the dll, exe, and config file after the project is installed (C:\Program Files\KLTesting\KLTestApp).
However when the program tries to read it, it looks under "C:\Windows\system32", what's the correct way to find & read it?
I have
string a = Directory.GetCurrentDirectory();
a += "/R0303.txt";
string content = File.ReadAllText(a);
Thanks.
I have
[Person]
PersonID, EmailAddress, FirstName, LastName
[OnlineAccount]
OnlineAccountID, PersonID, Nickname
Each person is allowed to have 0-* OnlineAccount.
In entity framework with C#, how do I select the top 5 Person that has the most accounts?
I have a ASP.NET MVC website hosted in IIS.
Sometimes I push changes and user's browser may still using the previous files, causing functionality problems.
It is because the browser is caching those files right?
What can I do to ensure the user browser loading the updated files??
Thanks!
For my accordion, each time the user clicks on the header, i want to see if accordion-content contains a table, if not, generate one and add it to accordion-content. But how do you check if the current element contains a certain type of element?
<div class="a-header">
<ul><li></li></ul>
</div>
<div class="a-content">
</div>
$('.a-header').click(function(){
var currentHeader = $(this).next();
//if currentHeader contains 'table'
});
Thanks.
Is it possible to check the number of existing available connections a wcf service has? programmatically?
I want to see if connections to the web service were closed properly in the ASP.NET code.
thanks
Suppose I have
<table>
<tr>
<td><a class='ilink'> link text </a></td>
<td></td>
<td></td>
<tr>
<tr>
<td><a class='ilink'> link text </a></td>
<td></td>
<td></td>
</tr>
</table>
in the jquery code, after clicking the link, I want to highlight the entire table row that the link is in. But how can I find it?