asp.net

What is the best way to load a column from a dataset (.net) into a string[]?

ASP.NET/C# 3.0 I have a method which has the following signature: public static void SendEmail(string sFrom, string sSubject, string sBody, params string[] sAddresses) I need to loop through a dataset checking the value of column2. If the value of column2 is True, the string value from column1 should be added to the sAddresses string...

Recommend an easy ASP form creator tool that I can purchase?

I'm looking for an easy, drag and drop style form creator tool in ASP that has a web interface with a copy and paste style output where I can drop the code into my html/.asp file. I know and have used one for PHP called 'machform' but I am searching for something similar for ASP/.NET. Would appreciate any advice! ...

There is any way to make Visual Studio self hosted ASP.NET applications to receive external connections?

I can't GET any of the pages hosted on my development machine externally, even after opening an exception at the Windows firewall. ...

FormsAuthentication class c#

Hi, If I call FormsAuthentication.SetAuthCookie("john", true), is the users name stored in the cookie? What I'm trying to find out is if the users session times out and then the user revisit the site again, Request.IsAuthenticated is set to true, but where is the users name coming from? ...

Hiding default.aspx from the URL

Hi all. I wanted to know if there is a solution using IIS6 for an application to get rid of the default.aspx text in the url. so for example if a user hits: www.website.com/default.aspx the browser only shows: www.website.com/ No matter what. It's just for SEO. I already use UrlRewriting.NET for some rewrites in my app but for I'm ...

How do you get the Name of the Property

Possible Duplicate: Print property name (not what you would think) Possible Duplicate: Print property name (not what you would think) How do you get the name of the property from the property itself for example theres a property Myproperty and i want to get Name of Myproperty from the property Myproperty, something lik...

control not available in current context

Hi I Applied a patch to a asp.net page using the tortoise svn "Apply Patch" command. The patch was created using the "Create patch" command. The patch added a label control to the aspx page and some references to it in the codebehind. Now the solution just wont build unless I build the page seperately first. Sometimes even that wont wo...

Collecting SQL Data with feedback to asp.net web app

I have the following situation: I have a stored procedure that takes data from a bunch of tables and creates a record into a single table. After that the end user can get some graphics based on the data from the row in the resulting table. The problem is that the collecting of data from multiple tables into the resulting one can have a v...

Unity & Entlib on Azure

Hi Guys, I am using unity & entlib for logging and caching in my Azure webapp - I have strange problem in that the web browser takes a very long time to load. It seems there is a conflict with the web.config file but unsure what to do ? I need to wait 1-2 mins for the start page to display, sometimes it doesn't display at all - clean...

Why Data manipulation occur when refresh the page in Asp.net

Why Data manipulation occur when refresh the page in Asp.net After submit the button to insert data to database table if i press f5 or browser refresh then again dulicate data is inserted why it is maintaining the textbox values and without clicking the submit button it is fired......? provide solution......... Thanks in Advance..........

IIS 6 compression on Urlrewritten pages doesn't work

I'm developing a asp.net site (running .net 3.5 SP 1) and using UrlRewriter.Net (http://urlrewriter.net/) for urlrewriting. The site is hostet on a Windows 2003 server with all servicepacks and so forth. It runs IIS 6. In order to enable url rewriting I've setup a wildcard handler for *, which means all requests are sent through the a...

Web user control self reference (advanced)

I am a bit stuck. I have created a Web user control which renders a Question (I have a question domain object). This Web user control should render itself again for all Child questions of the current question. Currently I am loading the child questions with LoadControl into the parent control. It works fine the child question controls...

ISO-8859-1 to UTF8 in ASP.NET 2

We've got a page which posts data to our ASP.NET app in ISO-8859-1 <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <title>`Sample Search Invoker`</title> </head> <body> <form name="advancedform" method="post" action="SearchResults.aspx"> <input class="field" name="SearchTextBox" type="text" /...

How do I call a serverside function from javascript?

I have a javascript function from where I am trying to call the serverside function WebSchedule.Client.RadGrid1_SelectedIndexChanged. This is the code: <script type="text/javascript"> function RowSelected(sender, args) { var dataKeyValue = args.getDataKeyValue("Order_No"); document.getElementById("txtOrde...

Problem with YUI library and asp.net autopostback dropdownlist

Hi all, We are using YUI library in our asp.net project. I have a asp.net autopostback dropdown list which is converted to YUI dropdownlist as the code shown below. Now when user select some value from the dropdownlist the page posts back and the SelectedGroupChanged event fires but before that the confirm dialog box is not appearing. W...

How can I make an accordion control in ASP.NET?

How can I find or make an accordion control in ASP.NET? ...

What is involved with making a "build"?

Where I work we use a set schedule to build our applications. What is involved with builds? What is involved with getting an application to build somewhere other than at the local host? ...

ASP.NET DropDownList SelectedValue property not being set immediately

I have an ASP.NET webform on which I use a DropDownList control to allow the user to select an item and see related results. For some reason when I set the SelectedValue property of the DropDownList the value it's set to is not immediately available. Here's my code: protected void Page_Load(object sender, EventArgs e) { if (!Pag...

There is no ViewData item with the key 'taskTypes' of type IEnumerable<SelectListItem>

I'm getting the error message above when adding an onchange attribute to a Html.DropDownList in ASP.NET MVC: <td><%= Html.DropDownList("taskTypes", (IEnumerable<SelectListItem>)ViewData["TaskTypes"], "None", new { onchange = "document.getElementById('NewTask').submit()" })%></td> When the view initially loads, I do not get the error. ...

Asp.net MVC Partial View Form Submit Problem

How do i return a partial view inside a master page after submitting a form. Basically what i'm trying to do is display form validation errors, but the problem i can only manage to return a partial view not the master page or full view that its in. Any suggestions? ...