asp.net

asp:ImageButton is not firing in an asp.net UpdatePanel?

Hello, I have an asp:ImageButton that is supposed to popup a save dialog when clicked. When I put it outside the UpdatePanel, it works fine, but when I put it inside the UpdatePanel, the dialog does not popup. ...

TreeView Update

Hi, I have a treeview control on an aspx page. The data comes from database and I bind it to treeview control programmatically. (Parent-Child relationship in database of course) Well and I added a textbox which I use to add new child under the selected node and it works also good but so as to see the new added node, I have to refresh a...

How do you put a gradient background on ASP.NET menu items?

The boss wants the master page's menu to look nicer. I generated my gradient file with one of the tools available on the net, no problem there.. I tried to make a CSS class for each menu item but when I use the background-image directive and the style builder, I get a line like: background-image: url('file:///C:/Documents and Settings...

Convert asp.net project pages from Windows-1251 to Utf-8

I can do that file-by-file with Save As Encoding in Visual Studio, but I'd like to make this in one click. Is it possible? ...

Templates or css skins for the asp.net membership login control?

I want to style the asp.net membership login control and I am too lazy to handcraft a professional looking one. I couldn't find ready made css styles for the login control. Are there any available on the web? ...

How to populate UpdatePanel in Repeater in ASPX (not code-behind)?

I have a Repeater which displays a list of items (in a grid-like/table view). When a user clicks an item, I display an UpdatePanel under this item with additional information relevant to the item (similar to Accordion control). I know how to populate the elements of the UpdatePanel in code-behind (I pass the ID of the selected element in...

asp.net site default document in subfolder

My default document is in subfolder not in root how can i make it default in asp.net 2.0 website. Tried iis7 default document setting to '/pages/default.aspx' '~/pages/default.aspx' but it didn't work. ...

How to create a dynamic ASP:ImageMap

I want to create an ASP:ImageMap with a dynamic number of hot spots. I tried the code below, but it complains about having a repeater nested inside an image map. Any ideas on how to do this? <asp:ImageMap ID="imgMap" runat="server" ImageUrl="~/circles.png" HotSpotMode="PostBack"> <asp:Repeater runat="server...

asp.net - gridview validation - repeating validation messages issue

I have a gridview that contains one to many rows (like most do) - each with an input textbox. Each row has a requiredfieldvalidator against that textbox. When the form is submitted the gridview is validated it is entirely possible that more than one row has an empty textbox. This results in repeating validation messages e.g. Please pro...

Is Model View Presenter the right choice to make an asp.net UI testable?

I have read many articles on the MVP pattern. Some folks say it is too complex and some say it's outdated. However to me it would seem like the perfect way to provide unit testing access to the UI - which is what I'm aiming to achieve. Have you used MVP and if so what do you think? ...

Polling webservice performance - Will this work?

Hi! Our app need instant notification, so obvious I should use some some WCF duplex, or socket communication. Problem is the the app is partial trust XBAP, and thus I'm not allowd to use anything but BasicHttpBinding. Therefore I need to poll for changes. No comes the question: My PM says the update interval should be araound 2 sec, an...

ASP.NET Datagrid - hiding a specific row/column

I am using a Datagrid with several columns of data (call it myDG) and one of these columns is a DateTime bound to a datasource. Its value is dependent on a "job" object completing a job and assigning the date time value. Since this normally takes up to a minute the value is left unassigned at the beginning. The column's asp.net definiti...

How to get Flex to see a .NET Webservice session when I use the proxy auto-generation?

So I have a Stateful .NET webservice (C#) that I would like Flex to use. The only problem is that I don't see a cookie being passed, even though I have the WebMethods decorated with: WebMethod(EnableSession=true) I can't seem to figure out if it is an issue with Flex or .NET. Does Flex 3 (as3) pay attention to the session cookie aut...

Split Data into Pages

How do I split data into pages on ASP.Net? I'm looking for something like what Google does when you have too many search results and it splits them into x number of pages. ...

What is the best way to access ASP.net Session Data using JavaScript?

How can you make the ASP.net Session Data available to a JavaScript method? I found this link when I googled. Anyone has a better trick that does not use the ScriptManager? ...

Rolling My Own ASP.NET Registration Wizard

Hello All, I imagine this is a pretty hard question to answer without sitting down and looking at all the source code, but I figured I'd post it anyway and see if you all had any conceptual thoughts on a process we're using in my company. The project I'm working on currently is a self-registration page for our end users. Previously, w...

How do I create an instance of a class in an ASP.NET application

How do you go about creating an instance of an object when given the class name as a string in an ASP.NET v2 application? For example, I've got a class called SystemLog defined in the app_code section of the application. The class is defined within the Reports namespace. To create an instance of the object, I do something like this: Dim...

ASP.NET broken rendering of Validation client side code in Firefox

This one has been a stumper for me. Its very easy to duplicate though a rather obscure issue. It came about as I was doing some javascript work on a web page yet also make use of the validation controls that ASP.NET provides. Some specifics up front: using a Vista-based development machine with the 3.5 framework and IIS 7. I also hav...

How do I deploy an ASP.net custom MembershipProvider?

I've written a custom MembershipProvider that uses a custom database schema for storing the members, but I am having trouble figuring out how to deploy the provider. My target server is running IIS7, and I am able to navigate to a dialog for a adding a .NET User Provider, but instead of allowing me to select the assembly containing the ...

Accessing Row Data In Telerik RadGrid (Server Side)

Hi There, Ive no problems using Javascript to read the rows of a telerik radgrid component im using however I can seem to find anyway to access the row data server side when a postback occurs. Ive spent ages looking for solution but no luck. Any pointers would be greatly appreciated. Tony ...