asp.net

"User Preferences" Database Table Design

I'm looking to create a table for user preferences and can't figure the best way to do it. The way that the ASP.NET does it by default seems extremely awkward, and would like to avoid that. Currently, I'm using one row per user, where I have a different column for each user preference (not normalized, I know). So, the other idea that ...

Why does attaching an eventhandler in Javascript stop my server side event firing?

I've been doing C# for years but ASP.NET for not so long and this has me stumped. In my troubleshooting example I have a dropdownlist in an ASP.NET page, it has four items in it, I have a serverside event that fires on selectedindexchanged, it all works great in this scenario. However, if (as i have in my evolved code) I set a Javascr...

Dynamic UI vs Static UI

I've been wondering, at what point should I give up the convenience of a static data entry form with designer support for a dynamic UI which removes a lot of code duplication? There seems to be a conflict in the programming world where people constantly try to remove code repetition to improve maintainability and yet when it comes to fo...

How to read an external page's title?

I think it's possible with jQuery, but any ASP.NET serverside code is good for my situation too. With jQuery I can load a page to for example a div, and filter the div for <title> tag, but I think for heavy pages, it is not good to first read all of the content and then read the title tag.. or maybe it has a very simple solution? anyway...

problem with gridview method calling

Hi, Though i am setting in grid view OnRowDeleting="GridView1_RowDeleting" and cicking on the gridview i am getting the protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) as i am clicking on Delete link it should open the Delete Event protected void GridView1_RowDeleting(object sender,GridViewDeletedEve...

how to navigate pages in asp.net

hi i have to nagivate to another page in asp.net suppose i have two pages ie Default.aspx and Default2.aspx how to i naviagte between them ...

Do I need to have MS Word installed for creating Word documents from asp.net?

See title... ...

Microsoft Expression Web 2 experiences while programming VS studio 2005/2008

Have been programming with VS studio 2005/2008 making ASP.NET applications for a while. I am interested in experiences with Microsoft Expression Web 2 (strengths and weaknesses) ...

What is the most simple way to bind a single row of a datatable to a detailsview in C# asp.net?

I currently copy the row to an empty datatable and bind that one, but surely there is a better way... ...

how to sell small programs i wrote my self?

i am a .net developer and developed a lot of applications, what i want is to write some good ideas and sell them on the internet, i have my own website, but how to promote for these applications, should i go to download.com Seams that my problem is marketing ...

Whats the best CMS/Website Starter kit for my project?

I need to build a company profile website, which will contain a gallery of images which this company designed before, and will contain the normal stuff, such as about us, contact us, menus for fast navigation, and also need to give this company a way to edit the site them selves, so which CMS/Website template you recommend for me? -Free ...

How can i get the value of a pkey for a record just inserted (autoincrement)?

I'm subsequently inserting a single record in two tables. With the first insert i put the record in the main table, where the primary key value gets generated. Now i need to put some fields of this record in another table including the key value of the main table. How do i do this? ...

Can the clsupload.asp directly replace the persits code? I am a total nubee to coding. tks...

Can the clsupload.asp directly replace the persits code? I am a total nubee to coding. tks... I inherited a website and discovered that they used a com object "persits upload. I do not want to purchase and install for one application. Can someone help to tell me where or how to change this below code to work without the software buy? Se...

Registering ModelBinders

I have just updated to RC1 MVC from the beta product. I have the following code in my Application_start (in the global.ascx) System.Web.Mvc.ModelBinders.Binders[typeof(Shared.DO.Gig)] = new GigModelBinder(); This results in the following exception.... Method not found: 'System.Collections.Generic.IDictionary`2 System.Web.Mvc.ModelBin...

Webcasting/Broadcasting using VB.NET, MYSQL and ASP.NET

Hi,. I am currently working on my project webcasting, my concept is to capture the desktop of the host computer as an image/jpeg file and save it to the database, by having a common database VB.NET and ASP.NET can connect. And lastly, get the image/images from the database and render it to ASP.NET. 1.) VB.NET -> capture image 2.) MYSQL...

Running ASP.NET without viewstate turned on

We're about to start rebuilding one of our ASP.NET projects and I would like to try developing it without viestate turned on (disabled in web.config). I know about the upsides and downsides of viewstate and generally speaking what it keeps track of in comparison to control state, however I would like to know: What are the principle de...

Block a user from a website in ASP.NET

Beside IP blocking and probably using a cookie (if the user changes the IP but doesn't remove the cookie, the new IP is added to the banned list, so the IP has to be changed and the cookie has to be removed together to access the site), is there any tricks one can use to block an annoying user from a website, I know that nothing will wor...

.NET two "forms" on a page and their validators

Hi, I have got a page that has 2 "forms" (What I mean by a form here is a Panel consisting of: textboxes, validators and a button). (I got 2 here because one of them is actually on the MasterPage, shown all the time) The problem is when you try to submit to one of the form, it will validate the other form, which of course is blank and...

ASP.Net AJAX TabControl

Hi. I have placed an AJAX Tabcontrol on my page. Inside the TabControl, I also placed a gridview. <cc1:TabContainer id="tabconLandTransPlan" runat="server" Height="300px" ActiveTabIndex="0" AutoPostBack="True"> <cc1:TabPanel runat="server" ID="tabMasterPlan" HeaderText="Master Plan" > <HeaderTemplate> <span style="font-size: 8pt; ...

How can I insert a new row into a grid view control?

Duplicate: How can I insert a new row into a grid view control? How to programmatically insert a row in a GridView? I want to insert a new row when I click a button control. I want all the buttons to be located on the side of the grid control and when I click the new button to add a new empty record, it should fill the row w...