When trying to add a few items to the database I'm getting this error:
UpdateException was unhandled by user code
An error occurred while updating the entries. See the InnerException for details.
The InnerException contains this:
{"Column count doesn't match value count at row 1"}
I can't see anything wrong with the objects...
In my asp.net web app. I have three classes (inside app_code folder) under namespace WPP which are as follows:
1. wpp_Common
2. wpp_SQL
3. wpp_Admin
All these classes contains different functions which I am using in my application to accomplish different tasks. Such as, wpp_common contains a function which make my URL's SEO'd, and wpp...
I am reading the article:
Nine Options for Managing Persistent User State in Your ASP.NET Application
by Steven A. Smith (Doesn't he host a show on ESPN?)
In the article, Steven makes the following statement: "When dealing with a single ASP.NET page, ViewState is a better choice than QueryString for maintaining state"
Unfortunately, h...
I am creating a method in a DLL that is going to be dropped into a web application.
The web application has a folder with a XML file in it:
/files/myfile.xml
My dll has to reference that DLL, but I can't hard code the path to the file obviously.
How can I reference that file and load a XmlTextReader with that file?
...
Hi,
using xmltextreader, how would I load a hashtable.
XML:
<base><user name="john">2342343</user><user name="mark">239099393</user></base>
This was asked before but it was using some funky linq that I am not fully comfortable with just yet.
...
I run multiple processes under IIS and when debugging it can be tough to know which process I want to attach to. Can you programatically set the "Title" of a process so that it can be identified in Visual Studio's "Attach to Process" window?
...
I have an internal application that I needs to have a drop down list for two date type elements: Month and Year. These values are not in a database or other repository of information.
I know I could just setup a list with the values I need by adding them to a dictionary like object (I need to correlate the Month to the numerical repre...
I've built an open source ASP.NET web application and now I'm moving towards release. I'm keen to offer an easy install for my users but I'm having real problems coming up with a solution.
The app needs to have a site setup in IIS and a SQL Database installed. What is the easiest deployment process for my users you can think of?
...
Now that IE8 is out, what are the gotchas that web developers are likely to encounter in their existing sites? Is there a list of "breaking" changes? Or is this thing "just going to work" with existing sites?
...
Hi,
I am using asp.net and i would like to create a table which allows the user to enter multiple rows. some of the rows are to be dropdownlists. I dont know how to do this :S
can someone help me please?
Thank you
...
I have created a web service in a virtual directory using VS 2008. I have tested the service by going to the .asmx page and everything is working fine. So I selected the "Add web reference" option under the solution and typed in the .asmx URL. It found the web service successfully and added the reference to the project. However, whe...
I have 2 images inside a folder called Pics..... Image1.jpg and Image2.jpg.
What code must i place inside my Submit button to just delete Image1.jpg located here "~/Pics/Image1.jpg"
Any help would be great!!!
...
ASP.NET 2.0, testing in FF3 and IE7.
When I hit the 'enter' button from a text box the corresponding "OnClick" event for the first ImageButton in the page is fired. If I remove that image button, it fires the next ImageButton OnClick event on the page.
From the FireBug console, if I use JavaScript to submit the Form, this does not h...
I have some C# code that will upload images and files into a db. Currently I thought It working for all documents that fit a list of mimetypes. However It fails on some pdf's.
I have narrowed the problem down to the fact that some pdf's are in the 1.3 format and some are in the 1.4 format. The 1.4 works and is properly uploaded, however...
I have a GridView which I am populating by calling a method to return a datatable with two columns. After I return the datatable, I bind it to the gridview and display it.
I am not using a SqlDataSource or an ObjectDataSource, so what is the proper way to Delete a row from the gridview and the underlying data in the database. I just ...
I'm using ASP.net and an SQL database. I have a blog like system where a number of comments are made against a post and I want to display the number of those comments next to the post. To get that number I could either hold it in the post record and add/subtrack when a comment is added or deleted or I could use the SQL to calculate the ...
Hi,
Trying to add some descriptive text to my radio buttons in my radio button list.
for some reason the column is SO narrow that the radio button stretches down very long.
Is there a way I can format this to look nice?
Should I be adding the text to radiobutton.text or somewhere else?
...
I'm currently working on a ASP.net project that will plug (virtual directory) into a "parent" ASP.net project sort like a module. Since my project have its own Global.asax, web.config, error handling...etc. Would it interfere with the parent project written by someone else? If I'm not mistaking, ASP.net treat each virtual directory as in...
Is there any way to configure IIS or Web app to automatically open a new window when a hyper link is clicked? My issue isn't as trivial as it sounds, let me explain... I understand you can use javascript or target="_blank" in the anchor tag, but I don't always know when an anchor tag might be listed on the page...
Reason is that its ...
I'm thinking of implementing the Screwturn Wiki for documenting the administration area of a website. I would like to use the existing custom asp.net membership provider so that access to the wiki is seamless. So it would look something like this:
http://www.example.com/admin - Existing administrative area
http://www.example.com/admin/...