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
all groups > asp.net webcontrols > may 2005

Filter by week: 1 2 3 4 5

how to capture click event in aspx from placeholder ->control
Posted by Terry Minvielle via DotNetMonster.com at 5/31/2005 12:00:00 AM
I read with great attention the msdn article on "an Extensive Examination of User Controls". However, it did not help me solve the following problem: I need to populate a place holder with one a several controls which contain a submit button. When the parent aspx page loads, I need to load a ...more >>


How do I create an Unordered List (UL) with ASP.NET?
Posted by Nathan Sokalski at 5/30/2005 5:45:32 PM
I want to add a bulleted list to my document in ASP.NET. I know the HTML code, and I have used the HtmlGenericControl, but is there an ASP.NET object that can generate UL and LI tags from a set of ListItem objects, or maybe some other collection? Thanks. -- Nathan Sokalski njsokalski@hotma...more >>

DROPDOWNLIST SELECTEDINDEXCHANGED
Posted by Jose Fernandez at 5/30/2005 2:22:06 PM
Hola Estoy haciendo un usercontrol que tiene un dropdownlist (id=3DMes) y no = me ejecuta el evento Mes_SelectedIndexChanged(object sender, EventArgs = e)... AutoEventWireUp es TRUE y tambien el autopostback... alguien sabe que puede estar pasando? aqui van los codigos... <%@ Control ...more >>

order of usercontrols processed by events of page
Posted by Gokhan Akca at 5/30/2005 2:17:12 AM
I have a page containing multiple user controls. When Page_OnPreRender is called, the user controls' OnPreRender Method is called, too. But: How is the order of the usercontrols processed by asp.net? Note that I have multiple user controls - not just one. Assumption: the framework is access...more >>

ASP.NET Server Controls not displayed in IE
Posted by Udayan at 5/30/2005 1:14:04 AM
Hi, Am new to the .NET framework. I started a new ASP.NET Web Application project and designed the Web Form Using the Web Forms Server Control. When I try to run the pplication in debug mode the following error is diplayed: ERROR WHILE TRYING TO RUN THE PROJECT:UNABLE TO START DEBUGGING ON ...more >>

How to diisable textbox in datagrid
Posted by latha at 5/29/2005 10:45:14 PM
Hi I have a listbox outside the grid and textbox type template as editable column in datagrid. How can I disable textbox in my grid based on the selection from the listbox outside the grid? -- ...more >>

HTMLInputFile Control for Multiple Files
Posted by Corey Erkes at 5/27/2005 3:02:50 PM
I am using ASP.Net with C# as the code behind and am trying to upload multiple files with the HTMLInputFile Control. I am able to browse, select a file, and finally upload, but only one file at a time. Is there a way to select multiple files to upload at one time using this control, or possibly...more >>

Infragistics Web Control
Posted by developer at 5/27/2005 9:28:00 AM
Hi, I am trying to use the infragistics web control. To be more specific the tree control. My experience is that the documentation available is poor but any how. If any body has worked with this control please help me out. I am trying to dynamically populate the tree from a database and the...more >>



Submit form
Posted by Tlink at 5/27/2005 12:00:00 AM
New to asp.net so this has probably been asked a few times, but I have a number of server-buttons that the user can press to update the page with, the problem is that all is well till I have to reload the page. Can I force a page_load after a button has been pressed, if so an example would be ...more >>

ascx event to parent aspx: howto ?
Posted by Support at 5/26/2005 4:07:54 PM
Hello: Using vb.net I have a web page home.aspx that has a placeholder: myplaceholder. on Page_load: depending a conditions, I either have: myplaceholder .Controls.add(MycontrolA) or myplaceholder .Controls.add(MycontrolB) MyControlA contains a submit button and MyControlB contains a subm...more >>

ASP.NET absolute path to file
Posted by Jovo Mirkovic at 5/26/2005 10:44:12 AM
Hi, I want to play a MIDI file in browser, but I must give a full path to WMP control... In that case everyone can simple type full path in browser and save my midi file... I do not like it... I wont thet they can listen miti, but that is not possible save it... How I can do taht in ASP....more >>

DropDownList in composite control not saving ListItems
Posted by Steve Trandahl at 5/26/2005 10:27:01 AM
I have a composite control consisting of a DropdownList control and a button. I've included an Items property that returns a reference to the DropDownList's Items property, but when I add ListItems to it in Design mode, they aren't added as <asp:ListItem> in the HTML tab. Instead "Items=(Col...more >>

