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 > december 2004 > threads for december 1 - 7, 2004

Filter by week: 1 2 3 4 5

Data Grid Question - Add a ButtonColumn Dynamically
Posted by John McCarthy at 12/7/2004 11:04:44 PM
Please note: ======================== I have posted this message on two other boards. On one board I have not had a response. On the other board the response was a link that did not address my question. ======================== Question: I would like to add a ButtonColumn to a datagri...more >>

How to access DropDownList info and values that aren't known until runtime?
Posted by kenfine NO[at]SPAM u.washington.edu at 12/7/2004 7:31:39 PM
Hi all, Longtime ASP developer getting feet wet with ASP.NET, has banged head on this problem for many hours, go easy. :) The Code Project has a nice article on making a "self configuring form mailer web control." Basically, you apply this control to any form with ASP.NET textbox server con...more >>

replacement for ActiveX in .NET
Posted by Praveen Pandey at 12/7/2004 4:53:15 PM
i have a web based application that uses a lot of OCXs. i am planning on rebuilding my application. how do i replace my OCXs. is Smart client an answer to my question. ...more >>

FindControl
Posted by aratienza at 12/7/2004 1:59:07 PM
We have a repeater inside a datagrid inside a repeater. How can we access the datagrid from the inner repeater? We've tried something like this in the inner repeater's itemdatabound: DataGrid dg1 = (DataGrid)parentRepeater.FindControl("DataGridControl") The code doesn't work. Any ...more >>

Finding data binding information on web control
Posted by Jerry at 12/7/2004 1:14:13 PM
I'm able to get the data binding information on Windows controls via System.Windows.Forms.Binding bind = myControl.DataBindings["Value"]; I can then look at the bind class to get the datasource, table, column information. How do I do the same thing for a web control? TIA Jerry ...more >>

Multiple Datagrids
Posted by Z3Stealth at 12/7/2004 12:53:04 PM
I am trying to create an app that will be able to grab data from many different databases, and combine that data into one page. I do not know at design time how many servers I will need to connect to, that information is collected at runtime by reading a configuration file. What I want to do...more >>

WebControl with non-WebControl property
Posted by Peter Morris [Air Software Ltd] at 12/7/2004 12:20:29 PM
Hi all I wrote a WebControl and placed it onto an asp.net page. This webcontrol has a reference to a System.Component also on the same form. When I set a reference to the component and run the app I get an exception.... I see that if I place a datagrid on the page and set the datasou...more >>

IValidator - multiple error messages
Posted by Peter Morris [Air Software Ltd] at 12/7/2004 12:17:19 PM
Hi all I want a validator which A) Doesn't validate a control B) Is able to report more than one error The reason for this is that I am validating a whole business object based on a list of expressions, rather than individual controls. Is it possible to do this? Could someone please te...more >>



gridview problems in VS Beta1
Posted by mspiezio at 12/7/2004 9:27:09 AM
I'm trying to update or delete records using a gridview, but every time I try (either on my own or copy from an example) , I get the error: System.Data.SqlClient.SqlException: Must declare the scalar variable '@uid'. my datasource commands are: gridViewDataSource.SelectCommand = "SELECT [uid...more >>

Panel height problem
Posted by Vince at 12/7/2004 8:13:30 AM
I've inherited a developer's first ASP.Net site, and he used all grid layouts and absolute positioning. In most pages he has used multiple panels with controls in them, all located in the same position, one on top of the other. Then he hides and shows each one as needed. But this makes it a...more >>

Dropdownlist is not covered by my menu even if its z-index is higher
Posted by Ashish at 12/6/2004 9:29:34 PM
Hi Everyone I have a menu which is generated using xml and xslt. When I click on one of the menu items it displays its submenu. Since the menu has higher z-index it covers any other content on webpage except dropdownlist. I have seen a posting on internet saying that the d...more >>

Copying data from one server control ListBox to another using client-side scripts
Posted by junglesnake NO[at]SPAM gmail.com at 12/6/2004 9:01:12 PM
I have two ListBox server controls on a webform. ListBox1 is bound to a dataset in the Page_Load method and displays a list of All Departments. The user can click on an 'Add' button to add departments from ListBox1 to an adjacent ListBox2 that displays 'Selected Departments'. ListBox2 is also bo...more >>

