Hi,
I'm writing an application in wpf that uses MVVM. I wondered if I could use ado.net entity data model as a model in MVVM? Is it the same? If not, why?
Thanks for any help.
Regards,
Ev.
I know that whenever you add/remove/modify any file in the "App_Code", "App_GlobalResources", and "bin" directories that ASP.NET will recompile and essentially restart the application.
My question is : "What happens to any threads currently executing durring the change?"
Do they finish? Is a Thread.Abort Exception thrown?
What happens if the application itself makes a change in any of those directories?
I need to print the contents of a datagridview, simple text in rows and columns, with GDI+ in .NET to paper.
To do this, I need to iterate over the rows, draw lines, iterate over the columns, calculate width, height, wrap the contents if contents do not fit on one line, etc. This is all possible, but is there a library that simplifies the drawing of tables in GDI+ and abstracts some of the difficulties away?
i am using below code to print my content of webpage in asp.net using javascript
window.print(document.getElementById('dvPrint'));
when i do print, it automatically adds date time on page.. (i think because of page setup) in firefox. please tell me how can i remove this setting. i mean i dont want datetime to be printed automatically on my print page (even if its set in pagesetup).
I want the following structure in my ASP.NET MVC solution;
Controllers/HomeController.cs
Controllers/Administration/AdministrationController.cs
Controllers/Administration/UsersController.cs
Views/Home/Index.aspx
Views/Administration/Index.aspx
Views/Administration/Users/Index.aspx
Views/Administration/Users/AddUser.aspx
etc.
How can I make it work so I get http://localhost/Administration/Users ? Do I need a route for this, or create a new Administration area?
Thanks.
Hey Guys,
How can I Encrypt on iPhone Decrypt the same data in an ASP.NET application?
Should I not worry about it and just send all data by SSL?
Thanks
I am currently on a hosted Virtual Server, I want to enable GZip compression for my Asp.Net 3.5 site, how do I go about starting?
I have tried using 'packed' JS files, but they don't work, I am assuming it's because they are not handled correctly...?
In an ASP.net MVC 2 app that I have I want to return a 204 No Content response to a post operation. Current my controller method has a void return type, but this sends back a response to the client as 200 OK with a Content-Length header set to 0. How can I make the response into a 204?
[HttpPost]
public void DoSomething(string param)
{
// do some operation with param
// now I wish to return a 204 no content response to the user
// instead of the 200 OK response
}
Hello, Where I can download sources of .net frameworke. I mean sources of libraries. I need sources of reflection methods like invoke and other.
Thanks.
I heard that ASP.net MVC does not maintain View State.So,here is my question
I have an MVC -View which has forward and backward html button.When i click forward and again
click backward ,how can i maintain html control state then?
Is there a way to change the naming convention for controllers in ASP.NET MVC?
What I want is to name my controllers InicioControlador instead of InicioController, or better yet, use a prefix instead of a suffix, and have ControladorInicio as my controller name.
From what I have read so far, I think I have to implement my own Controller Factory. I would be very grateful if any of you could point me in the right direction.
In unmanaged code you can create a thread in suspended state. In .NET Framework I can't find this option. Is it because the Thread constructor puts the thread in a suspended state? Is there other reasons why this is not supported?
We have message framing working by using a lengh prefix but using .NET 2.0 beginSend/BeginReceive.
Is message framing any different in 3.5, if so how should we implement it using the new framework?
Are there any useable examples out there which focus purely on message framing using 3.5?
Many thanks
I would like to make notice of some wierd thing. I designed an entire package application using VB.Net in Visual Studio 2008. I changed the normal backgrounds to Black, to make a diffrerence. but the problem is i1mm getting changing back ground colors when i install it on other systems.which does have all supports required.
What should i do to supress this problem.
Hi,
I would like to call a function automatically lets say every 2 secs.
Is this possible with .NET, and if so can you please paste some code?
This will be used in Windows Mobile 6 SDK
thanks
This question (http://stackoverflow.com/questions/245566/net-compact-framework-4-0) asked this back before the release of VS 2010. The answer basically said to wait for the release.
Now that the release is here, does anyone know? Is there an upgrade/update to the .NETCF? something past .NETCF 3.5?
I'm implementing serial key functionality in my application. User needs to enter at least 64bit number in order to register the application. Because typing number like 9,223,372,036,854,775,807 will take a while I want to compress it a bit. The first guess was to code this number hexadecimally but it still is quite long (0x7FFF FFFF FFFF FFFF).
Is there any standard method in .NET to code this number alphanumerically using for example: digits, upper-case and lower-case characters?
Switching aged 2003 SRV to 2008 caused my Asp.net 2 application fail: The application is no more loading the required library DLL from /bin/ folder anymore.
What should I change in my code or web.config to make this webapp load OK also in new 2008 server?
Now I receive this error when I access the application: This type is in IMPORTS ( Dll ).
Compiler Error Message: BC30002: Type
'Facebook.Entity.User' is not defined.
Is there any way to access my asp.net dev server (launched from visual studio) from an outside connection? It seems to be filtered to only allow localhost
i am using asp.net mvc for my project. i am using partial views for that i used ajax jaquery every thing is working fine but i am not getting image for loading when i upload an image. image get displyed at local host it has problem when i upload the project.
i have given image as:
$jq("#ajaxThrobber").html('<img src="/Images/ajax-loader.gif"> Loading.....');
please advice me thank you.
I want to export csv file that contains hebrew character in my ASP.net MVC application
I have tried many encoding but not work. Actually hebrew characters and not displaying as they are.
Can anybody have idea?
I'm working on an older ASP.NET project (not MVC I don't think) and one of the features they require is to view a description of an item when they hover over that item in a dropdown list. This can be simply done with HTML using the following code and making use of title text:
<select>
<option value="1" title="Option 1 Desc">Option 1</option>
<option value="2" title="Option 2 Desc">Option 2</option>
<option value="3" title="Option 3 Desc">Option 3</option>
</select>
Ok so how do I do this using ASP.NET DropDownList control? I have the following code:
<asp:DropDownList ID="DropDownListLocation" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownListLocation_OnSelectedIndexChanged" CssClass="editorFieldServerControl" ClientIDMode="Static"></asp:DropDownList>
And in the 'code behind' page:
private void PopulateFacilityDropdown(List<FacilityAvailableByLocation> facilities, int? selectedID)
{
DropDownListFacility.DataSource = facilities;
DropDownListFacility.DataTextField = "FacilityName";
DropDownListFacility.DataValueField = "FacilityID";
DropDownListFacility.DataBind();
DropDownListFacility.Items.Insert(0, new System.Web.UI.WebControls.ListItem("", ""));
if (selectedID.HasValue && selectedID.Value > 0)
DropDownListFacility.SelectedIndex = facilities.FindIndex(b => b.FacilityID == selectedID.Value);
else DropDownListFacility.SelectedIndex = 0;
}
}
Basically each facility in the list of facilities there has properties for an ID, Name, Description that I can get out. I just want to be able to put a title attribute on each <option> that gets rendered and put the description into it. Either that or be able to add a custom attribute like 'data-description' to each <option> tag then I can add the title into each option tag myself using a bit of jQuery which is easy enough.
I miss the days where you could just loop through a list and output the custom dropdown code manually.
Any ideas? Many thanks