We have a Procedure in Oracle with a SYS_REFCURSOR output parameter that returns the data we want to bind to an ASP.NET GridView control. I've seen this done before but I can't find the original reference I used to solve the problem.
Here is what the procedure looks like:
create or replace PROCEDURE GETSOMEDATA
(
P_Data OUT SYS_REF...
I have a custom control that inherits from WebControl and implements IValidator, but I also want to have a property for ValidationGroup. From research, it appears I need to inherit from BaseValidator to do so. Can anybody provide a successfull example from a ASP.Net custom control that implements both BaseValidator and IValidator?
...
In WinForms, I can design a form and have a TabValue to control which control is selected each time the user hits 'Tab'. My question, in a Webform, is there a mechanism for doing the same thing?
Edit: Does the same apply to an Ajax heavy application?
...
Good afternoon,
This should be an easy one. I've done the cookie-cutter default ASP.NET 2.0 installation, but I have a couple of programming errors in my application.
When I access the webpage on the server itself, I get a detailed ASP error message. However, when i try to run the same thing from a client machine, I just get a no-des...
I'm having a problem dynamically adding columns to a GridView. I need to change the layout -- i.e. the included columns -- based on the value in a DropDownList. When the user changes the selection in this list, I need to remove all but the first column and dynamically add additional columns based on the selection.
I have only one colu...
What is the best way to check for the existance of a session variable in ASP.NET C#?
I like to use String.IsNullOrEmpty works for strings and wondered if there was a similar method for Session. Currently the only way I know of is:
var sSession;
if (Session["variable"] != null)
{
sSession = Session["variable"].ToString();
}
...
We primarily use an ASP.NET environment at work. Right now I'm building an application which uses "Modules", which is just a UserControl, with its' Javascript right in the control, and a link element to the stylesheet for that control. I want to keep it modular, and would like the style of this control to be independent from the markup/j...
Can it be done or the only way is to configure it on IIS?
...
Can you do ajax on ASP.net webform without using ajax toolkit? (Please post a example link)
...
I am building a Flex Application that calls a .aspx page on the same webserver which builds a PDF report using SQL Reporting Services. When the report is built it prompts the user to open or save the PDF.
We are trying to find a way to display a Progress Bar to let the user know that the report they requested is being built, and then de...
I'm trying to add parameters to an objectDataSource at runtime like this:
Parameter objCustomerParameter = new Parameter("CustomerID", DbType.String, customerID);
Parameter objGPDatabaseParameter = new Parameter("Database", DbType.String, gpDatabase);
//set up object data source parameters
objCustomer.Se...
Has anyone been able to create Container-Specific Master Pages for Safari or Chrome?
I can't find any ".browser" files for either of these.
How often is the %SystemRoot%\Microsoft.NET\Framework\version\CONFIG\Browsers directory updated?
Thanks
...
I have the following situation:
A user will define a certain filter on a page, and on postback I will query the database using that filter and return a bunch of matching records to the user, each with a checkbox next to it, so he can choose whether to act on each of those records.
In Classic ASP / PHP I can generate a lot of controls n...
When using TempData, my understanding is that it will keep whatever you put in it around for only one request. So when using TempData to retain data across a redirect (in order to use the Post-Request-Get pattern), isn't it possible that some other request from the user could come into the server in between the response sending the redir...
In the filesystem I have
/file.aspx
/directory/default.aspx
I want to configure IIS so that it returns the appropriate file (add the aspx extension) or directory (default content page) as follows:
/file -> /file.aspx
/directory -> /directory/default.aspx
/directory/ -> /directory/default.aspx
I have configure...
I have a (derived) Menu control, that displays a rather large list of items from a custom data source. I need to disable ViewState on the menu to avoid the very annoying "Can't select a disabled or unselectable menu item" when some other control causes the current selection to change on a postback.
Unfortunately, when ViewState is disab...
I am developing a web application that contains a great deal of reporting. The reports are fairly basic, but some have multiple datasets or embedded charts. One of the key requirements is that each report can be exported to Excel. The Excel version of the report is disconnected and should look the same (or very similar) to the web rep...
I am playing around with MVC and have started setting up an existing site we have built in standard .Net Forms.
I am only including a JS file and as all the requests are being routed via .Net it is trying to compile it.
It is the standard compilation error you would see with invalid c#:
CS1012: Too many characters in character literal...
I want to have a web based admin to upload, delete files and folders in Amazon S3 on ASP.NET website.
I am pretty sure something like this already exist, has anyone seen it?
...
I have a web application that makes heavy use of the Session state to store information about the current user, their personal settings, record their session history and so on.
I have found myself retrieving this session information in my business layer, like so:
((UserSession)HttpContext.Current.Session["UserSession"]).User.Info
Th...