Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net webcontrols > july 2007

Filter by week: 1 2 3 4 5

Runtime validation Webcontrol
Posted by brandonjack007 NO[at]SPAM gmail.com at 7/31/2007 8:24:56 PM
I have a webcontrol that extends from System.Web.UI.WebControls.WebControl. It has 3 properties SelectedDate, MaximumDate,MinimumDate. During design time I use ArgumentException to ensure MinimumDate<SelectedDate<MaximumDate. How can I achieve this validation during runtime. ...more >>


TreeView in webapp
Posted by Nico at 7/31/2007 7:00:06 PM
Hi, not sure this the right place to ask this question, but don't know where else to put it. I am making a web application with a treeview. I would like to be able to move the nodes around in my web application, but the drag & drop events aren't available to me. Anyone know how to do this?...more >>

SelectedIndexChanged not event firing on DropDownList when changed programatically
Posted by Rob at 7/31/2007 12:00:00 AM
Hi, We have a custom control which contains a number of dropdownlists. Within the custom control class we have a handler for the SelectedIndexChanged event. This event fires when the user selects an item from the dropdownlist, but it's not firing when we change the selected value in the cus...more >>

Problem with ImageButton.OnClientClick when DataBinding
Posted by Nathan Sokalski at 7/30/2007 9:07:30 PM
I have the following tag in one of my DataList's ItemTemplates: <asp:ImageButton ID="btnViewQuestion" runat="server" BorderWidth="0" ImageUrl="images/qmark.gif" Height="27px" Width="26px" OnClientClick="window.open(<%# DataBinder.Eval(Container.DataItem,"questionid","'viewquestion.aspx?ques...more >>

