Resources for Learning Design Patterns
Recently I came about this concept of Design Patterns, and felt really enthusiastic about it. Can you guys suggest some resources that help me dive into Design Patterns? ...
Recently I came about this concept of Design Patterns, and felt really enthusiastic about it. Can you guys suggest some resources that help me dive into Design Patterns? ...
I have a server side button as <asp:Button ID="btnSummary" runat="server" OnClick="btnSummary_Click" Text="Next" /> I want to attach the JQuery Click event using its ID and NOT using the alternative class attribute way. I tried to attach the click event as: $("#btnSummary").click(function() { alert("1"); ...
Hello again; i created web user control, it includes one listbox and also give propert with listdictionary to fill listbox. if you lok below: public ListDictionary Items { get { if (items == null) items = new ListDictionary(); return items; ...
Hello, How do you attach a dll to a asp.net site? I want to be able to debug and edit the dll without having to keep replacing the reference in my asp.net site. I checked attach to process but didn't see the worker process. I am using asp.net, iis 7. ...
Can someone provide an example of linq querying various nested tables in a dataset? I can't find something like that on the net. Thanks ...
In the US, you use a "." as the separator, but in Germany you use a ",". I'm trying to test whether my logic is smart enough to handle either one but I seem to be failing to put my Windows 2000 machine into German mode. I went to Control Panel, Regional Options, and changed "Your locale" to "Germany". I then restarted both IIS and SQ...
I am trying to create nested repeaters dynamically using ITemplate. This repeater is like that I am passing List<Control> and it generates repeater. Issue is that when I databound outer repeater. Only the last nested repeater shows. Following is screen shot. Markup <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Defaul...
I've made the changes outlined at http://stackoverflow.com/questions/108813/404-http-error-handler-in-aspnet-mvc-rc-5 and I'm still getting the standard 404 error page. Do I need to change something in IIS? ...
why can not i use foreach loop to drop items from listbox: protected void btnRemove_Click(object sender, EventArgs e) { ListBox listbox = Controltest2.FindControl("ListBox1") as ListBox; if (Controltest2.Items.Count > 0) { foreach (ListItem li in listbox.Items) ...
I have a page and a user control inside it. I assign a value to viewstate in the control and do Server.Transfer(Request.Url.AbsolutePath); but when I check the value on control's Page_Load() event the assigned value doesn't exists (viewstate is empty, has not keys). Why might this happened? ...
This is NOT a duplicate of this question even though they have the same title. I've got your average e-Commerce app, I store ITEM_IMAGE_NAME in the database, and sometimes managers MISSPELL the image name. To avoid "missing images" (red X in IE), every time I display the list of products, I check the server for the image related to th...
(ASP.net 3.5, C#, SQL Express 2008) I want to have a Web Form, where I can search for "Solutions" (my table) using a keyword entered by the user and after the result comes back and populates a GridView. I already have parts of this search via a stored procedure that is hooked up to my Entity Data Model. On this page I have an EntityDa...
I'm using asp:FileUpload control to upload a file to the server. Nothing fancy there, just FileUploadId.Save(); File gets uploaded successfully, and everything is fine until I try to delete that file on the CLIENT. I get a good-old "File is being used by another person or program" message. How do I make sure that file is not being a...
Hi, I need to create some sort of a state for a bunch of elements on a page. The stats can be 1 or -1. Now on the server side I will generate a JSON array and put it in my .aspx page like this: var someArray = { 100:-1, 1001:1, 102:1, 103:-1 } How do I loop through each value now in javascript? BTW, is my JSON array format correct?...
I'm currently working on two social networking sites that have a lot in common, yet are distinctively different. I find myself writing a lot of the same code for both (including UI), and was wondering if there is a best practice that will limit duplicating code. One of the main problems is that these projects are very independent of ea...
does anyone know how to use jquery modal dialog in asp.net pages? http://jqueryui.com/demos/dialog/ I've tried creating a simple aspx page, pasted code from the example (http://jqueryui.com/demos/dialog/), it almost works. The dialog briefly shows up and then disappears. It seems that the page is doing a postback. I'm not sure how to st...
Duplicate of Asp.Net Button Event on refresh fires again??? GUID? hello, ive a website and when a user click a button and the page postback, if the user refresh the Page or hit F5 the button method is called again. any one know some method to prevent page refresh with out redirect the page to the same page again ? something like if (p...
hi, i am creating news system for my client, and he requested that when he publishes the article, he want a list at the bottom to show similar or related articles to his published articles. so how can i create this if he does not want to put it manually ? thanks in advanced. ...
Hi , i have date like string date = calarc.SelectedDate.ToString("MM/dd/yyyy"); where calarc is calender control. It returns a date in 03-14-2009 format but i want it in 03/14/2009 format. so how do i do above? ...
Scenario: I have a nested web user controls in my asp web page, and I have a button inside the child user control. Web Page: references a parent control called “slot” which dynamically loads <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="light.Home" %> <%@ Reference Control="~/UserControl/Slot.asc...