Asp.net Mvc - MVC In Application With EditorFor Method
Jun 30, 2011
I have a VB.NET MVC application and there I have the next code: <%=Html.EditorFor(Function(m) m.UserName, New With {.class = "someClassName"})%> which works fine on my dev machine, but returns this error after publishing the application to a QA server:
[Code]...
View 1 Replies
ADVERTISEMENT
Mar 28, 2012
I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:
[Code]...
View 2 Replies
Jul 18, 2010
I'm trying to create my own templated helpers but I got stuck on TextBoxFor syntax. In C# its:
<%= Html.TextBoxFor(model => model) %>
And I cannot figure out (or google it) - how to write that in vb.net?
View 2 Replies
Apr 26, 2012
I'm trying to figure out a way to validate the user data entered:
[Code]...
This is in MVC3, VB.net. I'm looking for an easy way to validate a users input data into the editorfor field.
View 1 Replies
Mar 17, 2012
i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.
View 3 Replies
Feb 27, 2010
I'm using Process.Start method to launch another application from my application. Until today, there was no problem. But I have tested my application in a different OS, Windows XP (SP3), and my application didn't work right on that. I'm also using arguments to run that application. I guess for some reason my application couldn't send arguments to other application correctly under Windows XP. Maybe it is related to my code. But you should know, it works great on Windows 7.
[Code]...
View 3 Replies
Oct 19, 2010
Consider a MyForm class that contains a shadowed implementation of Show(). It also contains a CreateForm() method, which accepts an instance of the form and calls the shadowed sub:
[Code]....
View 3 Replies
Jan 26, 2012
Which is the best or corrent method for exit application?
[code]...
View 2 Replies
Feb 10, 2010
I'm making a Library type app which needs to scan the whole computer when it is run for the first time. Not again ever. How can I accomplish it?I'll be using SQL database to store data. So, I can easily make a table there and store a flag and check it on first run, but is there any other way? Any native support for this in VB.NET?
View 5 Replies
Aug 26, 2009
I am using a .dll called Kiosk in my application which is resonsible for disabling some keyboard keys. I am doing like this... using Kiosk; public static Kiosk.Kiosk KIOSK = new Kiosk.Kiosk();
[Code]...
View 2 Replies
Jul 25, 2009
I am not very familiar with VB.NET so I don't know if this is possible.Some code I am working on is setting the properties of a very large class. In the setter of each property an event is raised to indicate that the class data has changed. An event handler then serializes the instance of the class to a database.Obviously I do not want this to happen after each property is set, so I need to either have a delay before saving, or something else.I am keeping a large list of instances in a cache implementation already, so one option would be to only process the cache every now and then and save all unsaved instances in cache to the database.So I tried to see if I could derive a class from Application (and override DoEvents), but it is NotInheritable, so no luck there.
View 3 Replies
May 24, 2011
I have a self-hosted WCF service (VB) residing on a server. This service has a method, which I call from another application, that is supposed to kick off a .cmd file which calls a 3rd party program.
My WCF has used both the old Shell() command and the Process() object. Both can call the .cmd file (located on the server's local drive). The .cmd file looks like this:
CODE:
Now I know the .cmd file (saved as Letter.cmd) is firing because when I check the txt file after testing my app, the before/after statements have been written. However, the 3rd party application does not start.
Now the weird part -- if I double click the cmd file from explorer, the test statements are written to the text file AND the 3rd party application kicks off. Runs great.
I've double-checked the application and corresponding files to make sure NETWORK_SERVICE has permissions and my service is running under that account.
View 1 Replies
Apr 25, 2011
I'm running a VB.NET application 24 hours a day on a dedicated machine. I'd like to be able to receive status updates and also control/debug the application remotely (i.e. from another computer via the internet).It would be an advantage if the communication was lightweight (in terms of bytes sent and received) so I can control the thing without needing a fast internet connection. Also, I'm running the application from within the IDE at the moment because there are some unhandled exceptions and it's easier to debug this way. It would be nice if I didn't have to compile it and catch all the errors.What is the easiest way to set something like this up, and what do I need to be aware of in terms of security?
Update:To clarify what input I need to give the application - in theory, none. If all went to plan I'd just set the application off and reading some sort of log would be fine. The problem is that it is unstable (mainly because it calls a web service which is very unstable and returns all sorts of weird things) and therefore seems to need constant input on my part.
It was my thinking that the only way I could do this sort of debugging remotely is by catching every error I could, reading the log, and somehow instructing the application to behave properly in future.
View 3 Replies
Jun 9, 2009
I would like to be able to send an exception report via email but my concern is I have to supply my email password in order to send an email, is there a better alternative on sending a report without me divulging my password?
View 7 Replies
May 27, 2010
Was just curious to know if there is a typical method for handling application settings. I have two types of settings; Applications settings (like user preferences) and 'system' settings (server IP, options related to the industrial machine it's running on that need to be set at startup, ports that certain devices are attached to, etc). I was thinking that what I'm referring to as system settings would be in a configuration.ini type of file that can easily be edited. Then save the other settings either in the registry or a separate user.cfg file that would not be edited on it's own but changed through option settings in the program itself. Am I over complicating this? Is it normal to use the registry to store program settings or would it be better in a file?
View 2 Replies
Jun 23, 2012
I am writing an application that has a user enter a wage per hour plus an anticipated salary increase percent and calculates the the users salary for the next 10 years. I have received some help from a few folks who are beginners like myself with visual basic and we are at a road block.
Public Class Form1
[code]...
Error1Expression is not an array or a method, and cannot have an argument list
View 3 Replies
Jul 27, 2009
I want to access a 3rd Party application in the background with the SendMessage method. It just needs to send a "space" to the software to trigger an action. It is important that this is done in the background because its a periodic event (ca. every 10 seconds), and it should be possible to simultaneously work on the same machine.
I tried to use the same approach which is shown in [URL]
The code I used is as follows:
Const WM_CHAR = &H102
Const BM_CLICK As Long = &HF5&
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd
[Code].....
View 11 Replies
Apr 1, 2011
[code]...
Basically, I want it so if dllA doesn't have a method that the application is looking for, it asks dllB. This is assuming, as well, that ApplicationX and dllB don't know anything about dllA and dllA kind of just appeared out of nowhere (I want dlls dynamically like a patch to my applications without having to rewrite ALL of the methods, properties, etc. in the dll and have everything else just routed to the old dll).
View 2 Replies
Aug 5, 2009
I have created an updater for my application. When the application starts the user can launch an updater that will check for the latest version. Download it and copy the files to where the installation is.
Everything works fine.
However, I am looking for a more robust technique. And I have discovered it is better to hash the files on the web server with a hash algorithm and then when they have downloaded use the same hash algorithm to compare the hash values. If they are different either the files were corrupted when downloaded or some modified them without permission.
However, my problem is where do I store the hash values? I was thinking of hashing the files, and storing all the hash values for each file in a text file, and my updater will download that text file.
I am not sure if that is the best technique to use of not? Is this the normal and best way to do this?
View 5 Replies
Nov 26, 2009
I have a .dll file (Interop.ACTMULTILib.dll) that I use to connect to a PLC. This .dll contains a sub called ReadDeviceBlock2(byval devicename as string, byval size as integer, byref data as short). When I call this method in my main it works fine, if I call it from another method that was called by main it works as well.However, it doesn't work when I call it from my Timer_Elapsed sub? I guess this has to do something with threads but I can't figure it out.
Module Main
Private Timer As New System.Timers.Timer
Private PLC As New ACTMULTILib.ActEasyIF
Private DataSet As new DataSet[code].....
View 1 Replies
Sep 17, 2009
I have developed an application using vb.net. This application will run on approximately 15 machines at the main office and also roughly 10 machines spread over 3 different locations. I am using SQL Server Express edition in the backend. I deployed the application on the network using caspol but it is extremely slow. The Company Manager's perception is that because a script will invariably have to be deployed on each client machine to configure CASPOL, that the solution is not viable.
What is the best method to develop and deploy a multi-user desktop application?
View 9 Replies
Dec 9, 2010
I'm trying to use the sendkeys method SendKeys.Send(
[code]...
Function to copy whatever the user has highlighted. I have a console ap with hotkeys to open it. It locks up the computer and I have to use TaskMan to free it up. I know this is a simple piece of code but I must have something wrong with the sendkeys line.
View 2 Replies
Aug 20, 2010
I did this code to see how the method overriding works;the code runs with a warning in the add method of the Class c2:
[Code]...
View 4 Replies
Sep 25, 2011
I wrote an application which parses a website and downloads an mp4 file from website. User can select the path where he wants to download the video. When I try to download I get an exception for the file, Access Denied to Path. When I gave the permissions to folder that I chose, then works fine. How can I resolve that problem? End-User will select the folder. How do I change the permissions?
View 1 Replies
Dec 14, 2009
I'm going to write a url sniffer type application like firebug, just for the exercise.I have used httpRequest/response in the past and wonder how i could obtain the headers using this method? or perhaps i need to be going down the root of sockets which i know nothing of value about? perhaps it can be done using webbrowser too.
View 1 Replies
May 17, 2010
Trying to get it to behave like C#, where there is a Program class with a static Main method.However, in the project properties, I cannot set Program.vb to be the startup object, only the forms (it is a forms application).
View 2 Replies
Nov 12, 2009
Does calling the Dispose method on a Windows.Forms.Timer call it's Stop method? Or should I stop the timer before I dispose it?
View 5 Replies
Nov 25, 2011
I have a large problem with inheritance in vb.net. The problem is the following:
I have 2 forms => frmBase and frmChild
In frmBase i want to create a method Called StartWorking() and i want frmChild to inherit this method.
But here is the tricky thing: when frmChild.StartWorking is called i would like the following => without calling MyBase.StartWorking()
I want frmBase.StartWorking() to be executed first and after a test in frmBase.StartWorking if blnValue is true then frmChild.StartWorking has to be activated. if blnValue is false that frmChild.StartWorking cannot be activated.
View 2 Replies
Dec 18, 2010
I have nine pictures that I need to animate -I need to use the ToString method and a counter to concatenate a file name into a string variable from the Image.FromFile method. Once the counter reaches its maximum value, and the last picture is displayed, the counter should be reset to zero or one depending on how the first image file has been name. Also a static counter variable should be incremented in the time routine. what I have so far -- I know what I have to do; however, I just do not know how to code this properly.. Right now I have this going thru a button procedure but it needs to go through a timer.
[code]....
View 2 Replies
Sep 16, 2010
Write an overload for every numeric type or if possible constrain a generic extension method to just numeric types.
View 2 Replies