Enum Property
Posted by brandonjack007 NO[at]SPAM gmail.com at 7/30/2007 4:59:06 PM
I have an enum property in web control. I can set it to One, Five, Fifteen. It always returns "One" at runtime. Any suggestion. public enum Interval { One, Five, Fifteen } [Bindable(true), Category("Appearance"),...more >>

Programmatically Set ObjectDataSource
Posted by Chris Lane at 7/30/2007 10:24:00 AM
Is there a way to programmatically set the name of the Select, Insert, Delete and Update methods?...more >>

commenting aspx code
Posted by Vipper at 7/27/2007 3:10:02 AM
Hi, This question seems a little silly, but I want to dissable code lines using this way: <asp:Button ID="Button1" runat="server" Text="Button" /></div> <!--<asp:Button ID="Button1" runat="server" Text="ButtonOld" /></div>--> But I get an error about a duplicate identif...more >>

Simple DataList Update on PostBack
Posted by newGuy at 7/26/2007 1:28:03 PM
Hi, I have a DataList that displays a column of text boxes that the user can edit. Instead of having a button with a CommandName within the <asp:DataList> to submit the page, I have just a regular HTML submit button elsewhere on the page. How can I call the DataList's UpdateCommand even...more >>



Repeater Separator question
Posted by Nick Foster at 7/26/2007 8:20:02 AM
I have a repeater I have bound to a custom collection of TicketLogEntries. If a TicketLogEntry is marked as private and the user is not an administrator, then the Item is hidden (code below). The question is: if I set an item's or alteratingitem's Visible property to False, can I also hide...more >>

Trying to get an asp:Checkbox to display an alert when the person clicks it.
Posted by Mufasa at 7/25/2007 3:38:33 PM
I have a situation where I need to display an alert when somebody clicks a check box. I was able to get it to work with a plain <input> but when I try and do it with an <asp:CheckBox> I can't get the javascript right. Anybody have any thoughts? TIA - Jeff. ...more >>

GridView, accessing data
Posted by Doogie at 7/25/2007 5:44:14 AM
Hi I have a gridview on my web page and I bind it to an object of my own creation. When I click a button on that page, I want to get the data from that gridview and cast it back into that object I created and start to do work on it. I tried something like this: List<MyObject> myObject = (Li...more >>

How change Label's Text value in client side and postback to Server?
Posted by jiatiejun at 7/25/2007 12:00:00 AM
I want change the Label's Text value in client side by javascript I use getElementById to set control's innerText value but the new value can't postback to Server how to pass the value to Server? thanks ...more >>

Button Skins
Posted by David Kempler at 7/25/2007 12:00:00 AM
Where can I download button skins? ...more >>

derived custom controls from Button or ImageButton
Posted by jiatiejun at 7/24/2007 11:04:49 PM
I want write a custom controls (Button or ImageButton derived) and want set the "name" tag to my custom value use this.Attributes["name"] = "MyNameValue"; or writer.AddAttribute(HtmlTextWriterAttribute.Name, "MyNameValue"); asp.net add my "name" tag but itself name tag still exists ...more >>

Generate html table with merged cells
Posted by Greg at 7/24/2007 11:15:05 AM
I need to dynamically construct a table in code (vb.net) that will have merged cells. It should look something like this: _____________ | | row 1 (contains an image control) _____________ | | | | row 2 (contains an image control, data, another image...more >>

Gridview e.OldValues and e.NewValues are nothing
Posted by Pulkit Sharma at 7/24/2007 2:38:13 AM
Hi, I am using a gridview control in asp.net 2.0 and creating some dynamic template fields in it. Whenever I am trying to get the e.NewValues in the row_updating event , it is always nothing, Is this a know issue? If there is a work around please let me know. Protected Sub gridSystemLoo...more >>

Could not find file Error
Posted by Amritha.Datta NO[at]SPAM gmail.com at 7/23/2007 10:30:51 AM
Can anyone tell me why the below code returns error? Exception Details: System.IO.FileNotFoundException: Could not find file Dim strLFolder As String = "c:\Temp\F Files" Dim intClientID As Integer = 1221 Dim XMLStr As String = strLFolder & "\" & intClientID.ToString...more >>

Style not applied until refresh...?
Posted by Monty at 7/21/2007 8:56:58 PM
Hi, I have a user control in which I set some style properties programmatically, like so: divMain.Style.Add("width", Me.PixelWidth.ToString & "px") Dim iInnerWidth As Integer = Me.PixelWidth - 2 ddlCategory.Style.Add("width", iInnerWidth.ToString) ddlLocation.Style.Add("width", iInnerWidth.T...more >>

How to form a method to change HTML Elemtn by reference?
Posted by Shannon at 7/21/2007 6:59:51 AM
Hello, thank you for taking the time to read this. I am totally stumped on this one. I have a ton of TD attributes that have to be changed based on the data in the DB. All TD elements are ID and runat=server. Changing the attributes of a SINGLE TD is simple: <td id=thisTD runat=server>...more >>

How to stream file of windows media player in asp.net
Posted by swapnilbhavsar NO[at]SPAM yahoo.co.in at 7/20/2007 10:57:52 PM
Hi, I am developing an application in ASP.NET using c#. I have embed windows media player into my website and play media files. When client is going to play Audio File it takes time for streaming, I want the streaming to happen while the page loads, so that user doesn't have to wait longer ...more >>

Outofmemoryexception
Posted by brandonjack007 NO[at]SPAM gmail.com at 7/20/2007 11:24:53 AM
I am using Arraylist to populate a drop down I get outofmemoryexception at this line for (iYear = 0; iYear <= oYearsList.Count - 1; iYear++) { sHtml.Append("<option value='" + oYearsList.Add(iYear) + "'>" + oYearsList.Add(iYear) + "</option>"); } Wh...more >>

Changing the color of a border in an HTML table
Posted by Chris Davoli at 7/20/2007 11:04:00 AM
Environment: VS2005, sql server 2000, Win XP I put runat=server on a regular HTML table. Then instead of setting the style in the html I want to dynamically change the style of the html table border color. We'll it won't let you change the OUTER border color unless you use the styles attribut...more >>

Adding and populating a custom property for a user control
Posted by Mike Owen at 7/20/2007 10:48:04 AM
I have built and used a custom control which works fine. I now want to add a property that I can set from the various pages where I use the control. I have added the following property in the code behind file: Public Property ContentTypeID() As Int16 Get ...more >>

Custom Date Web Control
Posted by brandonjack007 NO[at]SPAM gmail.com at 7/19/2007 6:54:44 PM
I am looking for a date custom web control. The UI will have 3 drop down box. Each for day, month, year The control will have the following Properties Date (datetime) Month (int) Day (int) Year (int) MinDate(datetime) MaxDate(datetime) The control will have the following Methods Da...more >>

Drop Down List
Posted by វិចិត្រ Vichet at 7/19/2007 12:00:00 AM
Dear All; i want to display data in dropdown list with extend alignment as follow: ADB.............1 Project WB.............12 Project WFP.............5 Project but if i concatenate string it display as follow: ADB........1 Project WB..............12 Project WFP........5 Project...more >>

Dynamic Button Rollovers - Imagebuttons in WebControls
Posted by at 7/18/2007 11:31:02 AM
I just wanted to share a solution I found to performing a dynamic image swap on a group of imagebuttons in a webcontrol. The scenario is I have a webcontrol with nothing but a table containing one column of imagebuttons in it. This wil be a typical button column for a vertical menu like on the...more >>

fileUpload Browse view
Posted by James Page at 7/18/2007 6:46:02 AM
I'm using an asp.net 2.0 fileUpload control which works fine. What I'd like is that when a user clicks on the browse button the dialog shows thumbnails view instead of the default list view. Is there any way to acheive this? (vb.net if possible) Thanks James ...more >>

Repeater and Images
Posted by Brian at 7/18/2007 12:00:00 AM
I was previously using a GridView control and the first field displayed was an image. I accomplished this with the following code: <asp:ImageField DataImageUrlFormatString="~/PhotoDisplay.ashx?photoid={0}&amp;size=small" DataImageUrlField="property_key" AlternateText="Property photo....more >>

Can't figure out how change DropDownList bordercolor
Posted by Mike D at 7/17/2007 9:08:05 AM
I have tried for a couple of days to figure how to change the bordercolor of a DropDownList to match the background color of the page but to no avail. I have read and re-read the MSDN on it but I get either 'Could not load file or assembly' or 'Unknown server tag' depending on whether I use t...more >>

Trouble modifying text after copying items between listboxes
Posted by AlBruAn at 7/16/2007 12:14:01 PM
I have an application under development that contains, among other controls, two listboxes containing Available Tasks and Assigned Tasks. Let's say one of the Available Tasks is "Send Letter" and the user wishes to copy it over to the Assigned Tasks listbox; in that case, it's a simple matter...more >>

SetFocusOnError
Posted by Shooter at 7/16/2007 12:26:04 AM
Hi, I'm having problems getting validation controls to set the focus back to the textbox that caused the error (or any error). Using ASP.Net 2 and IE 6. Does anyone have a solution to help me out on this one? Heres some code: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebF...more >>

Whats the difference
Posted by Daniel at 7/12/2007 3:19:34 PM
Not sure if this is the group to post this question, but here it goes.... I just got a new laptop at work and they loaded the following 2 applications: Microsoft Visual Studio 2005 Microsoft Visual Studio .NET 2003 Arent they both the same thing, only 2005 is the latest? ...more >>

Web custom control
Posted by Arne Garvander at 7/11/2007 3:08:00 PM
In VS 2003 there was a template for building a web custom control. In VS 2005 there is no such template. Where are the instructions for building a web custom control in .Net 2.0? -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

controltovalidate property of customvalidator is incorrect
Posted by TS at 7/11/2007 9:50:40 AM
hello, i have an inherited Textbox control that adds a customvalidator to its controls. This works fine. I have another composite control (radio button list) that contains this textbox control. I have a public property on this control that is used to set the CustomValidator.ControlToValidate with...more >>

Printing from ASP.NET
Posted by Igor at 7/9/2007 2:22:47 PM
Can I print to POS printer (printer for billing reports, bus tickets etc.) from asp.net aplication? I need to print ticket, then patrial cut and full paper cut. Can I do this from asp.net page and how? ...more >>

Calendar Date Question..
Posted by Bill.Bohanon NO[at]SPAM gmail.com at 7/9/2007 10:06:28 AM
I have an equipment checkout app that I have that allows people to checkout a certain piece of equipment for a certain date and it works using a asp.net calendar control using vb.net and SQL as the backend. It works great, but now the request has come in that they want to be able to reserve a pi...more >>

Nested Repeater and XML Data
Posted by jmhmaine at 7/8/2007 3:40:00 PM
I'm trying to create a categorized list of checkboxes using nested repeaters with an XML datasource. I was able to get a list displaying, but I cannot figure out the correct XMLNode references in the nested repeaters to get all the values I need. I used Fritz Onion's article to get started at:...more >>

Responding to LinkButton within a Gridview
Posted by CJM at 7/6/2007 1:00:05 PM
[code snippets at the end] I have a page that allows the user to search a DB by querying one of 3 fields. When results are returned, I want the user to be able to click a value in one of three columns (that directly relate to the 3 searchable fields) and have the page postback and requery g...more >>

Using hyperlink to call page: Alternatives?
Posted by CJM at 7/4/2007 6:09:02 PM
Bit of a noob question... I'm finally starting to move across .ASP.NET from ASP 3.0, and I'm trying to make the most of .NET rather than simply do what I did before, albeit with different syntax. I'm converting a simple ASP application to .NET as a learning vehicle. I have an application th...more >>

TreeView autocollapse
Posted by Patrick at 7/3/2007 2:50:17 PM
Hello I have a treeview Control, which works very fine. No postbacks etc when opening or collapsing the nodes. What I want to do now is, if a node is clicked, all other open menus will be closed. So I wanted to do something without the postback. Does anyone have an idea how this can be achi...more >>

WebPart Personalization Blob Deserialize Error
Posted by Tom John at 7/3/2007 5:54:02 AM
Hi We're trying to maually deserialize the Personalization Blob for WebParts, seemed pretty straight forward, however we get the error "The serialized data is invalid." from the following code: <code> Using connection As New SqlConnection(My.Settings.Conn) connection....more >>


DevelopmentNow Blog