Embedding images
Posted by shehan at 12/6/2004 8:11:26 PM
Hi, I'm creating an online application that should be able to send out emails in HTML format. The problem I'm facing is the inability to embed images into the mail. I would very much appreciate if you could provide me with a solution. I don't mind using any free component that does the above...more >>

I need to run a vb.net or aspx.net file every 10 seconds.
Posted by Steve Jacobs at 12/6/2004 6:49:29 PM
Hi, I need to run a vb.net or aspx.net file every 10 seconds. The Task Scheduler in Windows 2003 Server can only do it every 1 minute at the minimum, but I need it every 10 seconds. Is it possible to write a small program in VB.NET that would run in the background without using much resources,...more >>

Problem with HTML Input File
Posted by Robin at 12/6/2004 6:20:04 PM
On an ASP.Net web page that has a HTML Input file control run on the server side, is there any setting that limits the size of the file that can be uploaded? Is there any validation code that runs when the value of this type of control is selected? ...more >>

Newbie: Loop through WebControls on a form - C#
Posted by Calvin KD at 12/6/2004 5:29:04 PM
I've got a user control with a series of WebControl Buttons, rendered as tabs (for WebForms). I'd like to loop through these buttons / tabs to set their properties. I've used the foreach (Control objTab in this.Controls) construct but it gave me an error "The type or namespace name 'Control' c...more >>

Another dynamic usercontrol issue
Posted by Bryan at 12/6/2004 5:02:26 PM
Hello All, I have a page that dynamically adds one of many usercontrols to a placeholder on the main page based on a parameter passed to the page. Here is my problem. The usercontrol may have something as simple as a label or a datagrid and I get the same error. The control renders in ...more >>

Composite Control Problem - ListBox
Posted by Mike Dando at 12/6/2004 4:24:05 PM
Hi, I have created a composite control which has some drop down lists, buttons and a list box. The button clicks add items from the drop down lists to the list box, but the list box only ever shows with 1 (the latest) value. From what I have read, a ListBox does not store viewstate with rega...more >>

Week number in calendar?
Posted by Lasse Edsvik at 12/6/2004 3:12:23 PM
Hello I was wondering if you guys know if its possbile to get the week number in the calendar? /Lasse ...more >>

HTML in custom control lost when property changed in design view
Posted by Christopher Strolia-Davis at 12/6/2004 8:31:06 AM
I've searched in vain to find the answer to this question, so hopefully someone can help me. I am creating a web custom control that will have other nested content. I have set parseChildren attribute to false, so I can embed the content in my finished output. When the control has been pla...more >>

making UserControl catch all its exceptions
Posted by Ael at 12/5/2004 11:19:03 PM
Is there any way to make a UserControl catch all its exceptions? (I have a webiste built on one page with placeholders that load controls, so even if one of the controls throws an exception I still would like to be able to continue load other controls). It can be done of the System.Web.UI.Pa...more >>

Sharing UserControls between different sites
Posted by Anders K. Jacobsen [DK] at 12/5/2004 11:09:31 PM
Hi I have some common UserControls i want to share between to sites (on the same mashine but on diffrent virtual paths). right now i have on solution file with aprox 10 projects. 2 of these is webprojetcs wich need to shere some common userControls. Optimally i want a class libarary proj...more >>

Drop Down list question
Posted by Rudy at 12/5/2004 9:09:01 PM
Hello all, I made a drop down list, and bound it to a column, I then have a data grid that is bound to a table. I would like to select from the ddl and whatever is selected, that should show up in the data grid below. Here is my code. Thanks for all the help! Rudy Private Sub Page_...more >>

Populating web Controls inmedded in a User Control
Posted by PeteZ at 12/5/2004 6:39:17 PM
Hi, I have a web page that extensively uses user controls. In my Page_Load method in my code behind for the web page I want to populate some of these controls in the User Controls How do I address these controls ? They dont seem to be visible as a "normal" control would be ie. there is...more >>

DropDownList
Posted by Marwa Bahaa at 12/5/2004 2:22:46 PM
Hi All, I have an ASPX Page, and I want to create "Dropdown list" in the run time and then upload its content to a database Could any one help me on how to do this? ...more >>

using calender control in a table?
Posted by emaayan NO[at]SPAM hotmail.com at 12/5/2004 10:01:19 AM
hi all... i'm trying to use a calender control inside a table, since i don't want to display the entire calender at once, i downloaded a control from: http://www.codeproject.com/aspnet/DateTimePicker.asp which use a text and a button to display it. problem is if i try to use inside a tabl...more >>

