When a user logs in to my site I want a css styled button to appear (this could be anything really, i.e. some special news text item etc), how can you do this via masterpages in asp.net? Or is there some other way you do this?
...
Is it possible to get a list of control events that are going to fire before they happen, say inside the Page_Load handler?
For example if a button was clicked can I figure this out before the button_click event handler is called?
...
Inside my page, I have the following:
<aspe:UpdatePanel runat="server" ID="updatePanel">
<ContentTemplate>
<local:KeywordSelector runat="server" ID="ksKeywords" />
</ContentTemplate>
</aspe:UpdatePanel>
The KeywordSelector control is a control I define in the same assembly and local is mapped to its namespace.
The con...
I'm looking for an efficient way of searching through a dataset to see if an item exists. I have an arraylist of ~6000 items and I need to determine which of those doesn't exist in the dataset by comparing each item within the arraylist with data in a particular column of the dataset.
I attempted to loop through each item in the datase...
In my Page_Load event of codebehind file, I am loading data in to a datatable.In my .aspx page I am having some inline coding,I want to display some data from this datatable.But when i am running the program,It is showing an error like "Error 64 Use of unassigned local variable 'dtblChild' "
dtblChild is my DataTable Object
Is Page_Loa...
I'm trying to find a decent (ie cheap / free) .NET content management system. DotNetNuke is not an option as far as I am concerned.
Wish list:
Works out of the box
Easy to install
Simple clean interface
Skinable / template driven
Free or cheap
Open source preferred
Or is is just better to PHP for this kind of thing? If so, what sh...
I am attempting to deploy .NET 2.0 web services on IIS that has both 1.0 and 2.0 installed. This web server primarily serves a large .NET 1.0 application.
I have copied by .NET 2.0 web service project to the server and have created a virtual directory to point to the necessary folder.
When I set the ASP.NET version to 2.0 in IIS, The...
I am attempting to deploy an ASP.NET 2.0 Web service application on an IIS server that currently serves a large .NET 1.0 web application.
I have set up an appropriate virtual directory and have set the ASP.NET version for the virtual directory to 2.0, when I attempt to browse the site in a web-browser, I am prompted for a password. If ...
I am attempting to deploy an ASP.NET 2.0 Web service application on an IIS server that currently serves a large .NET 1.0 web application.
I have set up an appropriate virtual directory and have set the ASP.NET version for the virtual directory to 2.0, when I attempt to browse the site in a web-browser, I am prompted for a password. If ...
I'm using window.onback = history.forward(); to prevent users from resubmitting data. I know it's a hack and I don't like it either, but that's not what this question is about. The problem is that the code prevents other pages from going back to the page with the code. Let me clarify.
PageA.aspx has the JavaScript code in it. The user s...
We use ASP.NET, C#
When making an update to one of our websites, we roll out the entire site rather than updating just the pages or sections that have changed. This scares me.
Is this a good idea? Should I roll out only the changes?
Should I break my site into smaller projects?
What is best practice?
...
We use ASP.NET / C#.
We work locally, test locally, check in our code and binaries through SVN.
On our server, we checkout the latest 'build' from SVN directly into our IIS web directory.
Is this a good practice, or is there something else we should be doing for rollouts?
...
I have compression enabled within IIS7 and it works as expected on all responses except for those constructed by ASP.NET AJAX. I have a web service that provides data to the client. When the web service is called directly, it is properly compressed. However, when it is called via ASP.NET AJAX, the JSON response is not compressed.
How...
This seems trivial, but I've never had to worry about it before and my Google skills are failing me. How far-reaching is the in-process session bucket for ASP.NET/IIS6, in the sense that you can call Session["whatever"] and get the same value back? Obviously it can't stretch across different servers or application pools (I think). What a...
Hi -
I have compression enabled within IIS7 and it works as expected on all responses except for those constructed by ASP.NET AJAX. I have a web service that provides data to the client. When the web service is called directly, it is properly compressed. However, when it is called via ASP.NET AJAX, the JSON response is not compresse...
I'm trying to implement a unit test for a function in a project that doesn't have unit tests and this function requires a System.Web.Caching.Cache object as a parameter. I've been trying to create this object by using code such as...
System.Web.Caching.Cache cache = new System.Web.Caching.Cache();
cache.Add(...);
...and then passing t...
I was wondering if it is possible to do something like this:
<uc1:TestControl ID="TestControl1" runat="server">
<div>More random HTML, etc...</div>
</uc1:TestControl>
I got an error of "Type 'System.Web.UI.UserControl' does not have a public property named 'div'.". Doing a little research, I found I could add the foll...
Am I the only one who doesn't use Visual Studio designer for webforms?
Literally the only time I use it is to drag and drop a user control on the screen (which I think cut and paste to the correct location).
Other than that, what good is the designer?
I also hate any declarative tag programming, so that might explain it (all code-behi...
I'm trying to get a bare-bones example of logging going in my ASP.NET application. I would like to use the My.Log functionality to write out error log messages to a text log file. I have tried several things via Google but none of them seem to work. In general, when I use any of the properties of My.Log.DefaultFileWriter in the code it s...
I am currently publishing code behind .aspx in SharePoint. I can automatically publish the .dll to the bin folder of the virtual directory, but I cannot figure out how to push the .aspx pages and images to the server without manually using SharePoint Designer.
Where does the folder exist? Or do I need to create a SharePoint feature for ...