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 1 - 7, 2004

Filter by week: 1 2 3 4 5

problem of CompareValidator control ( for check date)
Posted by pc at 3/7/2004 11:09:13 PM
Dear all I would like use the CompareValidator control to check the date. I write the web form in development server, the date format is dd/mm/yyyyy of CompareValidator control. I copy the web form to production server. the result of date format is mm/dd/yyyy of CompareValidator control. I t...more >>


Help! Having trouble calling codebehind function from repeater results!
Posted by Kent P. Iler at 3/7/2004 11:04:54 PM
Hi, I have a data repeater that is returning a list of events. One of the things I want to do is give the user a way to edit or delete an event. My plan was to use an Imagebutton that would invoke a codebehind function that would either edit or delete the item. My problem is I need to pass ...more >>

Where are the controls?
Posted by Hans Östlund at 3/7/2004 12:27:23 PM
VB.Net If I, on a WebForm, place a lot of textboxes I still can't se them with "Me.Controls.Count" (in the Form Load event). Where are they? Isn't the Form the container for controls placed directly on on it? ...if I place the controls on a panel, I can see them with panel.Controls.Count ...more >>

asp:CheckBox has no Value attribute - Help !!!
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 3/7/2004 3:28:07 AM
I was extremely surprised to notice that the <asp:CheckBox> control does not appear to have a "Value" attribute like it's HTML equivalent does. There are many occasions when you would want the value associated with the checkbox to be different to the Text displayed. ie Value = ProductID ...more >>

Calendar: how to do this in VB? Thank You Very Much.
Posted by Miguel Dias Moura at 3/7/2004 2:43:32 AM
Hello, I created an ASP.net page which includes the following: 1. An ASP.net calendar control which I formated. 2. A dataSet which connects to an Access Database where I have the = Events. I found this tutorial in Macromedia web site but is in C and I have been = trying to create the...more >>

