asp.net

Populate ParameterCollection w/ sp_columns (or INFORMATION_SCHEMA.Columns) Results

I'd like to build a ParameterCollection object based on the results of either execute sp_columns MyTableName or SELECT * FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'MyTableName'. The problem I'm having is assigning the appropriate data type to each Parameter ... I'm unsure of how to gather that information from either of the abo...

Is there a URL validator on .Net?

Is there a method to validate URLs in .Net (or ASP.Net, or ASP.Net MVC)? ...

nested dictionary to nested repeater asp.net c#

Hi, I'm making an asp.page that will display hierarchical information about company assets. To grab the data I used a lambda expression: FASAssetInfoDataContext fasInfo = new FASAssetInfoDataContext(); var data = from g in fasInfo.Asset_Informations where g.Department.Substring(0, 3) == p ...

get selected row index of dynamic dropdown list selection

I know the question is a little choppy and perhaps misleading,but I have a gridview with dropdownlists on the rows. I created an AddHandler and a Delegate for the SelectedIndexChanged and it gets to the sub. Here is the code for that: AddHandler ddlmgr.SelectedIndexChanged, AddressOf ddlmgr_SelectedIndexChanged Public Delegate Sub DropD...

CSS Layout with Pixel And Percents

I have a div which contains two nested divs, one that specifies a height of 65 pixels (header), the other which specifies the height as 100% (content) and it is supposed to take the rest of the space veritically. When the page renders, there is a scrollbar on the right because of the height specified of 65 pixels of the header. What am ...

Iterate over all Query Values in C#

I'm trying to iterate over an unknown number of query values in C#... and can't find anything unrelated to LINQ, which I can't use. Anyone have any ideas? ...

Accessing RepeaterItem Controls in an EventHandler

Hi everyone -- I have a page with a repeater in it. I'm writing an event handler so that when the user clicks my WebControl button, the event handler for said button iterates through the items in the repeater using FindControl, then uses some of the controls' values. It seems though, that after the page is loaded, the repeater items popu...

Serializable partial classes

Guys, I have the follow VB.NET class definition: <Serializable()> Partial Public Class Customers End Class Inside another file I have the same thing (with different methods and variables of course). When I compile, I get the following error: Attribute 'SerializableAttribute' cannot be applied multiple times. The error is pretty self...

Custom Namespace on .NET web app

So I wrote some custom classes and put them all in a namespace, call it "Sphere". On my aspx.cs codebehind file, I have "using Sphere;" written. I know that this works because it's always worked until I copied this project to a new folder. Also, even when I click "view in web browser" everything works perfectly. Simply, Visual Studio 0...

jQuery and ASP.NET Custom Validator

I'm trying to learn jQuery and it occurred to me that existing JS in some of my sites could be replaced with just a few lines of jQuery code. In the following code, I'm trying to set the value of a custom validator by making an AJAX call. The first block of code does not work as it should, whereas the second block works fine. The whole "...

Pass Image from Flash to ASP.NET

Quick version: How do I get an image that was generated on the users browser back to the server? The current plan is this: 1.) The Flash developer will convert the bitmap to JPEG 2.) He will then POST the JPEG to a page on the site. 3.) I'm thinking I can create a WebService which will use a StreamReader to read the post and save it off...

URL Routing and IIS6. How can I test it?

I can't seem to understand how I can find out what is erroring out when I implement URL Routing on IIS6 and Webforms. I continue to get 404 errors when I try to access a route. I add the ISAPI module as described here: http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/ SO that way ASP.Net handles all the r...

How can I specify that asp.net themes should not be applied to a specific folder?

I happen to have an asp.net 2.0 project that I want to apply a site-wide theme to. As such, I've specified the theme in the web.config file by setting the "theme" attibute of the system.web.pages element. Now, I've added a new folder containing third party code that I do not wish to apply the theme to (in fact, I can't, because many of...

Web User Control not visible in Default.aspx

What gives? My previously created user control is visible, but the newly created one is not - intellisence doesn't show it, I was under the impression that you don't need to put any using statements or references in the project if the web user control is in the same project. UPDATED: both declarations look something like this: public ...

ASP.NET server and PHP?

I wanted to know, is a server that supports ASP.NET and PHP on the same box common? wordpress/mediaWiki/phpBB3 seem like a nice combo but i am developing a ASP.NET project. ...

Clear FileUpload Content in ASP.NET

How to clear the textbox content in a FileUpload control in ASP.NET? ...

Problem accessing a MySQL database over ODBC

OdbcDataReader q = dbc.Query("SELECT * FROM `posts` WHERE `id`=" + id.ToString()); if (q.RecordsAffected < 1) { this.Exists = false; } else { this.Exists = true; this.Author = q.GetString(6); } The server returns No data exists for the row/column. My database table is structured like this (screencap from phpMyAdmin) By t...

FormView doesn't return to ReadOnly mode and it doesn't update my record...

hi How can I update a FormView which has been bound to a Dataview? ...

How do I resolve "HTTP Error 500.19 - Internal Server Error" on IIS7.0

What causes this error, how can I fix it? Detailed Error Information Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007052e Config Error Can not log on locally to C:\inetpub\wwwroot as user administrator with virtual directory password Config File Unavailable (Config Isolation) Requested URL ...

How to improve your web application

Hi guys, I want to do better, and I want to ear from you about what benefits does something and does it worst to add it to a web application. I do a lot of ASP.NET applications, specially to run inside an CRM application. Something like beeing completly in the user and we 'forget' about it until we receive an email :) This question i...