Hi, I'm designing an ASP.NET screen which configures what screens are relevant for a particular type of record. For example a car record will have access to the Ford and Ferrari pages. I'm displaying a listbox on the left with all available items, and a listbox on the right with currently selected items. Two arrow icons allow you to move...
Okay, so we all know about changing a master page dynamically in a page's OnPreInit event.
But what about a nested master page? Can I change a master's master?
There is no OnPreInit event exposed in the MasterPage class.
Any ideas?
...
Hi,
I have a web application where I am getting data from an oracle database in a gridview.
Can anyone tell me how to turn this data into links to other pages on my web application?
For example, if I am getting data about a list of objects that have their own ID, I want to be able to click the ID and go to a page with information on ...
Problem: I have an enumerated type which has description tags in the following style: [URL="http://xml.indelv.com/data-binding-enum.html"]description tag tutorial[/URL] . I have a Windows SQL Server Database from which I am pulling the data (as integers then castine to Enums) which is then being bound to a datagrid. Instead of pulling an...
Hi,I have a usercontrol.Inside usercontrol I have a datalist and sqldatasource.Sqldatasource needs a parameter to databind the datalist.Usercontrol gets a paramter by this way,
private string _urunIDparam;
public string urunIDparam
{
get { return _urunIDparam; }
set {_urunIDparam = value; }
}
And then thi...
Boy do I have a strange bug.
I have a website that needs to upload large files.
We are using the standard ASPx FileUpload control.
We have modified the web.config to allow really large files.
I am doing all these tests in FireFox, IE6, and IE7.
For my test I am using a few 20 MB files (AVI, PDF, Excel).
The file type does not affe...
I am trying to create a background service in asp.net which checks for session timeouts and redirects the user to a timeout page ( not the login page ). My code is like this
public class SessionTimeoutModule : IHttpModule
{
private static Timer timer;
//Test value
private const int interval = 1000 * 1 * 10;
public void ...
Hello all,
A question I have been thinking about for a while - would Stackoverflow users commonly implement significant functionality in a constructor (specifically in classes derived from the System.Web.UI.Page class) , or should we keep the logic here as simple as possible and instead implement functionality in OnPreInit (using the co...
I have a "resource" folder in my solution file which contains the xml files. It is available to remote, unauthenticated Internet users and I wanted to deny access to all the users.If they know the files name they can access it thru url.
eg: example.com/common/resources/test.xml
Hence I wanted to deny access to that folder or move it to...
I've got a report being built from a dataset. The dataset uses the Sort property to order the data. I know that I can create a sort expression like this:
"field desc, field2 asc"
But what I need now is a way to do a custom sort. In SQL, I can perform a custom sort by doing something like this:
order by
case when field = 'Some Val...
I am currently developing in 3.5 (building to 3.5 as I am using LINQ) and deploying my code to a 2.0 server. I have been successful in this so far, but now I am trying to utilize some of the ASP AJAX tools and I am running into an error I can't seem to get around.
First I received
"Unknown server tag 'asp:ScriptManager'."
To whi...
I have a custom Grid view object that inherits from the base System.Web.UI.WebControls.GridView. The code is in a class file. How do I reference this class file in my aspx page?
I tried using:
<%@ Register Namespace="SRC.Web.Common" TagPrefix="custom"%>
But my intelliSense will not pick up my new reference. I would pefer not creati...
"The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)."
Anyone else come across this error?
...
This seems like it should be a simple thing to do, but I can't figure it out.
I have a localized resource that I'm using in two places - one as a col. header in a datagrid, and then as a descriptor beside a field when the user edits a row.
The text of the label looks like:
Text="<%$Resources:Global,keyName%>"
However, I'd like to ad...
I feel like this is something that Google should be able to solve for me just fine, but I'm finding little to no examples that I really understand.
I have this custom control called UserControlTask. I wish to add an OnHide event to it and as the name implies, I want it to be thrown when the user control is being hidden.
I seem to ...
I need to get a value from an API I made with ASHX and normally it is called from javascript but I need to call it right in ASP.NET I figured this shouldn't be a problem but I'm not sure the syntax.
...
Basically I am trying to render a simple image in an ASP.NET handler:
public void ProcessRequest (HttpContext context)
{
Bitmap image = new Bitmap(16, 16);
Graphics graph = Graphics.FromImage(image);
graph.FillEllipse(Brushes.Green, 0, 0, 16, 16);
context.Response.ContentType = "image/png";
image.Save(context.Respo...
I would like to create a sub folder in the controllers folder of an Asp.Net MVC application. But when ever I do this and try to navigate to a page the controler can not be found.
Here's a concrete example.
Currently I have:
Controlers/UserAdminControler.cs
Controlers/PageAdminControler.cs
Controlers/MenuAdminControler.cs
Controlers/Som...
jQuery 1.3.2, ASP.NET 2.0. Making an AJAX call to a PageMethod (WebMethod) returns the full/whole page instead of just the response. A breakpoint on the page method shows it's never getting hit. I have the [WebMethod] attribute on my method, and it is public static, returns string and accepts no params. I even tried adding [ScriptSer...
I'm writing a custom control in ASP.Net 3.5 WebForms, using ASP.Net AJAX. I'm building a state toggle into the control (expanded and collapsed modes). I've been trying to keep the current state of the control in ViewState, changing it in a server-side event handler manually:
object oExpanded = ViewState[ "Expandedness" ];
if(oExpanded =...