asp.net

Maximum request length exceeded.

Hi, I am getting this erro when i am trying to upload a video in my site, can u tell me what is the solution for this, why it is coming. Thank you ...

Assign a datasourceid to a datagridview asp.net and add select parameters

Hi, I have a datagridview which I assign an objectdatasource to bind data. My selectmethod has a parameter which is assigned at gridview_databinding. The code does not work as expected, using the debugger, it keeps firing the gridview_databinding event and entering the databind method in what seems like an infinite loop. Please help me f...

Download/Delete mails from pop3 account in ASP.NET

Hi, i have this WCF application which is hosted as a windows service. This service has to download mails which have CSV attached to them from a pop3 account. After getting that CSV i have to delete that mail from the pop3 account so that it is not downloaded again. How can i do it? Please help. ...

Adding data from multiple tables into a gridview and more (ASP.NET)

I am using Quartz.NET for my scheduling system, and I want administrators to be able to logon to a web based form to update and delete jobs and triggers. I plan to use a gridview to achieve this, but I have a few issues I have run into. How do I select all data from 3 tables, but make sure each row in each table corresponds to the row i...

asp.net ajax AsyncFileUpload control error

I am getting an error while using AsyncFileUpload in my webpage. When i select a file, it gives me an error: Server Response Error: 'Index was out of range. Must be non-negative and less than the size of collection.' In my page i am using Iframes to open a popup (user exp) and than have a usercontrol in which there is the AsyncFileUploa...

dynamically create table with time increments

I need to create a table with just 1 column containing times (starting from 4hrs) which increase in increments of 10 seconds for each row. So it needs to look something like this: 04hrs 00mins 00secs - 04hrs 00mins 09secs 04hrs 00mins 10secs - 04hrs 00mins 19secs 04hrs 00mins 20secs - 04hrs 00mins 29secs ..... 06hrs 59mins 50secs - ...

merging cells in the gridview when exporting to excel

Can anybody help me on this? I have a gridview populated,When I export the gridview content to excel I want some of the cells to be merged and formatted.Supposing,if my gridview is populated with the content as below, NAME DATE UPDATE DESCRIPTION xxx 4/10/2010 aaa aaa xxx 4/10/2010 bbb bbb yyy 4/10/2010 ccc ...

Microsoft JScript runtime error: 'Sys' is undefined

Hi, I am having problems with an intermitent error in an ASP.Net Ajax enabled website. The error I am receiving is the old faithful "Microsoft JScript runtime error: 'Sys' is undefined" error. Googling this error usually turns up the suggestion to add the correct "httpHandlers" and "httpModules" into the "web.Config" file. The web.confi...

Issues with aspnetForm in hybrid asp.net webforms/mvc app

I am building a hybrid MVC/Webforms application where my MVC views are using an asp.net webforms 2 MasterPage. Everything has been working perfectly until I decided to put a form in my MVC view. Since ASP.NET Webforms wraps the entire page in a form element and you can't have a form within a form, I'm a little bit stuck. There are a lo...

Asp Composite control child control (radiobutton) losing checked value

I am working on a quiz control in asp.net with dynamically created questions and options. The main control is basically a container to hold all of the questions. In design view users can add questions through a custom Collection Editor. Everytime i add a question to the collection editor list it generates a question tag for me. Inside ea...

Creating a reusable site structure in ASP.NET 4.0 with C#

Hello, I wish to streamline and best practiceify the way that I setup websites for my clients. General information: -- ASP.NET Forms style of website i.e. not MVC -- Web applications (not website) -- I am using OneClick deploy -- I wish to package the main web application -- Ideally, I wish to package the sub applications also. -- A...

MVC2 Custom Editor Template outer validation box

I've got a custom Editor Template that is essentially: <div id="control"> <%: Html.DropDownListFor(model => model.Day, Model.Days)%> <%: Html.DropDownListFor(model => model.Month, Model.Months)%> <%: Html.DropDownListFor(model => model.Year, Model.Years)%> </div> Whilst my validation is successful/fine with this control (ValidationMes...

Web bot problem.

I have a database generated page which shows lots of links. This page consists of 3 colums. In the first column, it gets the links from the database. In the second column it generated + links, and in the last column, it generated a - link So basically, each row generated consists of a url link, a + link and a - link. When the user ...

How to remove identical items from List<string>?

I have a List in which I select users from db each time a sql query runs with certain value and selects one user in the time thus I cannot limit identical users in sql. I have list with: list[0] = "jerry" list[1] = "tom" list[2] = "jerry" I want any (first or last doesn't matter in my case) to be removed from the list. Thanks ...

How to Make AutoComplete TextBox in asp.net

Hello All, I want to make an Auto complete TextBox in C# that Bind to a data source Any help will be appreciated Thanks in Advance ...

Create a web service with XML response.

What is the easiest way to create a web service with XML response? Use WCF to create the web service? (seems really complicated) If i want to use WCF to create my web service, where do I start? ...

access to registry key 'Global' is denied when published asp.net 2.0 website that uses oracle 10G on windows server 2008

access to registry key 'Global' is denied when published asp.net 2.0 website that uses oracle 10G x32 on windows server 2008 x64 ...

ASP.net c# replace string not working

// Build email link confirmLink = Master.siteDomain + "/newsLetter.aspx?action=confirm&e=" + emailAddress + "&code=" + verCode; using (SqlCommand cmd = new SqlCommand("SELECT newRegEmailBody, newRegEmailSubj FROM tblSiteSettings WHERE (isActive = 1)", Master.cn)) { SqlDataReader rdr = cmd.Exec...

Pb. DataGrid.Items while enabeling the Paging

I'm using a Datagrid with paginig, while clicking on select all , all items in all pages are selected but while the execution, I'ven't all the selected items. How can you get the DataGrid.Items.Count to reflect the FULL record count instead of displaying the page size? I'm using this property and all it's displaying is the page size of ...

Remove QueryString Variable in c#

hi.. I am very beginner With Programming...(unfortunately) I want to remove Any added QueryString To Address after i get the variables. for example: www.websiteName.com/page.aspx?a=344&b=233 i will get a and b and after that i want my address to look like this: (www.websiteName.com) . "root location". any help... thanks. ...