howto: bubble-up events
Posted by Support at 5/26/2005 9:04:26 AM
Hello: using Vb.net .. I have an asp.net web page: home.aspx, with a placeholder that loads Inspections.ascx UserCategories.aspx has a button MySubmit that submits information: what I want is some code that I would place in home.aspx that would detect that MySubmit was clicked and get the na...more >>

Microsoft.Web.UI.WebControls
Posted by subh chat via .NET 247 at 5/26/2005 4:13:00 AM
Hi I am using Microsoft.Web.UI.WebControls to display a TOC in a tree format. My problem is whenever I am expanding or colapsing the tree it is making one server trip. Is there any way to stop that? I need to open a html on clicking the leaf of the tree. Thanks in advance, ----------------...more >>

Problems with HTMLInputFile Control
Posted by Nayak at 5/26/2005 12:00:00 AM
On my web page, I want to let the user be able to browse for a file and select it. For this i have used HTMLInputFile Control. But here I want to restrict the type of the files the user can select. The user should be presented the File open dialog box to pick his file. How to do that ???? F...more >>

Accessing multiple instances of a control on a form
Posted by Vivek Sharma at 5/26/2005 12:00:00 AM
Hi, I have a form with multiple instances of a dropdownlist user control. How can I access the selected value of each in my aspx.cs? Thanks Vivek ...more >>

two grids with validators
Posted by latha at 5/25/2005 9:56:02 PM
Hi I have two datagrids (master - detail) in one page and I have required field validators for both the grids template columns. My problem is if click on the add buton in the footer of details grid, it is also firing required field validation in the master grid which is not valid. How can pre...more >>

Type.GetType("System.Web.UI....)
Posted by TR at 5/25/2005 6:40:58 PM
Is it possible to use Type.GetType(...) with the types in the System.Web.UI.? My attempts always resolve to Nothing. Is this legal, or is the Web.UI assembly of the kind Type.GetType doesn't work with? Type.GetType("System.Web.UI.WebControls.TextBox", False, True) Thanks TR ...more >>

FindControl by type?
Posted by TR at 5/25/2005 2:14:36 PM
I have an asp:Panel that contains a variety of controls, including checkboxes and HtmlGenericControls. I can find the panel in codebehind using FindControl(id), but then I want to either: a) iterate all of the controls in the panel's Controls collection and, if the control is a checkbox ..., o...more >>

Web server controls not shown on a web form
Posted by abcd at 5/25/2005 1:58:14 PM
I have a working ASP.NET web page which uses some DSNs and a COM components...the project works great on my machine...I have given the project to another developer when he opens the project and run the web page the Web server controls are not displayed....neither, I can run the project in de...more >>

DATASET DATAGRID ITEMINDEX DATASETINDEX
Posted by Jose Fernandez at 5/25/2005 11:53:06 AM
Hola Tengo un nuevo problema. Tengo un datagrid (dg) que lo "filleo" con un Datatable(Tables[1]) de un Dataset (Ds). dg.DataSource=Ds.Tables[1]; El datagrid tiene activado los eventos Delete, Update, Edit. Eso va bien. Ahora. esta es la situacion. Ese dataset tiene 3 records. Cuand...more >>

Help developing a RegularexpressionValidator for a numeric field
Posted by amazononthemoon at 5/25/2005 11:17:08 AM
Help, I am wanting to use a RegularExpressionValidator on a webform to only allow a numeric value with 2 decimal points. I want to make it flexible so the user can enter commas and numbers. ie 1,000.00 or $1000.00 or 1000.00 or $1,000.00. The user should also be able to enter 10,000.00 or 1...more >>

VB.NET Compact Framework
Posted by Nilesh Patel via .NET 247 at 5/25/2005 5:12:57 AM
(Type your message here) Hello Every one ! I have an problem during the fill Dataadapter with DataSet & table name when it's running that time it's gving SqlCeServer.dll Error. and i writen the code like this Private Const pi_ConnPath As String = "\My Documents\JMS.sdf" Priv...more >>

How can I get selected Checklistbox Items to Literal in Placeholde
Posted by Christiaan Nieuwlaat at 5/25/2005 3:00:02 AM
Hi, I'm in need of a solution for the following problem: I've got an ASP.NET page which contains a placeholder. The placeholder will contain a dynamically added checklistbox control where the request["mode"] == "edit", and it should contain literal controls for each selected item of the c...more >>

