asp.net

Getting Text property in codebehind from ASP.NET TextBox with TextMode = Password

I have a <asp:TextBox with TextMode="Password". How can I read the value that the user entered, using the codebehind? I want to create a new user with code like this, but PasswordTextBox.Text is always an empty string. Membership.CreateUser(Username, PasswordTextBox.Text) ...

Visual Studio 2010 - Viewing lists during debug results in timeout

I am trying to debug a project, suddenly I'm running into an issue where enumerating any object collections results in a timeout if I try to view it. If I run the program normally I have no issues. If I try to view any collection, such as a list, I get a timeout error and the whole thing bombs out. I thought something might be going on...

How can I store and retrieve data from a checkboxlist?

SQL Tables Listing ID, Title..... ListingType ID, Name ListingMatrix ListingID, ListingTypeID Basically a listing can be more than 1 type and I want that to be able to be shown using the ListingMatrix table. However, I'm having a lot of issues populating the checkboxlist because I have it being sorted by Title to keep it user frie...

C# - Displaying server control based on how many items are in a datalist

What I'm trying to do is on page load display either of two controls based on how many items are in a datalist. For instance, if the datalist only contains 1 item I want it to display Literal1.Visible = true; If there is more than 1 item in the datalist, show LiteralMulti.Visible = true; Anyone know how to do this? ...

jquery/Ajax loading

Hello, Was wondering if someone could point me in the right direction, i need to be able to page through content using something similar to Coda-Slider but with the data being loaded with ajax? Thanks Phil ...

Binding an rdlc report with a business object

Is it possible to bind a rdlc report to a business object (.NET 4/VS 2010) In my report I have TextBoxes called Name and Email. Say I have an object Person with properties Name and Email. Can I bind the .rdlc with an object Person at runtime? ...

How do I get RouteData in Application_EndRequest

I am building a simple performance logger that hooks in to Application_EndRequest / Application_BeginRequest I would like to send my logger the name of the action and controller as some sort of key. How can I access this information? (Don't mind if I have to intercept it earlier on and keep it around in the context) ...

Where to instantiate interface in Nunit test

I think theres something really simple I'm missing so I apologize in advance. I'm trying to test an interface with Nunit. The interface is implemented by a class derived from a base class and I'm using Castle Windsor for IOC. I simply dont know where to assign the interface in the derived test class. Here is the base test class [T...

Radgrid edit/update not working..

Hi, I'm having a wired problem with Radgrid.. Im using a Radgrid to display some results where the user can edit/update/delete them. I'm using a single SQL Server 2000 table to fetch the results... Not sure why the events are not firing in radgrid. But I am able to do it successfully using the Gridview control... Im using .NET framewo...

LinkButton permanent underline

Hi, I'm using an asp:LinkButton. The text underlines upon hovering over it. However I want it to always have an underline. Can anyone tell me how to achieve this? Thanks! ...

Broken link between aspx and aspx.cs files

I've had the same problem a couple of times with different ASPX pages after renaming them and I am surprised that I can't find someone else with the same problem on stackoverflow. When I run my ASP.NET C# project, the debugger gives me a message like this one. Error 5 The name 'txtTitle' does not exist in the current context It s...

jQuery object expected error in asp.net page with master site

The error i get seems to be centered around jquery finding what it's in (window,document, etc.). Right now i'm just trying to implement the jQuery datepicker. the project has a master page, where i placed my script references. <head runat="server"> <title></title> <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" /> <lin...

Shared MySQL database for ASP.NET and Java

I recently developed a Java Application for a client with MySQL database. Now he wants to have ASP.NET website connected with the Java Application. I'm thinking of placing the database on a local server which would support both the desktop application and the website. What i want to know is, is it the good way to handle these kind of s...

control that has paging but supports custom format

hello everyone, i need to know what control in asp .net 2.0 to use to get this layout: i need to display 8 videos at a time using 2 rows with 4 columns, but the control should also have paging (to display 8 items per page). i've thought of using a formview but the paging for formview is per one article content / datarow only. i'm also...

A good/modern template for ASP.NET MVC 2

Hi, I'm starting a new ASP.NET MVC 2 project, but unfortunately I'm a noob dev. Can you recommend a template I can use for my web site? It would be nice if the CSS supports stuff like 3 columns, 3 rows, with up, left, down and right parts being fixed size and the center auto sizing. Actually a clean CSS template would do too. TIA ...

Displaying Custom Error page using asp.net mvc

Hello Friends, I am showing Custom Error in my page.. if somehting happend wrong. but if the same error occured in my subview master page I am not able to show the Custom error page on Entire page its showing me that Error page under subview master page. Please I am attching the Screen shot. Can any body help me out how to show the Err...

Can I call a webservice from a Controller Action in ASP.Net MVC?

Can I call a webservice from a Controller Action in ASP.Net MVC? public ActionResult Index() { PersonObject person = new Person("Sam"); //Call a webservice which is located in the same app under /Services/General.asmx/WebMethod and pass it person } Basically I want to do this from my Action... $.ajax({ ...

how to wrap text in boundfield column in gridview

hi all, i am having a boundfield column and in that column if i entered a string(without spaces) of length 15, there is no problem. But if the string is more than 15, the text is not wrapped. I gave the command column.ItemStyle.Wrap=true; But its not working. I have fixed the width of the column. How to wrap the text in the boundfield i...

Beginner question about e.Item.ItemIndex

There's this line of code inside of some repeater's ItemDataBound event that includes e.Item.ItemIndex..Now I get it that ItemIndex is the index of the item in the list.. What's "e" and "Item" here ? Actually I do have an idea. Just want to be more clear. Could someone please tell me in simple terms ? Thanks. ...

Asynchronous file transfer in ASP.Net Chat Application (peer to peer)

Hello I've developed a chat application using WCF/ASp.net. I want to asynchronously transfer a file from one chat user to another chat user. What is best approach for this? here are my insights/doubts Do i need a central server between two users to assist the file transfer? Can i create a direct channel without a central server? Do i...