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 > march 2004 > threads for march 22 - 28, 2004

Filter by week: 1 2 3 4 5

Dynamic Controls in Code Behind
Posted by walterd at 3/28/2004 4:11:55 PM
Hi All I can successfully create dynamic controls, validated their data input and dynamically destroy them using inline code. The problem is when I apply the same technic using code-behind. The controls are created successfully, but I cannot loop through them to check their contents. Ex.: ...more >>


bug in HttpWebRequest?
Posted by z. f. at 3/28/2004 2:56:59 PM
using HttpWebRequest to make HTTP request t web server and get resulting HTML in the response, when the response includes hebrew characters (not unicode) these characters are moved away after StreamReader reader = new StreamReader ( response.GetResponseStream() ); strHTML = reader.ReadToEnd();...more >>

listbox.setselected
Posted by susie at 3/28/2004 9:06:08 AM
I have a line of code in button click for listbox control in asp.net as follow Listbox.SetSelected(1,true When I run it , it generates the following error BC30456: 'SetSelected' is not a member of 'System.Web.UI.WebControls.ListBox' What namespace should I import to my asp.net code? Thank ...more >>

textbox displays "&nbsp" from datagrid null reference
Posted by john at 3/28/2004 8:16:05 AM
Datagrid dg, Datasource: MS Access query containing memo field mymem. In the database, mymem is not required and zero length is allowed (not every record will have a memo). Datagrid column for memo field is NOT visible - only when user clicks on a specific row -- then I show a textbox and set text...more >>

Can not access properties of dynamically loaded control
Posted by Martin at 3/27/2004 6:26:26 PM
I am programmatically loading a control to a PlaceHolder control. However it seems impossible to access the properties of the control. I always get an error message that says the property I am looking for is not a member of PlaceHolder! Any help will be appreciated. ...more >>

DataGrid Binding Problem
Posted by Wayne Wengert at 3/27/2004 4:06:10 PM
I am trying to create an aspx page that displays a datagrid which contains the result of a query when the page loads. I am using WebMatrix. I tested the data adapter and it returns the correcct data but when I load the page, the datagrid is empty. Any suggestions appreciated. Wayne ========...more >>

CSS Doubts/Questions
Posted by Carlos Cruz at 3/27/2004 12:26:10 PM
Hi, How can I have 2 asp:hyperlink at the same aspx page but with diferent styles ? I've tryed this: A:visited { color: #febc11; text-decoration: underline; } A.Menu:visited { font-weight: bold; color: #febc11; text-decoration: underline; } .... but can I tell each control t...more >>

Stopping repeated transactions on ASP.NET button
Posted by arc at 3/26/2004 11:41:29 PM
I have a button that commits a transaction on click. Considering it takes about 4 secs for a transaction, it allows to be clicked several times (will not work if button is just disabled on commit) during this period and then collects all these clicks as several transactions with same data. How c...more >>



Displaying messages/errors to users. Opinions?
Posted by NewsMonkey at 3/26/2004 7:50:36 PM
Hi All, I have been working on a few ASP.NET applications recently that access database resources frequently. I have been trying to find a consistent way of displaying both the success and failure of various operations to the user. For example, if a new record is successfully added then I...more >>

Call popup window
Posted by ruca at 3/26/2004 3:06:36 PM
I have a .JS file that permits to open a popup window calling the fiunction CreateWnd(...) The question is How can I call the popup window by selecting an item in a datagrid? -- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ...more >>

how to save data from dynamic textboxes
Posted by jade at 3/26/2004 2:46:06 PM
On my form, based on the value user selects from a dropdown list, a group of textboxes will be generated dynamicly. Now the problem I'm having is how to save data entered into dynamic textboxes. I know because of the nature of dynamic controlls, input is gone before submit button is hit. Is there ...more >>

Adding script to page from web control
Posted by Dan at 3/26/2004 2:01:44 PM
Hi,=20 In my simple web control I am trying to add the following script onto = the page Protected Overrides Sub AddAttributesToRender(ByVal writer As = System.Web.UI.HtmlTextWriter) Page.RegisterClientScriptBlock("ccr", "<SCRIPT Language=3DVBScript>" & = vbCrLf & _ "function test(inp)" ...more >>

Using JavaScript and Response.Redirect
Posted by ruca at 3/26/2004 11:22:58 AM
I have a .JS file that opens a popup window. Here is the question... I have a DataGrid with a select command that in this case, when I choose "Select", I want to open my popup window. The question is if I can do something like this in the function that is the target of select command of d...more >>

commas in text fields to save as a numeric value
Posted by Dan at 3/26/2004 10:57:03 AM
I have a financial application. When I populate text boxes with financial numbers I don't group the = digits via a comma. =20 For example. I'll use 500000 instead of 500,000. Obviously the latter is easier to read by our accounting guys. The problem is when saving 500,000. It will save...more >>

Textbox background color Yellow??
Posted by luc.ouimet NO[at]SPAM gov.yk.ca at 3/26/2004 9:14:42 AM
When a textbox ID or label.text match a known field name, for example id="email", it changes the textbox background color to yellow. Is there a way to disable this feature as it doesn't match my page colors. Thanks...more >>

Composite Control Namespace problem
Posted by Dima Maltsev at 3/25/2004 8:21:08 PM
Hello I am developing a composite control and I ran into the namespace problem. It boils down to the following simple example Create a Test ASP.NET application with a Test1.aspx page. Drop an ASP.NET Label control on this page. Change the namespace of the project and of the Test1 class to the "La...more >>

how to create web controls ????
Posted by Gabriel Arteaga at 3/25/2004 6:27:56 PM
Somebody can indicate some article to me where explains like making WebControls of user? thank you ...more >>

Unable to display custom control in the toolbox of Visual Studio IDE
Posted by Edward at 3/25/2004 3:26:06 PM
Hello I'm learning to develop custom server controls and right now I'm at the stage of creating custom controls with Design-Time attributes. Currently, when I compile the 2 .cs files into a library, I can't get the Visual Studio IDE to import the control into the toolbox. It gives me the error: "T...more >>

Aligning Text in a Label Control (asp.net)
Posted by fripper at 3/25/2004 1:04:08 PM
Oh, VB 6.0 was so simple ... but how in VB .Net do I set the alignment of the text in a label control (in an asp.net app) so that it is centered vertically and horizontally? I know that this is a question for .Net 101 students but I have not been able to find an answer by looking at .Net's Help...more >>

How do I set the first month displayed with the Calendar control
Posted by Colin Colin at 3/25/2004 12:40:14 PM
I am working with the ASP.NET Calendar control (below is my code). How in the world do I set it so the default month is not the current month, but set it to a variable? Below is Calendar.aspx: <%@ Page Language="vb" %> <script runat="server"> Private Sub Calendar1_SelectionChanged(s...more >>

ASP.NET Webcontrols Treeview and checkboxes
Posted by rowan NO[at]SPAM blaqflame.net at 3/25/2004 10:31:29 AM
I'm using the MS Treeview Webcontrol to present a treeview of a hierarchial parts structure. My client wanted to select certain parts and then do something with only those, so I turned on checkboxes. Since I'm adding data using the .Add method I can say which nodes have checkboxes and which do...more >>

User Controls
Posted by wolrabs at 3/25/2004 7:31:54 AM
Hi I am using Visual Studio and VB.Net and have a small problem I wish t surmount. I have a page which loads a user control (UCA). UCA consists of Datalist with buttons. When a button on UCA is pressed, another User control (UCB) is loade into a placeholder on the page. UCB is two dr...more >>

Refresh Dropdownlist
Posted by Andy Sutorius at 3/24/2004 10:01:50 PM
How would you go about refreshing a data bound drop down list upon page load? Thanks! Andy Sutorius ...more >>

set dropdownlist to blank item
Posted by mongphong28 NO[at]SPAM yahoo.com.au at 3/24/2004 8:24:37 PM
Hi, Is it possible to set a dropdownlist control to blank? For example in VB6 you can do it with a combobox by setting it's listindex = -1. Or do I have to add a blank item first before I add the rest? Thanks, Mong...more >>

How to set Z-INDEX of a control?
Posted by Kevin Yu at 3/24/2004 4:38:32 PM
hi all I coded a dropdown calender custom control with c# in asp.net. the basic code block is this: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CalendarControl1.ascx.cs" Inherits="DropdownCalender.CalendarControl1" TargetSchema="http://schemas.microsoft.com/intellisen...more >>

Re: Accessing User Controls from the code-behind
Posted by SL at 3/24/2004 3:52:54 PM
Has anyone done this in C# (see link below)? As I'm have problems converting it. Cheers, Siôn Artical found @: http://www.123aspx.com/redir.aspx?res=30051 When you add a user control to an ASP.NET page, Visual Studio .NET does not add a control declaration as it does when you add standard...more >>

Treeview Control
Posted by Hai Nguyen at 3/24/2004 3:16:17 PM
Hello everyone I need a treeview control for my application. I don't know if any cool and free :-) treeview control that I can use out there Thanks ...more >>

HELP: Session is empty!
Posted by mrwoopey NO[at]SPAM yahoo.com at 3/24/2004 2:37:14 PM
Hi, I have a ASP.NET application with two frames (both are ASPX pages). Once my app starts running, Session_Start fires in global.asax, like it should. When I press a button within the top frame, it displays a chart (OWC) in the bottom frame. I am storing info in session variables in the to...more >>

Accessing User Controls from the code-behind
Posted by SL at 3/24/2004 1:05:12 PM
Has anyone done this in C# (see link below)? As I'm have problems converting it. Cheers, Siôn Artical found @: http://www.123aspx.com/redir.aspx?res=30051 When you add a user control to an ASP.NET page, Visual Studio .NET does not add a control declaration as it does when you add standard A...more >>

repeater binding to data with dynamic column names
Posted by Lew Burrus at 3/24/2004 10:27:21 AM
Hello, I am in fact hoping to bind a repeater control to a dataset in which the column names are not known until run time. A datagrid is designed for this (autogenerate columns) but the repeater, in every example I've seen, requires the column name: databinder.eval(container.dataitem...more >>

Executing external process from ASP.NET Web application
Posted by arc at 3/24/2004 8:49:11 AM
I have tried working on this based on the article (http://support.microsoft.com/?kbid=306158) as proposed by Martin, still doesnt seem to like it. 1. Have used <identity impersonate="true" /> 2. Did this - Change the account that the Aspnet_wp.exe process runs under to the System account in t...more >>

Creating ASP.NET dynamically while assigning id dynamically
Posted by tle NO[at]SPAM linhwood.com at 3/24/2004 7:30:45 AM
Hello all, I am having a problem creating ASP.NET dynamically while assigning the ID dynamically. Here is the code: Dim TR() As Object Dim TC() As Object Dim TC1() As Object Dim txtTextBox() As Object Dim i As Integer = 0 Dim iStart As Integer = 0 Dim iEnd ...more >>

Tab Control on a .ASPX page???????
Posted by Bryan G at 3/24/2004 7:18:05 AM
How todo a Tab menu on a web form using C#? Bryan G ...more >>

TreeView using codebehind form
Posted by M4YOH at 3/24/2004 5:51:08 AM
Hi Has anyone managed to get the AdvancedWebControls Treeview working using a codebehind form The control works fine using the example aspx page but when I create a codebehind form the treeview no longer renders on screen (even with the code still in the aspx page). To get it to work again takes...more >>

Strange behavior
Posted by atefshehata NO[at]SPAM hotmail.com at 3/24/2004 2:08:06 AM
hi all, i have a strange problem ! on a webform i have a textbox named TXTTariffApllyDate and a button named BTNOptionalInstructions . on page load the textbox filled with its value , and the button is disabled by default . the problem is , when i post the form for any reason , the tex...more >>

When to call EnsureChildControls?
Posted by Ed Swartz at 3/23/2004 10:54:58 PM
Looking at several web control samples I noticed there appears to be a difference in opinion on when to call EnsureChildControls in property methods. My guess is: * When a property method stores or retrieves values in ViewState EnsureChildControls does NOT need to be called: public Text...more >>

this.Controls.Add(Object)
Posted by Bill Jones at 3/23/2004 3:21:09 PM
How can add a WebControl to "this" page, within the form tags? I have a button, that has an eventhandler for click. The function that handles the click adds a control to "this.Controls". However, when I view the source after the page is done loading, the new WebControl is added after the </ht...more >>

Images in webcontrol
Posted by RJDev at 3/23/2004 11:42:51 AM
Hello, I have made an webcontrol with images stored in an database. I have several subfolders importing the webcontrol. Now the images are = not loaded wel because of the place of the webcontrol. Can i chnage the tag below in the code behind place. '<td id=3D"Cel3" class=3D"Welcom" style=3D"B...more >>

Load an ascx in code error
Posted by carlos.cruz NO[at]SPAM algeco.pt at 3/23/2004 4:11:22 AM
Hi, I've an aspx page named MyPage.aspx with a table with 1 row and 3 cols: <TABLE style="Z-INDEX: 101; LEFT: 0px; WIDTH: 100%; POSITION: absolute; TOP: 0px" cellSpacing="0" cols="3" cellPadding="3" width="938" align="left" border="0"> <TR> <TD id="esquerd...more >>

Customizing Datalist dynamically
Posted by Sal at 3/23/2004 12:46:59 AM
Hello everyone, I have a datalist on a webpage, which I like to customize it based on different data sources. How can I achieve this through code? Can anybody help me with this or point me towards an URL ? Thanks, Sal ...more >>

any page template experts?
Posted by suzy at 3/22/2004 5:49:22 PM
hello, i want to implement page templates in asp.net and was reading through the following article: http://www.devx.com/dotnet/Article/18011 are there any experts out there that can give any pros/cons to this approach? the reason i ask is because the article says other methods of implementi...more >>

A Web Proxy
Posted by Jay Douglas at 3/22/2004 3:22:54 PM
Greetings, I have what I feel is a daunting task ahead of me ... I've been asked to create a web proxy of sorts for an internal web application. I need to develop an ASP .net page that captures both GET and POST commands from the user, pass the commands from the user to a remote site, then...more >>

Executing command line from ASP.NET
Posted by arc at 3/22/2004 3:14:29 PM
I have a requirement in executing a command line from Web Application, it does this in the background and doesnt display the results to the user. But i dont think the Web environment in .NET allows this to happen without some security tweaks. How can i do this? Same code with Process.Start works ...more >>

NavigateURL can't find Javascript problem
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 3/22/2004 12:43:29 PM
I have a treeview control: If I do: myTreeNode.NavigateURL = "javascript:alert('hi');" it works when I click it. But, if I do: myTreeNode.NavigateURL = "javascript:test();" <---gives object expected and below in the html form: <script lanuage="javascript"> function test(){ ...more >>

Type CollectionEditor is not defined (missing from Intellisense too!)
Posted by shaggy13spe NO[at]SPAM hotmail.com at 3/22/2004 7:55:42 AM
Hello, I am completely vexed. I've been trying to build a web control based on a sample in the MSPress book Developing ASP.Net Server Controls and Components. In their example they have a class defined as inheriting from the CollectionEditor class. However, when I try to code this in VS.NET...more >>

<asp:ListItem Value="name"><% this.strName %></asp:ListItem>
Posted by Tom at 3/22/2004 5:46:11 AM
Hi I declared a string strName and strAge which get data from DB. I want to show them in a CheckBoxList's ListItem. How can I do it <asp:CheckBoxList ID="username" CssClass="form" Runat="server" RepeatColumns="2" RepeatDirection="Horizontal"><asp:ListItem Value="name"><% this.strName %></asp:Lis...more >>

ListBox in ASP.NET
Posted by Luxmee Hulugundi at 3/22/2004 3:51:27 AM
Hi All, I am working on a simple Web Form and have 2 List Boxes and I am trying to move selected items from List Box1 to List Box2, when you click on a move button. I am posting the code that I am using: private void btnSelect_Click(object sender, System.EventArgs e) { for (int j=0; j <...more >>


DevelopmentNow Blog