ASP.NET Tree View Control
Posted by Shiva at 5/25/2005 12:00:00 AM
Dear All, Can anybody tell me is there any Tree Control for ASP.NET for using in Version (1.1) if so can you kindly send me the link to my mail id comshiva@hotmail.com Thanks and Regards, Shiva ...more >>

OpenFileDialog in ASP.NET
Posted by Nayak at 5/25/2005 12:00:00 AM
On my web page, I want to let the user be able to browse for a file and select it. The file should be either on his client. I will in my ASP parse the content of the file. The user should be presented the File open dialog box to pick his file. I am using ASP.Net with C# as the code behind ...more >>

Which is better User Control or Frame?
Posted by Chi at 5/25/2005 12:00:00 AM
I want to have same page header Frame or User Control is much better? And what is the different between then? Thx...more >>

Acces controls on aspx page from usercontrols
Posted by fabrice at 5/25/2005 12:00:00 AM
Hello, I'm trying to access a Label Control on my .aspx page from a User Control. But I don't manage it. Do somebody help me to do that ? My aspx is mypage.aspx a control label in it : <asp:Label id="myLabel" runat="server"></asp:Label> In ascx : How to fix the Text property of...more >>

Datagrid Listbox please help
Posted by latha at 5/24/2005 6:51:01 PM
Hi I have two listboxes in the datagrid. Based on the value selected in the first listbox, I need to filter the second listbox. I have used onselectedindexchanged for the firtst and able to retrieve the value of the first list box. For Second listbox, I have HTML page with datasource="<...more >>

asp.net custom server control not showing when dragged onto web fo
Posted by SpencerW at 5/24/2005 12:34:03 PM
I've created a custom composite calendar server control in asp.net. I've compiled the dll and added it to my toolbox, but when I drag and drop it onto a web form, I don't see the control in the designer. All I can see is a tiny little green arrow. It shows up in the property explorer for th...more >>

Checkbox within a datalist
Posted by UJ at 5/24/2005 12:00:00 AM
I have a datalist with a checkbox in it to tell whether something is selected or not. Once somebody changes the checked value and I call the OnCheckedChanged routine, there doesn't seem to be enough information to figure out which row the record belongs to. I've look at the sender object in ...more >>

assigning multiple keys to datkeys of datagrid
Posted by TS at 5/23/2005 11:32:48 AM
Is it possible to have more than one field assigned to a datagrid's datakeyfield in the case of a concatenated primary key for a table? thanks ...more >>

Problem with FindControl
Posted by lisa NO[at]SPAM starways.net at 5/23/2005 8:09:03 AM
I've been trying to build a tab control, as an alternative to the MS IE TabStrip and MultiPage. It works great. Except for anything that's actually put onto one of the tabs. Controls on the tabs render fine, but their postback events and postback data changes just don't happen. I've been ...more >>

Please...Expert needed.
Posted by Tim Farrell via DotNetMonster.com at 5/23/2005 12:00:00 AM
I have a webform that uses a linkbutton control for the purposes of obtaining a detailed view of the record. <asp:LinkButton Runat="server" ID="detail" CommandName="get_detail" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ItemID")%>'> <%# DataBinder.Eval(Container.DataItem, "Cust_...more >>

Validation not working in paging
Posted by Vivek Sharma at 5/23/2005 12:00:00 AM
Hi, I have an issue of the validation not working. I have a web user control where the validation sits. I have the user ontrol within the web ie control "paging". It works fine on my local machine but does not work when the webpage is hosted on webserver 2003. Thanks ...more >>

Calendar Control
Posted by AllanD at 5/23/2005 12:00:00 AM
Hello everyone, I seem to be having a problem with getting the Calendar control that comes with Visual Studio to trap for the OnSelectionChanged event. When I click on a date in the calendar a postback is made and control goes back to the first page of my application. It never reaches the code f...more >>

fill dropdown list thru dataset
Posted by K R Lal at 5/23/2005 12:00:00 AM
Hi, Any idea how to fill a dropdownlist thru dataset I done like this ddLst1.DataSource = myDataSet ddLst1.DataMember = myDataSet.Tables(0).Columns(1).Caption ddLst1.DataValueField = myDataSet.Tables(0).Columns(0).Caption but it is not working ; my dropdown list showing blanck pleas...more >>