Wiring events from UserControls
Posted by news.iq.ca at 12/4/2004 12:06:52 AM
Hello, I have created a UserControl (actually, a From/To control, containing two list boxes and four buttons: MoveLeft, MoveAllLeft, MoveRight, MoveAllRight). It works fine, but now I need to raise the following two events so that in the container I can, depending on whether the "TO" list i...more >>

Looking for a tree input control (not navigation!)
Posted by Matt Weaver at 12/3/2004 3:59:19 PM
I'm looking for a input control for a tree type data, specifically to select a department within an organization. When it's collapsed, the control would just show the selected node/department. When selected, has focus, etc, it would show the tree structure. Has any heard of such a beast? -M...more >>

TreeView with columns?
Posted by Piotr Karwatka at 12/3/2004 1:24:51 PM
Hi! I'm doiing a Project Management software. And i'have a little problem. I want to display tasks - tasks are sometimes dependent of other tasks and i want to display something like this: - task1 - start time; end-time; -user -task2 - start time; end time; user -task3 ...more >>

ValidationExpression
Posted by metridevkk at 12/3/2004 1:09:03 PM
Hi, I have attached a RegularExpressionValidator Control to a textbox to accept numeric values in the format: ###*#####*## I have entered the following regex in the ValidationExpression: [0-9]{3}\*[0-9]{5}\*[0-9]{2} or [0-9]{3}[\*][0-9]{5}[\*][0-9]{2} but validator fails to validat...more >>

ASP.NET - VB.NET - JavaScript Question
Posted by amfigon NO[at]SPAM hotmail.com at 12/3/2004 12:30:09 PM
I'm stuck on trying to get the following to work: I am using VB.NET to program ASP.NET...my task is to create two pages, Main and Child. In Main, I have linked a javascript function to a button in order to popup a second window (Child) where a user can enter information, hit the button, and t...more >>

CheckBox onChange Event
Posted by news.microsoft.com at 12/3/2004 10:44:04 AM
OnChange even of a CheckBox should respond to both check and uncheck events. However, it seems it only respond to check event. Any thoughts? BTW, I am using it in a datagrid, would that change the behavior of the checkbox? Thanks! ...more >>

ASP.Net Treeview in VS.Net 2003
Posted by Shailendra Batham at 12/3/2004 10:11:32 AM
Hey guys I am using the IE Web controls treeview control. I popuplate the treeview with XML and it looks fine........... my question is how can I add a right click popup menu to the treeview control so it shows when a user right clicks a node in the tree. Does any1 have any tips and trick...more >>

Textbox vs Label
Posted by MikeY at 12/3/2004 9:25:08 AM
I found that both textbox and label renders diferently for the same string that I have. The string looks like this: "<something>" Textbox renders is as it is but label sees it as a malform html tag. I have use HTML.Decode method. Below is a sample code: sample code: string message1...more >>

A big problem in dropdownlist web control
Posted by Pedro Airo at 12/3/2004 8:25:12 AM
I had done the following code: private void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack){ DropDownList1.Items.Add("Item1"); DropDownList1.Items.Add("Item2"); } } and private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e) ...more >>

Page_Load in UserControl
Posted by news.iq.ca at 12/3/2004 3:35:17 AM
Hello, I am *VERY* confused - I understand that the Page_Load event of a user control is completely independent of the Page_Load event of the container page. I just started with User Controls and now I was trying my hand at creating a "navigation" control. Assuming that I name a sequence...more >>

Masked Edit Control
Posted by metridevkk at 12/2/2004 9:29:07 PM
Hi, I need to use a Masked Edit Control in my ASPX page. In VS.Net, I added the reference to MSMask.dll for my application & also added the MaskEdBox to the Toolbox. After adding the control to the web form, when I select the control & see its properties, I do not see the "Text" property. I a...more >>

Events for tables on web pages ?
Posted by Steven at 12/2/2004 6:15:45 PM
I have 2 tables on my webpage. On onmouseover" event of any row of first table ,i am calling one function to change color of the row. For that i am passing the row No and table name. On click event of the button "<Add rows>" i am adding one row in "tabl1". The statement written for this is like ...more >>

