We are developing an ASPX (.NET 2.0) page that includes a select list with far too many elements in it (200+).
We need some form of autocomplete to make this into something that behaves like a text box, but with autocompelte suggestions.
We would like to use JQuery. So far our searching has only turned up autocompletes that require som...
Hi,
When I use Request.Form("myInput") and the input field "myInput" is blank, I get a server error.
How do I handle this?
Is there a way to check if "myInput" has not been filled?
...
Is it possible to select all controls that inherit a particular abstract class with linq.
...
Hello,
A) Why, when using templates with CreateUserWizard control, does including Textbox with ID=Email depend on whether CreateUserWizard.RequireEmail property is set to true, but TextBox with ID=Question is required only if underlying membership provider requires password question?
In other words, why wouldn’t it also be up to und...
Hello,
This is probably a stupid question, but still..
A Wizard control is made up of a collection of WizardStep objects that represent single steps of a wizard. But why are these W*izardStep* object represented as controls ( thus they require runat=Server attribute )?Couldn’t they be handled similarly to ListItem objects, which don’...
I have two table for my book reservation form. One table has book number(1-10) and status; all the status is 'available' at first.
Second table has name of the reserver and date field (check-in, check-out) and both table connected with a foreign key. So that table1 to table2 has one-to-many relation; means 1 book can reserved by many s...
In NMocks2 you can mock up the result of a method you don't know the arguments to before hand using
Stub.On(aMock)
.Method( ... )
.WithAnyArguments()
.Will(Return.Value( ... );
from NMocks2 Cheatsheet. My question is, is there a similar mechanism for Rhino mocks when you don't care about the arguments? I want to make a ...
I have a table like so
<table>
<tr id="trRow1" runat="server" style="display: none">
<td>First Name:</td>
<td><asp:Label id="lblFirstName" runat="server"></asp:Label></td>
</tr>
<tr>
<td>Last Name:</td>
<td><asp:Label id="lblLastName" runat="server"></asp:Label></td>
</tr>
</table>
As you can see, initially the...
It is my understanding that .NET runtime will always look for referenced assemblies in GAC first and then in the local folders. Is there a setting in Web.Config that would invert this order?
...
the question says it all. i've an asp.net page using jquery. at first when i clicked the submit button, it'd show the object expected error. i ran the firebug and it displayed the error of 'return validate()' function which was added onClientClick of the button.
<script type="text/javascript">
$(document).ready(function() {
...
We are building a site, and have no interest in creating multiple themes. We intend to simply use plain old CSS and XHTML markup.
Is there any reasonable way to discard the notion of themes from Sitefinity? Or is our best bet to just simply create a single, minimalistic theme and leave it at that?
...
If I use: OnSelectedIndexChanged like this:
<asp:DropDownList ID="ddl1" AutoPostBack="true" OnSelectedIndexChanged="Test_SelectedIndexChanged" runat="server"></asp:DropDownList>
UpdatePanel and UpdateProgress work correctly, meaning it shows my little gif etc.
However as soon as I change this to call javascript code, like this:
<as...
I have a jQuery Autocomplete field on an ASP.Net Webform and everything has been working great until now. I also have a DropDownList that I have a need to fire onSelectedIndexChanged with AutoPostBack.
When I changed my code to do the AutoPostBack, the text field that has the jQuery AutoComplete on it comes back blank. However, if I lo...
I can retrieve the text of a web page, let's say http://stackoverflow.com/questions with some real and made up links:
/questions
/tags
/questions?sort=votes
/questions?sort=active
randompage.aspx
../coolhomepage.aspx
Knowing my originating page was http://stackoverflow.com/questions is there a way in .Net to ...
there's a dropdown displaying 1-10 from where the user selects the number of textboxes he wants - if he chooses unlimited, it shows him a textbox wherein he enters the exact number of textboxes he'd like. if he enters 40, it shows him 40 textboxes which are created at runtime.
my question is, how do i enter the data from 40 - or 'whatev...
I've written a VB.Net page to browse my site. It stores the HttpWebResponse in a string. How can I validate the markup validity of the page in .Net? - something similar to W3's validate by direct input option. I'm looking for something that can identify the DOCTYPE, validate it yes or no, and return a list of failures I can display.
...
I would like to parse the values from aspx pages, both what is passed before the ? and after it? So, what is the C# function that allows me to parse that out?
I would like to do something like:
var pageType = parameter.trimBefore?();
var pageString = parameter.trimAfter?();
Thanks for any advice.
...
Greetings, hopefully there is a simple solution for this complex problem. Please correct any misconceptions I have along the way.
A while ago I wrote a GrivView with dynamic column capability. The columns are added in the OnInit page event so that they are added BEFORE the viewstate is applied. They are reapplied on every posting in...
Maybe I am just over thinking this and need to write some more prototype code, but I wanted to get some of your thoughts:
Basically the application is going to be displaying up to several hundred custom visual objects in an X/Y "grid". The position and attributes of some of these objects may change between updates; the application will ...
I made some changes to an existing application that was previously just straight HTML and Javascript. To add server-side functionality, I chose ASP.NET, and took advantage of the Master Page concept. Unfortunately, on one huge web form, the control IDs are all mangled with the "ctl00$ContentBody$" prefix. I tacked a runat="server" on ...