asp.net

Problem with ASP.NET Membership Provider

I've just deployed an ASP.NET web site to my hosting provider, but I keep getting the following error when I try and log in: SQLExpress database file auto-creation error: The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. I have already s...

Text to Speech in ASP.NET - Access is denied... what to do?

On my personal website, i would like to make it "pronounce" something I solved the "concept" problem, as in here, and on my desktop it works smoothly when launched from visual web developer. Creates a file, and then an embedded player in the page will play it. Perfect. So, I uploaded it on the server... I get this error 500: Server...

Purpose of elements having their connectionStringName set to LocalSqlServer?

Hello, 1) By default configuration elements have their connectionStringName attribute set to LocalSqlServer, and as far as I know, this attribute refers to connection defined in the element in machine.config file. a) I assume this connection string refers to database aspnetdb.mdf?! b) I understand aspnetdb.mdf is used in cases w...

Hiding/Unhiding Control in Gridview’s column - shifting problem

This is a follow up to my previous question: link text In gridview's column i have a linkbutton and a label under it. I want to hide/unhide label when linkbutton is clicked. I use javascript because i don't want any postbacks. The code: protected void gvwComments_RowDataBound(object sender, GridViewRowEventArgs e) { if (e....

Advanced Sql generations Options window has radio buttons disabled

Hello, If I open GridView’s Smart Tasks pop up --> Configure Data Source, then after Choose you data connection window I’m presented with the Configure the Select Statement window. This window also has Advanced button, which opens Advanced Sql Generations Options window. But both radio buttons in that window are faded out and thus I’m...

Get text between symbols, regex?

Hello guys, I have a problem, i can't figure out a way to get out text between symbols. site.com/hello-world/my-page-title/ i want to get my-page-title only? How? Thanks for your help, ...

Strange characters showing up in XML > ASP.NET > Javascript > HTML

Hi, i have a script that reads an xml file then produces some document.write javascript lines and sends them to request . I'm getting a weird character (only shows in internet explorer, not firefox). I can't seem to track it down. Here's a URL of the script being used (has weird chars in IE): http://www.voyagertravelguides.com/test....

e.Item.FindControl throws Object reference not set to an instance of an object.

Here is the part of Repeater code that throws exception... "Computer.Administrators" is StringCollection object. Debugger shows that "AdminsEnumerator.Current" gets correct string value but when "txtAdministrators.Text" tries to set value - exception is thrown. Please help with ideas. <asp:Repeater ID="repeatAdministrators" OnItemDataB...

Tool for finding ASP.NET tag errors?

Hi there, is there a tool that will run through an ASP.NET site, and reports on any pages that error? We're starting a new web app project at work, and I'm thinking over the things it would have been handy to have in the last. I'm looking to find those little mistakes that creep through the gaps with server tags - things like: Include...

change default startup page Asp.net windows hosted godaddy

when I visit http://mywebsiteurl.com/ by default it will load Default.aspx, index.html, or welcome.html... I would like to know how I can make a directory point to index.ashx (or something else other then index.html) is it inside the web.config file? ...

asp:Repeater - How to make "StringEnumerator" move to next item in "ItemDataBound"?

Here is the snapshot of repeater code. I have problems with geting all the values. In result my "repeater" prints only first element in collection. <asp:Repeater ID="repeatAdministrators" OnItemDataBound="repeatAdministrators_ItemDataBound" runat="server"> <HeaderTemplate> <tr> <td...

Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Collections.Generic.List

Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Collections.Generic.List Error 2 Cannot implicitly convert type 'System.Collections.Generic.List<AnonymousType#1>' to 'System.Collections.Generic.List<Product>' D:\Fortune\App_Code\BL\StoreController.cs 204 45 D:\Fortune\ public static List<Product> GetProducts...

C# Moving a Dictionary Into Another File

namespace Webapplication1 { Public Class MyDictionaries : WebApplication1._Default { public static idictionary<string, label> LabelDict = new dictionary<string, label>() { {"name", label1} } } } Hi Everyone. Im trying to separate a dictionary from my code behind file to a separate class file. but when i do this i get a...

C# Request Queue

My Web Service uses another API to obtain data. I cache the data, clean it and return it do the user when they make a request. At the moment I am getting a lot of requests and because I can only access the data API 2 times per second, I am getting errors back which means some users don't get the data and other do. What I want to do is a...

asp.net mvc complex routing for tree path

I am wondering how can I define a routing map like this: {TreePath}/{Action}{Id} TreeMap is dynamically loaded from a database like this: 'Gallery/GalleryA/SubGalleryA/View/3' ...

Validator not displaying after deployment

I have a asp.net website which having text boxes having required field validation. when i rebuild the application and runs it i could see the validations in the website. But after deploying the website(Publishing) in IIS, i could NOT see the validators in the website. Please help me! ...

Is it possible to have multiple target pages with cross page posting?

I have a web page that uses cross page posting to post to a different target page. A new requirement has arisen that means that there could be 4 different target pages to post too depending on what data was entered on the client. Is it possible to somehow change the cross page posting target dynamically on the client? From looking at ...

How to calculate file upload and download time using asp.net C#

I have a scenario in which need to calculate the Server Time for uploading files as per the Connection speed. Example: Need to calculate time to upload files with Connection speed 256Kbps and more If connection breaks then checking the remaining time and restart the download or upload operation where it was break ...

Asp.net caching and w3p memory usage

Web application storing images in database. In our first setup we were storing (and serving) from images from database resized in asp.net cache. This was all good, but as web started getting more and more hits, we started experiencing weird problems, and by weird, I do mean weird - ranging from w3p crashing without any details to rando...

setting profile properties in asp.net.

Hi, I've created my own signup form and creating the user using the Membership class. MembershipCreateStatus status; MembershipUser newUser = Membership.CreateUser(tbxUsername.Text, tbxPassword.Text, tbxEmail.Text, null, null, true, out status); After the user is created using the code about, I try to set some profile pr...