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
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'm looking or a way to programmatically determine which version of the .NET Framework an application pool is using in IIS, at runtime, and for a website application to then use that information to choose which *.config file it should use. Is it possible? I'm not sure where to begin.
Quite a broad question, and I'm open to any method of solving the problem, so fire away!
Thanks in advance, you lovely Stack Overflowers!
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?
The option to target another version of the .Net Framework is disabled on a particular test system we are using on a current project.
I have tried the following without success:
Killing all W3WP.EXE processesRestarting the IIS serviceRemote Debugging has been removed from the box.
Just hoping for some pointers.
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 am looking for a good obfuscater that has visual studio integration, can be commercial or free, and has to work with vs 2010 and .net v4.
Something that is as hassle free as possible, and can obfuscate my release builds.
Thanks in advance
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'm fairly new to database programming in .NET.
If I want to call several existing queries from the same database for different tasks, should I have one DataSource per database, per database connection, or per query?
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.
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...
I've been looking for a decent network library for C#.
It is going to be used with XNA 3.1, and .NET Framework 3.5.
The multi-player style is going to be Server and Client.
Currently I have been looking into Lidgren Library Network, but it seems outdated.
Anyone got some good suggestions for a good network library. It should be able to handle easily 30+ client connections at a time.
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);
}
}
I'm having a problem running a VS 2005 app on some machines and not others. I looked up the error message on google and found a post by someone who had the same error and fixed it by uninstalling and reinstalling the .NET framework. When I try to do that, Windows won't let me because it is in use.
Am I expected to uninstall everything that is using the framework first, then uninstall the framework, then reinstall, etc.? Does anyone know of an easier way?
Hi,
I have a page on the example.com domain which contains an IFrame, this IFrame loads an ASP.NET page (c#) from the example2.com domain.
From the code behind on the example2.com domain how can I get the URL of the master page?
Would it help if the 2 pages were on the same domain, so example.com contains an iframe with sub.example.com?
Thanks
Hello I was wondering how to get the starter template for asp.net mvc showing in vs2008
I currently have mvc installed , have been working with VS2010 but need to create a separate project for VS2008. How can I get the MVC template showing up for VS2008
My asp.net 4 website url format is http://www.somesite.com/ShowProduct.aspx?ID=3330
but it sometimes gets changed to
http://www.somesite.com/(S(ghtef0vy5fgfdjgdfgderd55)X(1))/ShowProduct.aspx?ID=3330
or
http://www.somesite.com/ShowProduct.aspx?ID=3330&AspxAutoDetectCookieSupport=3330
How can i prevent this. I want all url's to be of this format only
http://www.somesite.com/ShowProduct.aspx?ID=3330
I was thinking about obfuscating a commercial .Net application. But is it really worth the effort to select, buy and use such a tool? Are the obfuscated binaries really safe from reverse engineering?