asp.net

ASP.NETDatagrid ,Displaying formated data

I have a ASPX page where i am rendering a Datagrid with some values. I am creating BoundCoulmns dynamically in my code behind like the following, BoundColumn iCustomer = new BoundColumn(); iCustomer.HeaderText = "Customer"; iCustomer.DataField = "CustomerName"; dgridProspList.Columns.Add(iCustomer); ...

Server side calls, for non connected visitors

Background info: I would like to implement a simple commenting mechanism, where people use Facebook Connect to login. I am only saving the uid of users, a date, and some text for every record. Problem: How can I display the names of users, from the server side, not using Javascript, when the visitor is not logged in?? Is there a way to ...

Sending xml data from one server to another

Hi Can anyone tell me the best way to send some xml data from one server to another in an asp.net application. Basically in one application on a certain condition I want to trigger the sending of some xml values to another receiving asp.net application that will process the data and return the user to the sending site. If anyone has a...

Update Panel rendering table row wrong

I am having an issue when my asp.net AJAX Update Panel updates it renders the contents at the top of my table rather than in the place it belongs below is my code: <tr> <td> </td> <td> <asp:CheckBox ID="ddCheckbox" runat="server" Text="Checkbox" AutoPostBack="true" OnCheckedChanged="ddCheckboxChanged" /> </t...

Am I allowed to host an ASP.NET MVC website using Mono and mod_mono?

I heard somewhere that the MVC license prevents you from using it on non-microsoft technologies, which would prevent me from developing in mono and hosting in Linux. Is this true? Has anyone used it with mono? Can anyone point me in the direction of the license? ...

Can a Classic ASP application be secured using HTTPModules?

I have a classic ASP application currently secured using ASP.NET Forms Authentication running on IIS 6, the problem is our purposes require this application implement a Single-Signon security model using Entrust TruePass which uses Client Certificates I believe. Can this be implemented using ASP.NET Http Modules or do I have to write an ...

How to get first selected item in an asp:ListBox with SelectionMode="Multiple" to appear at top?

In asp.net if you define an asp:ListBox as follows: <asp:ListBox ID="listBox2" runat="server" SelectionMode="Single" Rows="3"> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> <asp:ListItem>3</asp:ListItem> <asp:ListItem>4</asp:ListItem> <asp:ListItem>5</asp:ListItem> <asp:ListItem>6</asp:ListItem> <asp:ListIt...

How to limit a LINQ left outer join to one row

I have a left outer join (below) returning results as expected. I need to limit the results from the 'right' table to the 'first' hit. Can I do that somehow? Currently, I get a result for every record in both tables, I only want to see one result from the table on the left (items) no matter how many results I have in the right table (pho...

Browse Files Server-side in ASP.NET

I'm creating an ASP.NET web application to schedule tasks on our server from a remote location using a .NET Wrapper for Scheduled Tasks. However, I'm stuck. The user needs to be able to browse the file system on the server to retrieve a "file to run" for the new task that the user's creating in this application. I need to get the file...

How secure is this ASP.Net authentication model?

I've created an web authentication app using c# & asp.net and want to bounce off how secure you think it is. All navigation is done by https. User Registration User enters 3 datapoints (SSN,Lname and DOB). If that combination is found in our system, a session variable is set and navigates to next page. If session variable for #1 is se...

ui for asp.net web forms application

Is there a professional service or product anyone recommends for improving the ui of an existing asp.net web forms application? All web controls/elements use css classes and there is a single css file where the look and feel and be controlled. I'd like to have a professional designer improve the color scheme/font/layout, without having...

jQuery not working on my host?

I am working on a site, and everything is working in my local environment as well as on a test server I have here and everything works fine. but when I upload it to my host, nothing seems to work!? The Asp.Net javascript validators fire, but any and all of the jquery is not working? I even put in a simple $("#test").html("working");...

What role does the file "iis.config" play in the running of a web application on IIS?

We've recently finished development of a web application that works as expected. When we handed it over to the ops team, they freaked out a little bit because we didn't supply the file "iis.config". What is this file? What does it do? Edit: It turns out its a proprietary file for our internal operations monitoring program or somet...

Converting a string to a class name

I have a string variable that represents the name of a custom class. Ex: string s = "Customer"; I will need to create an arraylist of customers. So, the syntax needed is: ArrayList<Customer> cust = new .. How do I convert the string s to be able to create this arraylist on runtime? ...

Setting page title from @ Page directive in ASP.NET using master pages

I am using master pages and am having trouble setting page titles from the @ Page directive. All of my classes inherit from a class myPage which inherits from the ASP.NET System.Web.UI.Page class. Please Note: I have runat="server" set in my master page's head tag. Here's what my @ Page directives look like for the file test.aspx.vb: ...

How do you convert a url to a virtual path in asp.net without manual string parsing?

I've seen similar questions and answers regarding conversions from virtual to absolute and url, but how can I convert a url to a virtual path without manual string parsing? Example: I want "http://myserver/home.aspx" converted to: "~/home.aspx" I realize the above example would be an easy string parsing routine, but I'm looking for a...

Asp.net not authenticating against wcf service on server 2008

I am having a tough time deploying a web site to IIS 7 on Windows Server 2008. The site works fine until it tries to make calls to a WCF service hosted on the same host. Everything works great for the service from my workstation when the web is ran in Visual Studio 20008 using the exact same web config etc. As soon as I deploye the web...

Flexible layered ASP.NET frameworks (Digg/Blog/CMS)

For my next web site I would prefer not to write everything from scratch. At the same time I don't want to be looked to much into a framework. So I would like something that I can use at all levels. Access the DB (SQL Server) directly (The DB layout should not be much more complex than a self written app) Business logic Interface com...

Authentication dialog when running with Visual Studio web server

When using Visual Studio's built in web server, every time I make a page request the standard login box pops up and asks for credentials. It doesn't work if I actually put in my credentials, so I just have to hit cancel 5 times so it will go away. When I run the application through IIS (locally or on test server) it works just fine (no ...

How to build ImageButton Control Adapter (or more general, how to build a simple control adapter)?

Hi My inspiration for this question was my discovery of the very annoying default style (border-width: 0px;) on the ImageButton web control. The simple solution is to override it by adding your own style to the control e.g. Style="border-width: 2px;". How every, it would have been nice to just make a simple control adapter that would j...