Get Filename of Current ASPX Page
Posted by chigger at 3/6/2004 9:57:26 PM
Hey all, Is there a way in vb.NET to get the filename of the current ASPX page? My hunch is using System.Reflection but not to sure. Dim myPageFileName as String (this would equaul let's say "default.aspx" but retrieved dynamically and not hardcoded.) Many thanks in advance!...more >>

Dynamic Textboxes Help w/ ASP.NET
Posted by microsoft.private.windows.netserver.setup at 3/6/2004 6:21:47 PM
Hello everyone hope all is well. I am currently trying to add 10 -20 texboxes at a time and would like these textboxes to run at server. I am able to add the text boxes and give them ID's. But when I try to access the textboxes with something like tbox1.Text I get object is not declared. I w...more >>

How to bind an xml string to TreeNodeSrc
Posted by donalconlon NO[at]SPAM hotmail.com at 3/6/2004 11:39:30 AM
I'm trying to do the following C#: m_treeView.TreeNodeSrc = list(); m_treeView.DataBind(); private string list() { string xmlList = "<TREENODES><TREENODE text=\"Teach Yourself Active Server Pages 3.0 in 21 Days\"/></TREENODES>"; return xmlList; } Won't work for me. How can i achiev...more >>



How to add icons to dropdown webconrol?
Posted by Mike at 3/5/2004 6:25:58 PM

implementing paging with a repeater control using VBScript
Posted by darrel at 3/5/2004 5:31:08 PM
Can anyone point me towards a tutorial on implementing paging using a repeater control written in VBScript? I've found several written in C#: http://www.mastercsharp.com/article.aspx?ArticleID=76&&TopicID=2 http://www.charon.co.uk/content.aspx?CategoryID=28&ArticleID=21 http://www.code1...more >>

Animated GIF handling
Posted by Shabam at 3/5/2004 3:45:05 PM
Does dot net support the resizing of animated GIFs? I've heard that it doesn't. Why is that, if it's true? ...more >>

DropDown Databound
Posted by Braden at 3/5/2004 3:11:08 PM
I am having some trouble working through the logic of binding a dropdown list to a database here is my code. Please note that this works fine if I use a dropdown list that I add the values to manually I have tried to capture the selected item in the button command, I have tried it with and without...more >>

Changing DataGrid Item BGCOLOR
Posted by JC at 3/5/2004 2:46:06 PM
Is there a way to change the background color of a specific item in a datagrid based on it's value? For example, assuming I have the following table layout genr son lengt If the genre is 'Rock' then I would like to give the row a different color than if the genre is 'Rap'. It seems like this...more >>

RE-POST: Repeater Control using Dynamic Controls
Posted by unsigned09 NO[at]SPAM yahoo.com at 3/5/2004 2:16:00 PM
I am trying to build a simple user control made up of a single Repeater control and a bunch of dynamically created data entry controls. The problem that is occurring however is that I am unable to get the data back out of these controls on a postback so that I can update my original dataset. I...more >>

Checkboxes with Repeaters and DataGrids
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 3/5/2004 2:13:52 PM
I am having trouble getting checkboxes to work within Repeaters and DataGrids I have tried to access the value of each checkbox within a repeater which has been ticked as follows :- string sValues ="values"; foreach (RepeaterItem ri in rptrPublications.Items){ CheckBox cbx = (CheckBox)ri....more >>

Web Control for OLAP
Posted by AndreaB at 3/5/2004 12:41:06 PM
Hi, I like to know if exists some free control server-side for use in asp.net, to connect and navigate a MS Olap cube (Analysis Services Thanks ...more >>

Why code behind in a user control is an abstract class?
Posted by José at 3/5/2004 11:16:05 AM
for example in Portal Starter Kit there is an Announcements user control and the "controller?" class begins wit Public MustInherit Class Announcement Why MustInherit What does Inherits mean At Control and Page directive <%@ Control language="vb" Inherits="ASPNET.StarterKit.Portal.Announc...more >>

URGENT - Repeater Control using Dynamic Controls
Posted by unsigned09 NO[at]SPAM yahoo.com at 3/5/2004 10:42:52 AM
I am trying to build a simple user control made up of a single Repeater control and a bunch of dynamically created data entry controls. The problem that is occurring however is that I am unable to get the data back out of these controls on a postback so that I can update my original dataset. I...more >>

Using DateTime Picker
Posted by ruca at 3/5/2004 10:18:24 AM
How can I define a DatePicker control with events in ASPX? When I drag and drop a DateTime Picker control into my page and then try to use it in code, it gives an error saying that my control is not defined. Can you help me? -- Thank's (if you try to help me) Hope this help you (if...more >>

print control
Posted by thomas at 3/5/2004 9:26:50 AM
Hello All, Im having problems finding a solution for a way to print my asp.net page. I have a very large html table (e.g. 2000 px wide and 3000 px high) and i would like to print it ala excel where the user can set print areas and/or se horizontal and vertical page breaks. So far i have look...more >>

Problem to add Microsoft.Web.UI.WebControls
Posted by David at 3/5/2004 9:06:08 AM
When I try to add UI web control to Visual .Net. Error message shows The object with ID 11 implements the IObjectReference interface for which all dependencies cannot be resolved. The most likely is two instances of IObjectReference that have a mutual dependency on each other I am using framework...more >>

JavaScript file
Posted by ruca at 3/4/2004 6:28:25 PM
I have a JS file, where I have show_clock function to call. I calling her like this<body onload="show_clock()">, but nothing happens. The clock don't appear. In your opinion what should I do? Use "RegisterClientScriptBlock" and/or "RegisterStartupScript".? If yes, how can I use them? -- ...more >>

Dropdownlist Problem
Posted by Pascal at 3/4/2004 5:46:30 PM
Hi, I have several dropdowns in my aspx-page and read the values after I press a save-button. from these dropdowns which are filled from database via databind() I always get the value which was selected at page load. changes are not recognized. the dropdowns which are filled = staticly in t...more >>

Using MapPoint Service problem
Posted by Dave Brown at 3/4/2004 5:44:31 PM
Hi all, I am wanting to use the mappoint service from a usercontrol on a webpage, in development this works fine but when my control is deployed and it tries to call the mappoint service I get a security exception, Anyone any thoughts/experience with this ? thx Dave ...more >>

ViewState Data Repeater
Posted by Craig at 3/4/2004 5:42:17 PM
Hi I am binding to a Repeater web control with an array. The data is displayed in a LinkButton so that I can access the 'clicked' item through the repeaters ItemCommand event. Even though I have set the ViewState = true in the control designer, it doesn't appear to be worling, I was expect...more >>

DateTime Picker
Posted by ruca at 3/4/2004 5:32:05 PM
How can I use DateTime Picker control in my ASPX page? I already add the component to my project. I put one control in my page and give him an id and name. But when I try to use it in the code, gives an error saying that the variable dtpMyDate (it's the id that I choose) is not declared. ...more >>

How to use JavaScript?
Posted by ruca at 3/4/2004 4:40:34 PM
How can I use JavaScript with my ASPX page wicth is using VB programming? I have a javascript clock that want ot use in my page, but don't -- Thank's (if you try to help me) Hope this help you (if I try to help you) rucawork. ...more >>

Code in ASP to export to Excel - works & doesn't work??? Help!
Posted by me NO[at]SPAM privacy.net at 3/4/2004 3:03:46 PM
The following code: Private Sub ClearControls(ByVal ctrl As Control) Dim i As Int32 For i = ctrl.Controls.Count - 1 To 0 Step -1 ClearControls(ctrl.Controls(i)) Next If ctrl.GetType().ToString() <> "TableCell" Then If Not ctrl.GetType().GetProperty("SelectedItem") Is Nothing The...more >>

best way to query on dropdownlist with another
Posted by DC Gringo at 3/4/2004 2:08:04 PM
I have two dropdownlists where one is a set of districts and the other sub-districts. Upon choosing a district in the first dropdownlist, I need the relevant subdistricts to show in the second one. Please help with code sample help with the following: -----MY DROPDOWNLISTS------ <asp:dropd...more >>

Resize datagrid rows
Posted by ruca at 3/4/2004 1:02:07 PM
There is anyway to resize dinamically datagrid rows? I have a datagrid with 5 rows for each page. What happens is if in the 3rd page there is only one row to show, that row stays to large in comparation with rows of before pages. How can I set the row space always the same, no matter if there ...more >>

Dynamically changing server control defaults
Posted by Scott C. at 3/4/2004 11:21:08 AM
We are building a web application that allow's the users to change the defaults of a their pages. Here is a list of what I've done so far 1.) Return the control names, control properties and default values back from a database 2.) I load each record into an objec 3.) I then load all of these obj...more >>

Changing a control to another type - can it be done??
Posted by Bob H at 3/4/2004 10:45:37 AM
Hi, I've a LinkButton in a Repeater. I'd like to 'change' this to a label depending upon the value in the item (which I've got through the ItemCreated event). Can this been done at all (I'm working in vb)? something like ItemCreated event - get eventarg - if data from eventarg = 'A' then ...more >>

View data in DataGrid
Posted by ruca at 3/4/2004 10:12:55 AM
I have this code to read a text file (.txt) and fill a dataset and then filter, using DataView, by user. The final result I want to put into a datagrig, but this last part is not happen and I don't know why. the code is below ------------------------------------------------------------...more >>

Web Dialog
Posted by Catalin Porancea at 3/4/2004 9:59:23 AM
Hello, How do I create a dialog box in ASP .Net? (I think it's called webdialog but I'm not sure). Thank you Catalin ...more >>

Bring to front a table on a static image
Posted by Varun at 3/4/2004 3:56:09 AM
I have got a static image on a web page. I am adding a table programatically But my table is being displayed behind the image why so? I want to have the table on that image How can i do that Thank yo Varun...more >>

DataGrid
Posted by Varun at 3/4/2004 2:36:06 AM
Question 1 How can I achieve functionality of these type in web datagrid I am using web datagrid and want to achieve these concepts Like i want to have new controls in the columns of the datagrid. I want to drag and drop items from one datagrid to another Question 2 On web page i have got...more >>

load table with data from xml file
Posted by faamugol NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/4/2004 12:38:02 AM
Hi, I have data in the following xml file mydata.xml <DATA <RECORD datevalue="01.01.2003 10:00" mwh="0,001" /> <RECORD datevalue="01.01.2003 10:05" mwh="0,002" /> <RECORD datevalue="01.01.2003 10:10" mwh="0,001" /> <RECORD datevalue="01.01.2003 10:15" mwh="0,003" /> <RECORD dateval...more >>

How to create a label which only displays a certain amount of characters?
Posted by Daniel Walzenbach at 3/3/2004 8:33:52 PM
Hi, does anybody know how to create a custom control which inherits from System.Web.UI.WebControls.Label with the ability to display only a certain amount of characters? I thought about overriding the Text property of a System.Web.UI.WebControls.Label but it does not work like I want it to...more >>

Export to Excel code
Posted by me NO[at]SPAM privacy.net at 3/3/2004 4:50:27 PM
I have a web page with a populated datagrid on it, that has sort functions on several of the columns. I have a routine that runs immediately before the code below that clears the controls. The code below is then supposed to execute: Dim tw As New System.IO.StringWriter() Dim hw As New ...more >>

tabstrip does not render properly on a windows 2003 server
Posted by Paul Hermans at 3/3/2004 4:31:26 PM
Hi all, I've encountered a problem when opening an aspx page with a tabstrip webcontrol on a windows2003 server. When opening the page on the server or opening the page from another pc the control doesn't render properly. All multipages are displayed beneath each other and the tabstrip se...more >>

MSChart in .NET environmnet
Posted by arc at 3/3/2004 3:08:36 PM
My web application is using MSChart for reporting. (until i port it to some decent reporting tool) How to make sure all the web clients (IE atleast) have MSChart on their system to view these charts? Windows 2000, XP dont seem to have them by default unless Visual Studio is installed in the s...more >>

Filter Data
Posted by ruca at 3/3/2004 3:04:38 PM
Hi gurus, How can I filter data in my DataSet and then put the result in a DataGrid? NOTE: I'm reading a txt file into a dataset with 3 columns: Id, Name, Age I have this: code------------------------------------------------------------------------ ----------------------- ...more >>

dropdownlist initial value
Posted by DC Gringo at 3/3/2004 11:37:31 AM
I have a dropdownlist that is bound to a recordset. The default selected item has turned out to be the first record in my table. I need a row that has value = 0 and text showing "--ALL". How can I do this? <asp:dropdownlist id="Provinces" runat="server" Font-Size="8pt" Width="100px"></asp...more >>

Error Creating TXT File
Posted by ruca at 3/3/2004 11:07:55 AM
Private Sub find_file(ByVal strFile) Dim Path As String Dim NewFile As StreamWriter strFile = "Extern\" & strFile Path = Server.MapPath(strFile) If Not File.Exists(Path ) Then NewFile = File.CreateText(Path ) NewFile .Close() ...more >>

Link Button in User Control causes JavaScript error
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 3/3/2004 10:15:06 AM
Could anyone please explain why it causes a JavaScript error when I simply add an <asp:LinkButton> to a User Control and then reference and tag that user control within a webform ? I am using Visual Studio .Net 2003 an C# I have found postings from other programmers experiencing the same pr...more >>

listbox
Posted by susie at 3/3/2004 7:06:12 AM
I have an web page with four listboxes created in asp.net. Each listbox has more than 100 items. Each time I select one item added to another list, the listbox that I choose items from refreshed to the top. I have to scroll down the list again each time I chose an item. How to leave the listbo...more >>

web control properties with child poperties in designer...
Posted by Klaus Salchner at 3/3/2004 12:36:00 AM
I have two issues with properties of a web control (like a class) which have sub-properties. I want to be able to show these sub-properties on the property designer so that the user can change the property values through the designer: (a) I create my won class like Address which has a Text and...more >>

Dropdown list and client side javascript
Posted by La Rocca Network S.A. / Nelson at 3/2/2004 7:42:30 PM
Hi folks ! I need to change the page located in a frame, base on user selection in a DDL. something like: <script language="javascript"> function doSelect() { alert('You choose: ' + <here goes the text of the new selected item>); window.top.frames["appframe"].location = <her...more >>

how to capture which Tree node is clicked and its ID in client side javascript
Posted by BaluSmiles at 3/2/2004 5:13:06 PM
Hi All, How to capture which Tree Node is clicked and its ID in client Side Javascript code for onclick event. Thanks balu ...more >>

Design Forms!!!
Posted by ruca at 3/2/2004 4:43:49 PM
Hi I'm designing a Webs Forms in VS .NET and when I put any control it adds on form various tables, witch makes a lot of confusion on my code. How can I disable this thing and design as well as I want. I know that tables are very useful to design (I use them too for that), but I think that th...more >>

passing custom variables TO a user control
Posted by darrel at 3/2/2004 3:26:56 PM
I'm doing some .NET work using usercontrols. I have a usercontrol that I'd like to be able to place on a page and set some variables to it. Ie, change the number of columns shown, or the type of data pulled. I'm reading a bit about doing this here: http://radio.weblogs.com/0101986/stories...more >>

Dim context As HttpContext = HttpContext.Current
Posted by Tony at 3/2/2004 2:12:05 PM
Hi there, I reference namespace and imports System.Web on my spcifice class and then I declared: Dim context As HttpContext = HttpContext.Current I always got httpcontext is not defined. Any suggestion would be appreciated. Sandra ...more >>

Frames in WebForms?
Posted by ruca at 3/2/2004 12:55:34 PM
Hi gurus, Can I have Frames in WebForms? How can I use them? -- Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ...more >>

Dynamic controls using Parsecontrol methos
Posted by Bhagwati at 3/2/2004 12:52:20 PM
Hello everybody, I am using xml and xslt to generate dynamic asp server controls on the page. What I do is I store the control type and their attributes in the database. And then using xml, i retrieve those controls and then using xslt transform method , i get a stream o...more >>

Web Custom Control Render Problem
Posted by b.b NO[at]SPAM ntlworld.com at 3/2/2004 1:38:42 AM
I have created a web page involving tables and graphics (no code behind) and added a PlaceHolder to a one of the cells. This page is now my ‘template' and I create various different ‘User Controls' and add them to the PlaceHolder at different times to create various different pages but with the...more >>

Attribute not adding correctly on check boxes
Posted by Steve at 3/2/2004 12:51:50 AM
I create a checkbox at run time. public CheckBox makeCheckBox() { CheckBox cbC =3D new CheckBox(); cbC.Checked =3D true; cbC.ID =3D "chkBoxAlpha; cbC.Text =3D "Check this"; cbC.CssClass =3D "CheckBox"; cbC.Attributes["onchange"]=3D "dirty()"; return cbC; } I set the A...more >>

insert a chart on a page using data from my database
Posted by faamugol NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/2/2004 12:29:10 AM
Hello I work in ASP with SQL server.I'd like to insert a chart on a pag which I like to use data from my database (via a system DSN). Question: how do I get that chart to link to a data source? here is the code I use, but I dont get any error <!-- #includ file="conf/sqlserver.asp" -- < ...more >>

Want coluns in DataGrid, non datatable/set source
Posted by phillip thrombone at 3/1/2004 9:41:08 PM
Hi I was recently working on a project and was forced to change my datasource from a dataset/table to a list based object such as arraylist. What I like to find out is: -what does data grid look for in a datasource/table that allows it to import column informatio -what (interface/class) should ...more >>

[ Custom Controls ] Insertar tags dentro de <HEAD>
Posted by Oscar Onorato at 3/1/2004 6:10:58 PM
Hola amigos: Tienen idea de c=F3mo se hace para insertar un <LINK...> = y un <script...> dentro del <HEAD> desde un "Custom Control". En = realidad el control opera sobre el Body y crea una tabla desde = DataTable, pero no se como hacer para que me inserte esas l=EDneas = cuando...more >>

OnItemCommand in DataGrid
Posted by vijay at 3/1/2004 4:46:06 PM
Hi all I am using a datagrid in my aspx page. and i have some coulums which contains push buttons. i want to handle click events on these buttons. OnItemCommand is only working for link buttons. please help regards vijay....more >>

ListItem.AddAttributes has no affect?
Posted by PV at 3/1/2004 3:13:37 PM
I am trying to add some attributes to a DropDownList's list items. For Example dropdownList1.Items[0].Attributes.Add("myExpandoProperty", "myExpandoValue"); I would expect then the rendered html to look like: <select name="dropdownList1" id="dropdownList1"> <option value="test" myExp...more >>

Body background
Posted by ruca at 3/1/2004 2:12:27 PM
How can I set body background with an image, but centered and not tiled? When I put background="image1", it fills my page with the image many times. I only want to put at the beggining and centered. I don't won't to use <img src="image1"> because I have a choice menu that I want over the image...more >>

Setting HtmlTableCell attributes from code behind
Posted by Praveen Naregal at 3/1/2004 12:55:29 PM
Hello all, I am trying to set the "a href" attribute of HtmlTableCell in ASP.NET from VS.NET. The attribute is not getting set and hyperlink is not getting displayed. Can anybody point out the error? A piece of code demonstrating setting this property would be helpful. System.Web.UI.HtmlC...more >>

HOW TO: Create a single DataSet bound object used by 50 DropDownList box controls in the same web form. CSHARP
Posted by Bill at 3/1/2004 7:12:09 AM
I have a seating chart web form that has over 50 entry field controls (tables/booths) where I use a DropDownList box to select a single company name from a single large list of organizations (200 plus conference attendees). All web form datavalues will be one of the same 200 organizations in t...more >>

Dynamically create web controls from a string value
Posted by geoff NO[at]SPAM basicframe.com at 3/1/2004 5:42:08 AM
Anyone know how to create a asp.net WebControl from a string value? I'm pulling string values (eg. System.Web.UI.WebControls.TextBox) from an XML file and would like to dynamically create a TextBox, then add to Page. I've tried creating with Activator.CreateInstance, but always returns an "Sp...more >>

javascript error on dropdownlist autoPostBack
Posted by Markus at 3/1/2004 1:58:41 AM
hi, all of a sudden I have this javascript error when I use the OnSelectedIndexChanged plus AutoPostBack for a dropdownlist. I don't know what to do anymore? thanks for any answers! markus...more >>

Background color for one cell in datagrid
Posted by Sebbe at 3/1/2004 1:06:06 AM
Hi everybody A simple question How can i set the background color for a specific cell in a datagrid I'm using a dataset to fill up the web control Thankx ...more >>


DevelopmentNow Blog