using ASP.NET 3.5 WebForm using C# 3.0, is it possible to setup a RS 232 communication with a device? I need the WebForm to be able to read and write data to the serial port. I would appreciate if there are some good examples, thanks.
I understand that under Components, there is a SerialPort .NET Component, but it seems to me that it ca...
In an ASP.NET 2.0 application, I want to permit a user to select a MenuItem, even if the user does not click the actual text of the MenuItem, but instead only clicks the highlight area that ASP.NET places around the currently selected MenuItem (represented by the DynamicHoverStyle.BackColor property). Since the BackColor is displayed the...
I plan to pick up Silverlight in the future.
Possibility of going into Microsoft WPF.
Currently learning Objective-C 2.0 w/ Cocoa.
I already know Pros and Cons of ASP.NET MVC vs ASP.NET Webforms. What I want to know is what would be more "efficient" for me to learn given the circumstances above?
By efficient I mean learning one desig...
I'm running Sinatra 1.0 with HAML, my form has a number of checkboxes, for example books I like, and you would select all the books you want. The checkbox name is "books".
In sinatra params['books'] there should be an array of all the books that were checked, but it only has the last item that was checked, not an array.
How can I get a...
How do I achieve this:-
When user types character like 'abcd' and then '>'(an invalid character for my application), I want to set the text back to 'abcd'. Better if we can cancel the input itself as we do in winforms application. This should happen when user is typing and not on a click of button.
I want this to be applied on all text ...
I am a web developer for a web site that is occassionally plagued by form bots. Recently I received an error notification of a problem with the form submission that should be impossible for a human user. You cannot submit the form without JavaScript enabled but the server side script received a form field value that the JavaScript valida...
What I am looking is something similar to the below (http://github.com/ninject/ninject.web.mvc):
README.markdown
This extension allows integration between the Ninject core and ASP.NET MVC projects. To use it, just make your HttpApplication (typically in Global.asax.cs) extend NinjectHttpApplication:
public class YourWebApplication ...
I learning ASP.net, and am looking to create a rather straightforward WebForms ASP.net application, but I have very limited examples to work with. Is there a site that has a lot of ASP.net WebForms projects that are downloadable?
Books seem to focus on narrow aspects of using Webforms, like session control, or using master pages, but I'...
I need to apply a css class to invalid controls on a web form. I'd like to make it a resusable class. This is what I have so far:
public class Validation
{
public static void ApplyInvalidClass(Page page, string className)
{
foreach (System.Web.UI.WebControls.BaseValidator bv in page.Validators)
{
if...
Hi,
I'm using a simple HTML5 form adapted for iPhone, and I want to show error alerts within the text fields themselves using the Placeholder property but I don't know how to access it via Javascript.
Here is a field example HTML code:
I want that the placeholder text (and maybe color?) will change in a javascript Validate function t...
Hello all,
We have a WebForms+MVC 1.0 application where the WebForms site posts an encrypted string to an action in the MVC site which then displays a details view. However in our (clustered) test environment, the post from Webforms can take close to a minute before displaying the MVC view. The MVC action makes a WCF service call to ge...
Ok, so I made a form using HTML, and I'd like to get it to submit the information to my email, so I found and modified this PHP script:
<?php
$to = "[email protected]";
$subject = "R&R Form";
$firstname1 = $_REQUEST['firstname1'] ;
$lastname1 = $_REQUEST['lastname1'] ;
$firstname2 = $_REQUEST['firstname2'] ;
$lastname2 = $_REQUEST['lastnam...
Hi all,
I am looking for a form class that:
Is standalone/doesnt need a framework to run
Has easily configurable validation
Has validation and generation for all form fields including checkboxes(one solution I found was great except it didnt have any check box functionality)
I have had a look on google and stackoverflow but most eve...
Is there a way to open a MVC Page inside an iFrame of a webform?
...
What I'm trying to achieve/plan, is whereby a page loads with a set of inputs, e.g. TextBox, Radio List etc. Taking TextBox as an example, there is a button for the user to "Add" another textbox to the page (in the same group), e.g. Member1, Member2, Member3 etc etc.
Two questions:
I could add these with Javascript, however the result...
Hi guys,
I want to get the select value from a combobox that is bound to a dataset.
For binding the combobox I use:
cboEmployees.DataSource = ds.Tables["employees"];
cboEmployees.ValueMember = "employee_number";
cboEmployees.DisplayMember = "employee_name";
To get selected value:
string SelectedValue = cboEmployees.SelectedValue.To...
I need to create the following functionality, and looking for the best way to store info on multiple postbacks:
Say I have a TextBox, that is related to a question, i.e. "Places I've visited". Once TextBox will be loaded on first load. Under that, there is a button to "Add another place". This will postback, which will then add another ...
I have an asp web form which is used for database entry located at
localhost/EnterNewData.aspx
I also want to use this form to view entries in the database by passing the database id
localhost/EnterNewData.aspx?id=12
This all works fine. What I want to do now is if I am viewing an entry and one of the fields is incorrect, I can ch...
Working on an ecommerce site which will be integrated with a 3rd party vendor--that vendor uses different identifiers for stores than we use internally (i.e. their store ABC123 is our 001-321).
I'm researching the best approach to inspect incoming requests for reserved query-string parameters that indicate the request is using their ide...
Very simple problem...but weird results.
Im just trying to fill a combo box / drop down list in c#
protected void Page_Load(object sender, EventArgs e)
{
if (!(Page.IsPostBack))
{
LoadDropDowns();
}
}
protected void LoadDropDowns()
{
ddlVendor.DataSource = BL.GetAllVendors();
ddlVendor.DataTextFi...