In hosts file I have added following line
127.0.0.1 test
When I call Request.Url.Host in Asp.Net application still get "localhost". How do I get "test" ?
IEnumerable<Department> myQuery = (from D in myContext.Departments orderby D.DeptName select D);
var myQuery = (from D in myContext.Departments orderby D.DeptName select D);
What is the difference between these two statements above? In my little asp.net/C#/ EF4.0 app I can write them either way, and as far as how I want to use them, they both work, but there has to be a reason why I would choose one over the other?
I have a form and from this I call
dialogPrintDiet.ShowDialog()
which launchs my dialog. I need to pass a string value and need the easiest way to do this in VB.NET
Thnaks
I have a list of strings where by each string is a url to a pdf document. All I want to do is cycle through this list and display each url as a hyperlink on my page. I've seen this done before in MVC where the collection is made avaliable to the view and you can just do a foreach etc etc but I don't know how to do it on a normal asp.net page...
Any help appreciated, cheers!
I need to create a vb.net program that consists of a unmovable, always on top bitmap, with no menu bar or anything, and does not show up in the task bar as program.
It needs to always start in the same place.
Essentially I need to mask a part of the screen by using a bitmap that blends into the scenery.
I am not sure which properties I need to tweak to achieve all of this.
I'd like the user to specify a RSS feed address and serialize the information from it. I am not interested in the XML format, but populate a strongly typed object from the XML. My question is, is there a standard that all RSS feeds support (Do all of them have date, title etc)? If so, is there a XSD that describes this. If not, how do I handle serializing a RSS feed to an object in ASP.NET?
I want to create a asp.net application which can show directions in a layout from room A to room B. So layout would be a grid of rooms and if the user wants to get directions from room A to room B the application to highlight the path in blue.
I have no idea how to begin with this? What can i use to create a floor layout and then highlight the required path. Any pointers ? Thanks.
Is there any solution available for generating UML diagrams (or at least XMI files) in C#.NET?
Bear in mind that I don't want to reverse engineer my code but automate UML diagrams generation (different kind of them, mostly component diagrams).
I am re-evaluating my 3rd party controls. I currently use the Infragistic suite for ASP.Net and WinForms. What controls do you use and would you recommend them?
Can somebody suggest a good book on ASP.NET projects?
It should give an idea of practical problems (I mean professional life) and how to deal with them, things like database handling, caching, n-tier architecture, etc.
Hi,
I would like to create a calendar that displays a year from today(everyday) and allows the user to select the multiple dates.
I tried to use the asp:calendar without any success
I am developing in C# .NET
any suggestion
Hi,
I have an assembly and want to restrict the assemblies and applications that can call/use this assemblies functionality. Can anyone provide detailed information on how this can be achieved ?
From what I have read on the internet this is not possible because any "fully trusted" assembly will automatically be granted access.
I am using .NET 2.0 and 3.5 and the solution needs to be compatible with both versions of the framework.
Thanks in advance ;-)
I have 3 tables in a database:
image of the database
I have been looking online for a long time trying to find out how in linq and vb.net how i can do a query that has access to both the event and individual table for example showing all the events individual 1 is taking part in ect. i was wondering if anyone could point me in the right direction or know of any good tutorial sites with good examples of things similar.
Thanks in advance :)
Luke.
Hello guys....
I have a full system working in IIS 5.1 ...
I migrated to IIS 7.0 with pipeline mode classic all works fine, but with pipeline Integrated my images/css are not loaded...
I´m using ASP.NET 3.5 with a Web Application...
Any help?
i have a textbox in asp.net form.... if i entered numbers not like 7 or 8 or 9, then script function should be araised with alert message.... how to achieve this.... that 7 or 8 or 9 are first digits in my texbox...
Hi Guys,
I am new to web development, I am coding some ASP.NET,
I watched many videos about using LINQ to SQL, I am happy I learned something,
but is it the good way of using is: dragging and dropping and that's done???
what are the best practices to use LINQ to access Database ( my database is not only SQL server..MYSQL..)
Thanks
I am trying to implement my custom route in ASP.net MVC 3 but I get this error:
The resource cannot be found.
global.asax
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"mycontroller", // Route name
"{controller}/{name}", // URL with parameters
new { controller = "MyController", action = "Search" } // Parameter defaults
);
}
MyController.cs
public class MyController : Controller
{
public ActionResult Search(string name)
{
return Content(name);
}
}
Hi,
In a single webmethod in .net webservice there are 4 times DB hit (for different tables), apart from using stored procedures, is there any means which i can follow to reduce the db hit?