I have ShowValue working. Now, on the last line I need to call the function newFunction to repopulate the dropdownlist object on the onClick event.
I am getting errors when I click the dropdownlist down arrow.
How do I get the two to hand shake with each other?
My code:
Public Sub ShowValue(ByVal sender As Object, ByVal e As System...
I've got a search form that could potentially return thousands of records; I'd like to show a message if the query returns more than 500 or so and make the user refine the search to get fewer results.
Am I stuck with doing a Select Count before running the actual query? What's the best practice here?
...
Hi,
I've made a small example with a "Person" class, which contains a list of Pets. In addition, there'se a simple repository that can save / delete / select Person objects.
Now I put a form view (or details view) on my form, choose an object data source which points to my repository. So far it works perfectly, I can create, update, de...
It seems like there's no way to manipulate the columns of a Gridview if AutoGenerateColumns = true. Here's my scenario:
I've got a generic GridView that displays the results of various different LINQ queries depending upon what the user selects. I like the fact that the AutoGenerateColumns works like it should and I don't have to spec...
I have an ASP.NET MVC Partial View that contains a Html.TextBox that is configured to use the datepicker from JQueryUI. This is done by ensuring the style is set to .datepicker. This all worked fine. However I have changed my forms to Ajax.BeginForm and included a Ajax.ActionLink that displays it after clicking on the link. Since addi...
In asp.net 2.0 , c#.
Is it possible to start a thread from a page, for example when a asp:button is clicked and from another page, check if that thread has exited?
Reason: We have a page that starts a long server-side script when a button is clicked. However, since we don't want to wait the ending of the script on that page, we thought...
Hi,
When i click on a Ajax.ActionLink, which displays a partial view, why does none of the javascritp associated with the partial view fire? This previously all worked before when I used Html.ActionLink. I have a series of scripts referenced in master page, which include $document.Ready functions. I have also tried added the script i...
I have created a usercontrol (a custom button control), how to apply skin on that control.
What to write in the skin file for eg for a asp:button i will write <asp:button SkinID ="btnSkinBlue" runat = "server"/>.
What to write for a user control?
...
I'm using the URL Rewriting.NET tool with IIS 6. I've got my default page content set for default.aspx in IIS. What I'm trying to do is have /default.aspx provide a 301 redirect to the root directory (www.example.com/default.aspx -> www.example.com). I've tried turning off default documents, to no avail.
What I'm hoping to do is use a ...
Some exceptions (web service calls) of a Web Application are not handled, because I want to show them on a Custom Error Page, passing from the Application_Exception method.
Porting my Web Application to ASP.Net 2.0, these events started to appear in the Event Viewer (Web Events, new feature of ASP.Net 2.0).
Is there a way to disable AS...
can you help? i have a DB, the unique identifiers are GUIDS - we need to implement URL rewriting however the page names look terrible for example:
testpage-2668FF87-0A3A-4cac-B9AB-2367D17A76C3.aspx
title of page / unique identifier
my DB's that i setup i use Ints as unique identifiers so i never had this problem:
testpage-1.aspx
title...
I have a page with (EnableViewState = "true") that has a parent control with (EnableViewState = "true"). The parent control loads a child control.
In the child control, I have a viewstate object that gets assigned to null on postbacks. The strange thing is if I set EnableViewState = "true" on the child control, then everything works fi...
I have a modal popup inside of an update panel with a silverlight control.
The video displays fine in IE 7/8 but in firefox all I get is a white screen
I am using the following video skin from link text
<div style="height:360px;">
<asp:Silverlight
ID="myVideoPlayer"
...
Trying to get MVC running on Mono 2.4 (which is possible, according to some threads here) without much luck. I can't get past this:
Compilation Error
Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.
Compiler Error Message: : ** (/usr/local/lib/mono/2.0/g...
First of all to give you a bit of background on the current environment. We have a number of ASP.NET applications, all of which use session for certain aspects. We are "Load Balanced" over multiple servers due to traffic levels, however, our load balancing is set to use "Sticky Sessions" as currently all web applications are set to use...
OK so whenever anyone hits our site who is not logged in, it pushes to the login page and has them sign in, and then pushes them back to the page they attempted to access. I have been tasked to create a service (using ASHX) that returns reporting data via xml. This is all done, however in order to access it you have to be logged in. Inst...
I'm currently working on a web project that involves several assemblies, structured something like this:
WebProject
|
+--> A (external assembly, Version 1.0.0.0)
|
+--> B (external assembly, Version 1.0.0.0)
The difficulty is that in order to keep track of what's deployed, I'd like to updated the version numbers of assemblies A an...
I'm trying to dig into the XML for a VBPROJ file. Does anyone know where I can find a good resource that explains the structure and attribute usage?
...
I am using web forms, C#, Asp.net.
As we all know, in this model UI and business logic are often mixed in. How do I separate these effectively?
The example I would like to use is:
I have a GridView and a DataTable (GridView binds to the DataTable and DataTable is fed from the stored procedure).
I would like the GridView (UI) and DataT...
If I have a nested ListView, and I'm calling a related table in LinQ, how do I sort it, without resorting to the ItemDataBound event of the parent?
Pseudo Code (UPDATED WITH SOLUTION):
<asp:ListView ID="lv" runat="server" OnItemDataBound="lv_ItemDataBound" >
<LayoutTemplate>
<!-- Product Category Stuff -->
<asp:PlaceHol...