asp.net

Setting the text direction for a Label in ASP.NET

Hi friends, I'm working on a multi-lingual application which requires me to change the text direction (either ltr or rtl) dynamically according to the user language. I used a label for this. I assigned it a css class which would set the direction but its not working. I also added a style to its CssStyleCollection list but i...

Extending asp:SiteMapPath

I'm using <asp:SiteMapPath ID="SiteMapPath" runat="server" skiplinktext="skip breadcrumb"></asp:SiteMapPath> In a SharePoint environment - is there anyway to force it to display the current page? i.e. [home] > [site name] > [site name] > [page name] ...

Creating a trouble shooting web page with a series of ?s in asp.net. Directed Graph

I've been working on my first web page which will be used as a trouble shooting guide based on a series of questions. The questions are determined by the answer of the previous question, so it turns into a "choose your own adventure". Luckily I was given a decision flow chart showing all the possible paths, but it looks like the Tokyo ...

A good alternative to crystal reports over the internet

I have so many problems with using crystal reports over the internet. I admit that the web viewer looks good and the reports you can produce with it are really good but... I have issues with diffrent versions on diffrent servers The development tools are worse than access I dont understand it. Does anyone have any good alternatives f...

Asp.net Response.Write inside an ascx/aspx file

<%if (CanRemove) Response.Write("<b>"+ProductName+"</b>"); %> This code strikes me as ugly. More specifically, any time I see a call to Response.Write inside an ascx or aspx file, I get suspicious that I'm doing something wrong. Perhaps this is due to previously working with XSLT and noticing that when done right, there is rarely a n...

How to set the position of the Ajax modalpopupextender

Can the position of the Ajax modalpopupextender be set either to an absolute or relative position on the page? The default puts it at page center and I haven't found a way to override this. I would like to position the popup close to the control that triggers it. ...

ASP.NET AcessDataSource and dropdownlist

Hi I'm using visual studio 2008 with .net 3.5. I have an AccessDataSource that is linked to a access database. I have a dropdownlist that use the AccessDataSource. Everything was done with the wizard and everything was working just fine. At the page load I decided to call the SelectedIndexChanged of my dropdownlist to update someth...

converting a string to a constant string

I have the following code... Const ToAddress As String = username.Text & "@gmail.com" which sets to ToAddress to be used in on my Net.Mail.MailMessage that is to be created with the following constructor Dim mm As New Net.Mail.MailMessage(username.Text, ToAddress) which takes in a string and a constant string. But I get an error her...

Webaii ConfirmDialog missing?

How do you Webaii guys out there handle javascript confirm popup's? I can't find a ConfirmDialog class in ArtOfTest.WebAii.Win32.Dialogs, and if I try to use AlertDialog instead I get an ArgumentException due to validation rules in the ctor for the AlertDialog class: "System.ArgumentException : Alert dialog can only be dismissed using...

What is the performance impact of LoadControl?

What is the performance impact of using Page.LoadControl in ASP .NET to load User Controls that are compiled outside of the "parent" application? ...

Binding Gridview to IList<BusinessObject> that contains an IList<BusinessObject>

I'm having trouble figuring out how to bind a custom IList to a gridview. The IList contains another custom IList. I need to bind a property from this IList to the gridview. public class Seminar : BusinessObject { private string _description = String.Empty; private List<User> _attendees; public string Description {get {retu...

How can I populate a dropdown list with data?

I have a dropdownlist that I want to populate with a specific value and specific text. I'm not using a datasource but I am manually making a connection and retrieving data in code. How can I populate this dropdownlist? If I read the data with a datareader and increment an array I only get either the value or the text. This is what I have...

Update an ASP.NET label without AJAX.NET or jQuery

The form has one asp:label and one html input button. On the button click, I want to update the label (e.g. some server side data). I would like to do this without UpdatePanel or jQuery. I can do a basic ajax call to an .aspx on the button click. What is the best way to update the label with the result? [figure it has to be an asp:label...

Adding Permissions to a Complex System

I have a project with several separate components that all need to talk to each other. I am now trying to find a good way to share a permission system between each component. The 3 major components are: An ASP.Net Web Application A Silverlight application (served by the web application) A Windows Service, which provides some WCF web ...

Limitations to recording changes in a bound dataGridView to a dataTable

Hello, I was under the impression that upon binding a dataGridView object to a dataTable that any changes the user makes in the dataGridView are then recorded in the dataTable. These changes include switches in column order, sorting, and the addition and deletion of rows. However, this does not seem to be the case. I am finding that ...

Invite suggestions and guidelines for Load balancing of asp .net application.

Hi, I have an asp .net 2.0 web application which is a online survey system.At times it has huge number of users and the application go slow. I wanted to do load balancing for the web application which runs in a single server now. Will anyone suggest me... a) In what all scenarios i should consider load balancing to my application? b...

ASP.NET 2.0 application won't compile when adding a Microsoft Report to the solution

I have a ASP.NET 2.0 web application. To that solution I add a Report (Reporting Services). I make no further changes to that report. When I try build the application the build fails with the following error originating from that report file : A namespace does not directly contain members such as fields or methods ...

ASP:Imagemap making the hotspots easily findable

I am developing a application that would benefit from identifying items from an image map. You can create image maps easily on a asp.net site using this code. <asp:imagemap id="ImageMap1" runat="server" imageurl="image.gif"> <asp:circleHotSpot PostbackValue="Area1" radius="10" X="30" Y="30" ALternateText="Area1" HotSpotMode="PostBack...

Error when i change the textbox to dropdown

I have the below error message in my asp.net website when i replaced the textbox and put dropdown and named the dropdown id same as textbox id. The value from the drop down should be taken and put in a email body and will be received as mail when i click on the submit button. Below is the error i am getting when i click on the submit b...

Twitter API + OAuth: Can't send status updates, getting 401

I'm trying to use Twitter's API and OAuth to send status updates (new Tweets). I am using Shannon Whitley .NET code example http://www.voiceoftech.com/swhitley/?p=681 (as recommended on the Twitter API docs). I can read (GET) using OAuth just fine, however when I try to send a status update via http ://twitter.com/statuses/update.xml (us...