forcing datagrid columns to wrap
Posted by mark_roberts NO[at]SPAM stercomm.com at 12/2/2004 4:56:22 PM
I have a datagrid with several columns - one of which has a large amount of text to display. I have set the width to be 500px and have set wrap="true". For most of the data this is working fine. The problem is when the data doesn't contain any white space - like a long, fully-qualified filena...more >>

Composite Control Problem
Posted by Mike Dando at 12/2/2004 3:24:08 PM
Hi, I have created a composite control which has some drop down lists, buttons and a list box. The control renders itself dynamically via CreateChildControls() according to a property set by the web form - page load. This is fine the first time the control is rendered. When any of the but...more >>

DropDownList viewstate does not work
Posted by SevDer at 12/2/2004 3:13:04 PM
Hi, I have 1 parent user control and 4 child user controls inside that. the last user control has problems with viewstate. I have 4 dropdowns in this user control where I bind them from code behind as follows: private void Page_Load(object sender, System.EventArgs e) { if (!IsPost...more >>

Label text
Posted by Jon at 12/2/2004 3:01:11 PM
I hope I'm not just overlooking this property...but, I can't seem to find an attribute to right-align the text of a label. Is there one? Thanks I'm doing the following: LABEL1 Field1 LABEL2 Field2 and I want to be able to change the text of the labels and have them grow...more >>

iewebcontrols
Posted by gg at 12/2/2004 2:37:29 PM
Hi, I am trying to figure out why i can't get the multpage.aspx to do anything more than render plain text. The tabstrip.aspx, treeview.aspx and toolbar.aspx all work correctly. The multipage, and the treeview_bound are not working right. Any ideas? Thanks ...more >>

More problems With Controls
Posted by poolguard at 12/2/2004 9:03:02 AM
I have posted this problem a few times before and gotten responses about not enough information about the Problem so this time I will give a lot of info. I am having a problem with some Web User Controls in a new web app I am developing. Here is the situation: I have a Base Page (Fo...more >>

Proble with TreeView IE Web Controls / Database Bound
Posted by Mike at 12/2/2004 3:41:02 AM
I am trying to add a node under existing nodes, but making sure they don't exist before putting adding it. Here is my Code Public Sub BuildTree() .... above this, root nodes were added. For Each dr In drs Dim childnode As TreeNode = nTreeNode(dr("ROLE_DES...more >>

SmartNavigation and Determining If ValidationSummary Caught Any Errors
Posted by Dan Sikorsky at 12/1/2004 3:52:47 PM
I'm using SmartNavigation and need to automatically scroll to the top of the page when the ValidationSummary control catches errors and displays them, so that the user can see the errors without having to manually scroll to the top. How can I determine if the ValidationSummary will display err...more >>

Control ID
Posted by MLibby at 12/1/2004 1:59:02 PM
My custom control's ID is automatically generated at design time when dragging the control onto the webform, however it is not generated when the control is programmatically created in the code behind. Is there a way for a control to automatically generate a unique id if one has not been assi...more >>

calendar control language?
Posted by rom at 12/1/2004 1:24:01 PM
in visual studio.net when i watch/design the calendar control on the design view i see the days/months in my language(hebrew) but on the web is generates it into english. any way to solve this problem?...more >>

TableCell style problem PLEASE HELP
Posted by jay.mistry NO[at]SPAM gmail.com at 12/1/2004 10:55:32 AM
Hi, I'm trying to make a page that has a dynamic menu on the left. I generate this menu by getting the menu items from a database table that holds title, alt tag, link, sort order, etc... for a given menu ID. I had done a static version up until now and the number of pages have gotten huge an...more >>

UrlPropertyAttribute question
Posted by Brent Pranger at 12/1/2004 10:49:44 AM
I have developed a WebControl that has a "MyUrl" member property. I have added the UrlPropertyAttribute attribute to the specific MyUrl member. Now, when I edit the new element in the aspx page (Source view), the IDE (vs.net 2005 beta 1) intellisense will give me a "Pick Url..." option. How...more >>

controls in placeholder were lost after postback
Posted by Wen Ou at 12/1/2004 3:27:02 AM
hi i developed a user controls in a web application. the user controls will be created dynamically and put them into a placeholder. when i click a buttom, all controls with data are lost. i spent 3 days to find a solution. but... some articles said using viewstate can fix it. but i still d...more >>


DevelopmentNow Blog