anyone who has used the FreeTextBox ?
Posted by Kylin at 5/23/2005 12:00:00 AM
I want to save the FreeTextBox.Text into Sql Server database , and how do I set the field attribute? I think it may be ntext ? but how to save the FreeTextBox.Text into the field ? any help? the best,please give me a document ? thanks ! -- FireCrow Studio Kylin Garden ICQ:156134382 ...more >>

Handling Events for Dynamically Created Controls
Posted by Nathan Sokalski at 5/22/2005 9:07:59 PM
I have several Button controls that I created dynamically that I need to handle the Click events for. How do I specify the event handler for dynamically created controls? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ ...more >>

File uploaded to server....How can I delete it?
Posted by daiski at 5/22/2005 5:34:10 AM
Hi, I have uploaded an image to the web server using the code below. Note that 'FileUpload' is the name of my HTML input control. if (FileUpload.PostedFile != null) { String virtualPath = "~/uploads/" + Path.GetFileName (FileUpload.PostedFile.FileName); String phyiscalPath = Server....more >>

Click checkbox's label - javascript onclick gets called twice
Posted by dotnw NO[at]SPAM hotmail.com at 5/22/2005 2:29:07 AM
This is intriguing - I've copied over my old fully working ASP.NET project from a Win 2000 Pro box to an XP Pro box. Everything seems to work fine, except I've noticed one difference. I have a server side checkbox with a javascript onclick event attribute attached to it. When you click the che...more >>

The nowrap Property of TD Tags
Posted by Nathan Sokalski at 5/20/2005 11:49:11 PM
I want to create TD tags with the nowrap property. I have a user control which sets the Wrap property of a TableCell to False when dynamically creating a table as follows: cellCurrButton.Wrap = False When the code is run, this creates a TD tag that looks like the following: <td nowrap="...more >>

Text control - password
Posted by abcd at 5/20/2005 5:10:11 PM
I am gettting strange behavior for text control of type password.... I have a password text corol followed by a dropdownlist (whose AutoPostback is true) when I type my password then go to next cotrol whch fires autoPostback then my passord contol is cleared...my entered password is cleare...more >>

DHTML and Web server controls
Posted by abcd at 5/20/2005 3:15:49 PM
What is tehe best method to use DHTMl with Web forms and web server controls... thanks ...more >>

Positioning Panel on WebForm at runtime
Posted by Andrew Rayner via .NET 247 at 5/20/2005 2:00:02 PM
hi all, What I am attempting to do is at run time create a panel add a= link button to it, and then I am trying to place it at a= specific position on the webform=2E I am trying to do this to= create a tree of panels on the form, but to do this I need to be= able to set the position at r...more >>

Referencing Datagrid Rows while Datagrid is Sorted
Posted by MrMike at 5/20/2005 1:44:10 PM
I see this question raised often elsewhere, but I haven't yet found an answer. When a datagrid is sorted, referencing a specific row is a problem. In my applications I frequently use datagrids and I must tell my users "If you are going to edit/update/delete a record from a datagrid, make sur...more >>

error messages and focus
Posted by abcd at 5/20/2005 1:12:44 PM
I am using web server controls...when the error occurs I want to display it as an alert and after clicking ok to that alret dialog I want to set the focus to the incorrect value (text control in mycase) How can I do this using web server control code... thanks ...more >>

TextBox.Text not getting the proper value
Posted by daiski at 5/20/2005 9:36:59 AM
Hi. I have a form that is used to edit a row from SQL. The form textboxes are filled at page_load so that the user can see the data. User can make changes in the textboxes then click a button that uses SQL connection and UPDATE statement to save in DB. The problem is that textbox.text (in...more >>

AutoPostBack
Posted by abcd at 5/20/2005 8:49:24 AM
I am using Web Server controls on my page. I want to dispalay error message prompts and other dynamically font and color changes depending upon the user selection. I have set AutoPostBack = true for all controls like text, radio, dropDoenlist. So when ever the control is touched it fires an Au...more >>

Calendar Language
Posted by huseyin_akturk at 5/20/2005 4:44:33 AM
Hi, My OS is Win Xp Pro English. I am using a calendar in a web form. want to see the month names in Turkish not in English. I changed th language as Turkish from regional options. But there is an interestin event, while I am programming, the calendar's month names are i Turkish, when I run t...more >>


DevelopmentNow Blog