asp.net

Dynamically reading resources from a file

I've been using resx files for static strings in order to have a central place for changing them. The problem is that I can't change them after the project is built and deployed. There are some strings that I would like to change after deployment, without restarting the process (so .config files are out). It's possible to write code th...

Asp.net Ajax , Hangs Somtimes

Hi, I use ASP.net Ajax on my project. and using Session for state management. in some piece of code , I have some modalpop up , that contain UCs and do some things. If I use UpdatePanel , sometimes, when I open popup, for a long time progress bar shows and dont do any things. if I refresh page it will work correctly. Also If I remove t...

Setting Property for Percentage Format ASP.Net

Applogies for what I have no doubt is a noob question. I display several percentage values in a Grid View in ASP.Net I want to be able to set the NumberFormatInfo.PercentPositivePattern Property which I think I have to bring in a Globals "property" to be able to adjust? from its Default 0 to 1 This is the property I need to adjust h...

The trick to design a webpage very fast

Hello, I'm under very hard pressure to complete designing of a basic company website. Are there any tips and tricks that will help me finish the job very quickly? I don't know if some people use any specific software to get it done very fast or maybe shortcut keys or different designing standards or maybe some css/html templates? I re...

XML ancestors wanted

In C#, I need to get currentnode.parentnode.parentnode.parentnode.firstchild.lastchild.lastchild I am using to generating MLM tree some of the label which represent individual node overload at the fourth level so I was trying to get that nodes and separate them. I am new to XML, I hope my question is clear. ...

ASP.Net MVC & Memberships...

Hi all, I would really appreciate some feedback on what I am trying to achieve: The problem: I would like to authorize a user of my application to a single action on the controller. For e.g.: a user can perform the "save" action on my controller class if he has the required authorization. In the project I am working on, the creation ...

Extending ASP.NET DropDownList

I am trying to create a custom control that inherits from DropDownList. What I need is to add a new property to a ListItem(within Item collection). <cc1:MyDropDownList ID="MyDropDownList1" runat="server"> <asp:ListItem myProperty="true" text="sometext" ... /> </cc1: MyDropDownList> How can I do that? ...

microsoft certifications

Hi Am thinking of getting certified in MCTS and MCPD for ASP.Net and SQL Server (Developer). My question is since Visual Studio 2010, NET Framework 4.0, SQL Server 2008 R2 would probably get released late 2009 or early 2010, should I just wait and take tests for the new versions. Am still planning to study ASP.Net 3.5 and SQL Server 2...

Progress bar in web application using C# and asp.net

Hi, I need to have 2 progress bars in my application: (i) Circular graphical progress bar (busy indicator) as shown in the link [15.1.3] when the page is postback and (ii) A determinate progress bar as shown in the link [15.1.1] with showing percentage when i update or load data into the grid which i use in my appln. Can any1 help ...

ASP.NET Web Service - how to handle special characters in strings?

To show this fundamental issue in .NET and the reason for this question, I have written a simple test web service with one method (EditString), and a consumer console app that calls it. They are both standard web service/console applications created via File/New Project, etc., so I won't list the whole code - just the methods in questio...

ASP.net mvc Common data for footer

So, I have a footer which will appear on every page of my web application I need it to render dynamic data so.... this means that every controller action needs to return viewData which contains this data.. as well as the action specific data How would you guys implement this? The constructor of a base controller perhaps? ...

AuthenticateRequest event

Hello, Q1 - To my understanding FormsAuthenticationModule is subscribed to AuthenticateReuqest event, and thus only after this event is fired, is FormsAuthenticationModule called. But the following quotes got me a bit confused: A) The AuthenticateRequest event signals that the configured authentication mechanism has authenticat...

How to Dynamically get All controls (and it's IDs) in an aspx Page?

HEllo, I need to dynamically activate fields in a page according to the service that is going to be executed... Let me explain: There's a page with all the possible fields and a ListBox with all the selected services to be executed, then when the user selects which service to execute (change a car plate, for example), then I need to a...

FormsAuthentication.CookieDomain property

Hello, Q1 FormsAuthentication.CookieDomain property specifies the domain for which this cookie is valid. Overriding this property is useful if you want to enable the cookie to be used for more applications on your web server A) I assume the quote is suggesting that if same browser is used to log onto two web applications, then...

How To Define The Return Type In A Function With LINQ?

I would like to know how to define a returntype in a function in following situation. I've got a products and I was returning all information or one product at a time. as you can see in my function defined below. public static Products GetProducts(int pid) { var pro = from p in context.Products select p; if(pid...

Skipping Items During Data Binding

Greetings! I have a Repeater control that's using an XmlDataSource control. <asp:FormView id="myFormView" runat="server" DataSourceID="myXmlDataSource"> <ItemTemplate> <span>Items</span> <asp:Repeater id="myRepeater1" runat="server" DataSource='<%# XPathSelect("Items/*")%>'> <HeaderTemplate> <ul> ...

ASP.NET Forms autosave

We have an internal asp.net forms app where one page is essentially a WYSIWYG editor that users enter 3-5 paragraph reports into. What are the best options for an autosave feature with the minimum amount of user-interrupt? I don't want to force a postback every five minutes or so unless I have to, but rather maybe some type of client-s...

ASP.Net VS ASP.Net MVC

Hello! Now this isn't a question as to which of the technologies is better, since they both have their relevant uses for different scenarios. My question is regarding the syntax of the two. How do their syntax's differ? ...

Overriding ToString on an object for use in DataBinding

I'm working with Databinding in ASP.Net 2.0, and I've come across an issue with the Eval command. I have a class that I'm databinding, that looks like this: public class Address { public string Street; public string City; public string Country; public new string ToString() { return String.Format("{0}, {1}, {2}", St...

How to work with anonymous users in ASP.NETMembership

Is it best to check for a null User when trying to access UserID or should I assign an anonymous account? Or other? ...