Can someone explain how New works with the With keyword in this example from the MVC framework.
routes.MapRoute("Default",
"{controller}/{action}/{id}",
New With {.controller = "Home", .action = "Index", .id = ""})
...
I send email through Outlook using VB.Net 2005; this is working fine. At the same time, however, I receive the following message:
A program is trying to automatically send Email on your behalf.
Do you want to allow this ?
if this is enexpected, it may be virus and you should choose no.
Is there any way to avoid this?
...
Hi everyone, I am looking for a best practice to provide users of my ecommerce website with a breadcrumb trail.
Current Site Setup:
ASp.net 3.5
SQL express 2005 DB
DB Table Setup:
[Category] - ID, parentid, name etc
[Product] - ID catID name
Should i use a sqlsitemap provider and everytime i save a product add it to the Sitemap tabl...
Initial tests indicate that GDI+ (writing in VB.NET) is not fast enough for my purposes. My application needs to be able to draw tens of thousands of particles (coloured circles, very preferably anti-aliased) in a full screen resolution at 20+ frames per second.
I'm hesitant to step away from GDI+ since I also require many of the other ...
I have 2 tables that are related,both have identity columns for primary keys and i am using a vb form to insert data into them,My problem is that i cannot get the child table to get the primary key of the parent table and use this as its foreign key in my database.
the data is inserted fine though no foreign key constraint is made.I am w...
I am looking for a way to store a key-value pair in the application settings. From what I have found, key-value pair dictionaries are not serializable, and therefore cannot be stored in the application settings.
Currently I have tried all sorts of dictionaries and collections and all of them work, until I restart the application, then a...
I have two functions written in VB.NET:
1) The first function (call it GetValues()) returns values in a SQL database as a list via a stored proc. One of the fields is DateTimeSubmitted. All of this data is displayed on my webpage using a repeater control. It works fine.
2) The second function (call it NiceDate()) I created to change t...
Looking for a way to be notified when any windows ZOrder changes?
Zorder refers to the layering of the windows. a zorder of 0 is at the bottom. I don't know any other way to ask this question.
This would be for Windows XP or newer, using .NET, c# OR vb.net.
...
Okay, so I have this string, it's "x/y". How can I use the split function to rid the / and assign the x to myVariable and assign the y to myVariable2
...
Does anyone know of a faster way to enumerate through a directory and sub-folders to gather all the files in the enumeration? This is what I have right now:
Public Shared allFiles() As String
allFiles = Directory.GetFiles(<ServerLocation>, "*.*", SearchOption.AllDirectories)
Thanks!
JFV
EDIT: I am enumerating these files from a ser...
HI all,
Im using windows vista home premuim, and I've install Visual studio 2008 and MS SQL 2000 in my laptop,
My problem was i cannot establish data connection, an error said , LOGIN failed for REJ(SQL SERVER). Im using windows authentication in connecting my visual studio to SQL
...
I am using VB.NET with LINQ to MS SQL.
I have two following tables. Now I want to insert multiple items in Tags Table using LINQ, but also wants to check that if any of tag exists in Tags table. It doesn't insert it again and bring the TagID in both cases (if inserted or if found existed)
CREATE TABLE Tags
(TagID bigint not null ,
...
Hi there,
I was writing a generic class to read RSS feed from various source and to consolidate in one collection of object in VB.net.
Basically the function - using LINQ to XML - is working properly, but I have a problem when the RSS feed I am trying to read does not contain one of the node (as you know, many of them are optional). I w...
As far as I understand all default settings of app.config settings is hard coded in the application and will generated on the fly in the first run.
If this is true then there is no good reason to deploy these files with an installer or in a zip package, am I right? Or am I missing something in here.
I want to be sure before rolling out...
I have a direcory for the members area.
All the files within that directory should be treated by https.
All other files outside the specific dir should be treated by http.
How can i automate the redirecting from http and https and vice versa?
Btw, the links are relative.
...
Does it matter if you are using 'And' or 'AndAlso' in linq queries in vb.net? I know in normal operations 'AndAlso' is short circuit and so will often be faster, but I don't know if that carries over into linq queries. Does it matter if the linq query is against a database or against an in memory collection?
...
i try to do a login using asp.net 3.5 and sql server 2005 i create a dataset and do this code
but something is missing in the code here the code
Protected Sub btnlogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnlogin.Click
Dim LoginTable As New ClassSet.UsersDataTable
Dim LoginAdapter As New ClassSetT...
I'm using the Google Maps API to geocode some addresses. What is the easiest way to build objects using the childnodes of <Placemark> ? I may also have multiple placemarks returned in the same response depending on the level of detail provided in the request. I would like to build multiple objects in those cases and those objects will be...
Hi all,
I have a UI hosted on a webpage. I'm able to run the control on the server hosting it, but when I attempt to run it from other machines on the intranet, only some of the required DLLs make it to the client.
What direction can I take to investigate why this is happening?
...
I want to have a look at the code in sample/demo websites to improve my knowledge. it would be great to see a function of a website and then be able to see how the code makes it happen. I am not so concerned with the css or html more the vb.net or c#.
Are there any good sites that have a selection of different types of websites that can...