The scope of my question is solely ASP.NET, as the answer may be different for Java and any other C based language.
How much overhead is involved when using the keyword "this" within a class to dereference a property? It seems that I've seen certain sources try to discourage the use of "this" for dereferencing, but generaly I've just ig...
I see the date picker (calendar) control on my report giving out an option to pick dates as parameters for a report. However if the user want to select an older date (01/01/2000) through calendar, he/she has to scroll back month at a time all the way to Jan 2000 month to select 1st date. Is there a way to incorporate year and month pi...
I have a webpage that displays a very large list of data. Since this was bogging down the browser, I implemented paging (using a PagedDataSource) to display 20 Marbles at a time.
My data model is such that a Bag contains multiple Marbles, and on my repeater I show a little header for the Bag information then all of the Marbles undernea...
I have a timer on a page in ASP.NET.
After a certain period of time elapses, I want to disable the timer.
I want to put a static variable in the timers tick event that will track how many seconds have elapsed.
My question is, will this work?
If user X and Y are viewing the page will they both have separate local static variables?
Wh...
Hello,
<asp:CreateUserWizard> ...
<MailDefinition
BodyFileName="~/RegistrationMail.txt"
From="[email protected]"
Subject="new account">
</MailDefinition>
BodyFileName attribute references disk file containing mail's body text. If we put placeholders <% UserName %> and <% Password %> in the body text fi...
So far I'm not finding the same problem in other questions on this site. Here's what I'm experiencing:
I have an ASP.NET WebForms app with an UpdatePanel containing a search area where I have a ASP:TextBox that I use for a jQuery autocomplete.
$(document).ready(function() {
$("#tabContainer_tabSearchBreaks_txtSearchName").autocomp...
Right now I am working on a stub of a project. In the course of the project I need to be able to from a web front end set a message on a server to and then from an iPhone Query the Server to read the message.
While all the individual peices are working and my request is going through fine I am having trouble using this webmethod
[Web...
I have a cascading DropDownList in an application. The contents of the cascading drop down list is small enough that there isn't a need to use AJAX/JSON to go to a database to get the content, I am just doing it in client side javascript like this (this is a subset of the data):
var val = typeList.value;
var applyTimeList = document...
I have a ASP.NET treeview populated with custom treenodes (ExtensionRangeTreeNode subclassed from TreeNode).
On postback the treeview is populated with TreeNodes, not my custom treenode class.
What's up with this?
Thanks,
BP
...
I'm fairly new to Subversion. Most of my work so far has been with Visual Source Safe. I'm looking to improve my deployment process with SVN and TeamCity. This is my plan:
There would be three branches:
Development (/trunk) - Entire ASP.NET solution, including a Web Deployment Project.
Staging (/branches/staging) - Web Deployment Proj...
Hi,
I got a user control containing a form. On a page that includes the user control, I need to populate the form in the user control, when the user pushes a button.
Heres how I've done it, and it doesn't work:
User Control:
public partial class editUC : System.Web.UI.UserControl
{
public DataTable dataTable { set { UpdateForm(va...
Currently I have this line of code in a datalist in a usercontrol:
<asp:Image ID="Image1" runat="server" imageurl='<%# "~/Thumbnail.ashx?image=" + Utilities.ToURLEncoding("~\\Files" + DataBinder.Eval(Container.DataItem, "file_path")) %>' />
As you can see, it calls Thumbnail.ashx, which generates a thumbnail image given the original i...
I am trying to emulate a simple timepick user control with a combo box and a little image of a clock. In the user control I type in the code:
function SetFocus() {
var comboBox = $find("<%=cboTime.ClientID %>");
var input = comboBox.get_inputDomElement();
input.focus(); }
cboTime is the combobox control and there is ...
I need to check every five minutes if 4 servers are online from one asp.net page running in a fifth server, in order to redirect requests and send alert by e-mail to the network manager. Specifically I need to know if IIS is running ok in those servers. What's the best way to do it? Is there any component or socket library to use in orde...
Hello,
I have an object that requires the URL of a file that resides in the root of my web application. If this was an object that inherited from System.Web.Ui.Page I would just use the httpRequest object. However because this object does not I am uncertain how to get this url. Depending on the calling object, the url will be either /so...
I have an ASP.Net 3.5 application in which I would like to setup some web services for AJAX consumption for ONLY within the application they reside. There is no foreseeable need to expose them to anything beyond the application in which they live. That being said, is there any particular benefit to use WCF over ASMX or viceversa to exp...
Is it a good design to have multiple masterpages in an application.
I am building a website using Asp.net MVC with different type of users like, admin, employee, general user, etc
And every user once logged in have different type of controls on the website, so I was planning to use different master page for each user.
...
(See question below for more context):
Are there any situations in which
<machineKey
validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps"/>
in web.config would fail to AutoGenerate a new machineKey on App Pool recycle? This is the behavior I'm seeing...
I'm using standard ASP.NET FormsAut...
I have a sitemap that has a link for when a user is not logged in, but when they do login, the link should change, for example, nonmember.aspx should change to member.aspx. This sitemap is tied to an asp:menu. Does anyone know how to do this?
...