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 > june 2007

Filter by week: 1 2 3 4 5

Accessing Masterpage Variable
Posted by Al at 6/29/2007 11:13:44 PM
Hi, I'm working on a site with master page with a few more pages that will show up in the content placeholder. The master page has a few variables as follows: public partial class Main : System.Web.UI.MasterPage { DataTable objDT; DataRow objDR; . . . ...more >>


Dropdown list value
Posted by JD at 6/29/2007 2:30:49 PM
I want to capture values from dropdown lists and pass values as parameters to stored procedure. I select a value in the dropdown list, when I click the Submit Button the value disappears in the dropdown list and no value is passed. I have tried using the ddl.selecteditem.value or text. I cont...more >>

Session Variables and Event Sequences
Posted by mmbbrwd at 6/28/2007 1:31:59 PM
I am just beginning to learn ASP.Net and am not connecting on something related to session variables. Without concern over whether or not session variables are appropriate here is my disconnect. I would like to be able to read the value of a session variable when the page loads as a result of ...more >>

Error rendering control
Posted by Chris at 6/27/2007 10:51:00 PM
I have created a custom composite control, which is a date picker. It works fine but in the design view I get am "Error creating control" 'caltext' could not be set on property 'btnCssClass' (caltext is the string I am assigning for the cssclass of a button on the control). I don't need it to...more >>

Streaming Media ASP.Net Website with VB.Net Code.
Posted by at 6/26/2007 5:59:01 AM
Hi, I am new to asp.net I am wanting to embed windows media player into my website and play media files using vb.net code. I was able to do this with the windows media player control using a normal windows application but this type of control isn't available as a web control I don't thin...more >>

Controlling items visibility in menu control
Posted by Vipper at 6/26/2007 2:55:02 AM
Hi, I'd like to control the item visibility of a menu control, but I cannot find the visibility property of the item. The idea is like this: if [...] mnuOptions.items(1).visible = false end if Is it possible? Thanks...more >>

createchildcontrols fires before click event
Posted by hsnkamal NO[at]SPAM yahoo.com at 6/25/2007 8:10:04 PM
i have developed a web part using class library.when i clicked a button it displayed a datagrid.after that i want to edit it.when i click a edit button it goes to the original position where i the last button.it means the grid is not visible.when i press a gain that button it is visible again?ca...more >>

Overlay panels?
Posted by newbie at 6/25/2007 5:06:41 PM
Is it possible to overlay panels? If so, how would you do it? ...more >>



Multiple Rows in Datagrid Column Headers
Posted by John Walker at 6/24/2007 6:01:04 PM
Hi, In my datagrid I'm trying to figure out how to have two rows in my column headers. Each column header in the first row will have two column headers below it. I'm including a little diagram here to try to better illustrate my issue... i hope the text stays lined up when i post this quest...more >>

Pager Error when using DataGrid.RenderControl inside custom control
Posted by Josiwe at 6/21/2007 10:29:15 PM
I have a feeling this is a simple error, but I can't for the life of me figure it out. I am writing a custom webcontrol which has an internal DataGrid. Everything works fine, except the pager links have no postback javascript attached. In other words, instead of seeing something like this: ...more >>

Repeating Datagrid
Posted by John Walker at 6/21/2007 12:26:01 PM
Hi, I have a datagrid on my web form which we would like to see repeated on the web form. The current datagrid has customer information (i.e. name, address, phone number, etc.) and we currently have this one datagrid for all customers, but now we would like to have one datagrid per customer,...more >>

Formview event not handled (???)
Posted by javelin at 6/21/2007 11:19:12 AM
Since I haven't had any success manually updating this formview, I thought I'd repost on another route I'm trying. To recap, I am manually binding to a datasource using the MySQL .NET connector, and I've been able to run action queries on this database when directly coding them. However, I now h...more >>

ObjectDataSource and FormView
Posted by Sasa at 6/21/2007 12:00:00 AM
FormView is connected to ObjectDataSource Table example id Name Forname when ObjectDataSource is set ConflictDetection = OverwriteChanges I have error ObjectDataSource could not find a non-generic method that have parameters: Name, Forname, Orginal_id,Orginal_Name, Orginal_Forname...more >>

Web UserControl inheritance
Posted by Ivan A. Vasilyev at 6/21/2007 12:00:00 AM
Hello. Could anyone please clarify one thing. Suppose I have to classes: 1. A inherits UserControl 2. B inherits A BOTH A AND B HAVE HTML MARKUP IN RELATED ASCX FILES. Then suppose I want to instantiate control B. I have three options: 1. Propgrammatically instatiate B through new B()...more >>

finding User.Identity in a control
Posted by Yankee Imperialist Dog at 6/20/2007 11:49:24 AM
What is the correct or best way to find and reference the User.Identity. I'm creating a control to handle login functions for a site. (need more flexability than the builting one) Thanks KES -- Share The Knowledge. I need all the help I can get and so do you!...more >>

call a javascript function within code behind
Posted by sajithkahawatta at 6/20/2007 5:14:28 AM
i want to call a java script function from code behind. in page1.aspx page i placed script' <script language="javascript"> function SetSelected() { infoTextBox.select(); } </script> i want to highlight text in infotextbox in some cases. so i want to call this function within code...more >>

Atlas question
Posted by Oriane at 6/18/2007 12:07:43 PM
Hi, I've written a Ajax enabled application with the Atlas .NET 1.0 extension and ASP.Net 2.0. I've put 2 UpdatePanels on a unique page with 1 timer on the second panel. This timer refresh a text label every 10 seconds. Meanwhile, when I click on the first panel to query and display som...more >>

Menu
Posted by Chris Davoli at 6/18/2007 11:58:00 AM
I am tring to get the menu control to do some things, but have had problems trying to do what I want to do. 1.) Why is there underlines under each menu item? How do I get rid of these? I've tried to use style sheets but they don't work. 2.) I want the sub menu items to have a link and when s...more >>

Custom Textbox and Web site VS Web application
Posted by Madison at 6/18/2007 11:50:24 AM
Hi All, I have created custom textbox in framework 2 and been using in asp.net framework 2 with Web Application Project mode everythinge works fine. Until I try to create new application by using Web Site Project mode, I add reference for custom textbox and add <controls> in web.config with ...more >>

Custom Control from GridView - OldValues/NewValues not showing
Posted by Ryan at 6/18/2007 11:06:05 AM
I am trying to create a custom control that would allow an administrator to update user email addresses and to lock/unlock accounts. The problem is that oldvalues and newvalues event arguments of the onupdate command are blank when the control is used, making it difficult to determine whether a...more >>

How to programatically set GridView selected row?
Posted by at 6/17/2007 9:01:06 AM
I've got a GridView control (GridView1) containing several fields (Field1, Field2, ...) from a SQL table If I set the selected row using: GridView1.SelectedIndex=1 Then how do I get the value of one of the fields in that row - say Field2? ...more >>

IIS 7.0 et Visual Studio 2005
Posted by Oriane at 6/15/2007 3:39:04 PM
Bonjour, lorsque je veux faire fonctionner une appli ASP.Net (par ex un Web services) développée sur XP , IIS me jette car il trouve le fichier web.config incorrect. Si je crée mon Web Service avec Visual Studio 2005 SP1 avec le patch pour Vista, sur Vista, et que je demande à créer mon ...more >>

How to customize the Label and set the property of AutoSize to False?
Posted by Ryou kaihou at 6/14/2007 12:00:00 AM
Hello All, As we known, in Visual Stdio 2003 or 2005, the property of Autosize is set to True by defaut, how can I customize this and set property of Autosize to False? Any ideas? Thanks ...more >>

Update of DetailsView with programatic DataBinding
Posted by kamlesh at 6/13/2007 5:07:04 PM
Hi Experts, I have a question on the ASP.NET 2.0 Details view control I dont like using the SQLDataSource to bind the data to the DetailsView control.. I dont like the idea of placing Queries in the .ASPX files...I prefer a 3 tiered approach to development. Am using a Custo...more >>

Edit Gridview using stored procesure
Posted by Madison at 6/13/2007 11:45:02 AM
Hi all, I'm try to write the code for gridview to delete, edit (only one or two columns), page, sort using stored procedure to get dataTable to bind data (avoid using SQLDataSource to bind data). All the samples I see always use SQLDataSource which in the real business is not the good ideas....more >>

how to build a an agenda type interface for a webform
Posted by ton at 6/11/2007 1:57:14 PM
Hi, I want to develop a webform where I can show tasks and appointments from my CRM app. I use VB.NET 2005 thanx ...more >>

Retrieve newly inserted record ID?
Posted by at 6/11/2007 1:46:29 PM
I'm using the Insert button in a DetailsView to insert a record into a SQL table. I've got part of what I need to recover the record ID... The INSERT COMMAND is: InsertCommand="INSERT INTO [inventory] ([Active], ...) VALUES (@Active...); select SCOPE_IDENTITY();" The Select Command is: ...more >>

TreeView is painfully slow.
Posted by Mufasa at 6/11/2007 11:13:58 AM
I have a TreeView with about 300 nodes in it. Each has about 1-2 children. It takes something like 30 seconds to load the treeview. The actual SQL behind is it very fast. It seems like it's the creating in the browser ( the actual adding of the nodes seems to be pretty quick. ) What can I d...more >>

Creating a control that does not render anything
Posted by daokfella at 6/11/2007 8:46:18 AM
I have a control that simply registers a script using Page.ClientScript. It doesn't render anything visually. How can I design this control so that when dragged to a page designer, it is not placed on the page, but in the gray area below the designer (similar to adding a dataset or dataadapter t...more >>

Programatically reference GridView field?
Posted by at 6/10/2007 7:15:43 AM
I've got a datafield column named RecID in a GridView named GridView2. What's the correct vb syntax to reference the data field value in the GridView2_SelectedIndexChanging sub? I'm trying to do something like: Protected Sub GridView2_SelectedIndexChanging(ByVal sender As Object, ByVal e...more >>

Icons for GridView Edit, Select, Update, Delete buttons?
Posted by at 6/10/2007 7:05:14 AM
Does anybody know of any (preferably free) good icon libraries to use for the GridView command buttons? ...more >>

Does the menu control output "span" tags under certain conditions
Posted by Simon at 6/9/2007 3:57:49 PM
Hi everyone I have a very simple question - are there any situation under which a menu control will render its layout using span tags as opposed to using tables? If so, can anyone advise me on when it might use spans? Sincerest thanks Simon...more >>

Concantenate in drop down box
Posted by JimS at 6/7/2007 4:54:35 PM
Hello I would like to have more than one field appear on each line in a drop down control. How do I accomplish this. Example LastName, FirstName, PhoneNumber. Each is a different field in the database. I would like to have them concantenated on one line in the drop down box. Thanks ...more >>

Question on Details View
Posted by kamlesh at 6/7/2007 11:23:48 AM
Hi All, I have a question on the ASP.NET 2.0 Details view control I dont like using the SQLDataSource to bind the data to the DetailsView control.. I dont like the idea of placing Queries in the .ASPX files...I prefer a 3 tiered approach to development. Am using a C...more >>

DropDownList AppendDataBoundItems problem
Posted by Kursat at 6/5/2007 2:49:31 PM
Hi, I built a master detail structure with two DropDownLists, one for Countries (master) and one for Cities (detail). I used SqlDataSource parameters to built the relation.Users select a country from Countries list and see cities of that country in the Cities list. I also add "All Cities" s...more >>

Can't Access to TextBox threw WebControl
Posted by Nimrod Rotner at 6/5/2007 12:38:45 AM
Hi All, I can't understand what is the problem. I am using web control wich has a text box ob it and a public property that set and get that TextBox text value. The compilation pass but when i try to get or set that property, i get: "Object Reference no set to an instance of an object." Here ...more >>

Adrotator control.. programming
Posted by Aussie Rules at 6/4/2007 8:28:37 PM
Hi, I have a adrotator control on a page, and want to program the connection of the control via SQL. I have the following code, but not sure what else to do? Dim SQLServerConnection As SqlConnection Dim SqlConnectionCls As New clsSQL SQLServerConnecti...more >>

How to save a TreeView ?
Posted by Polaris at 6/4/2007 2:52:59 PM
Hi Experts: I'm using ASP.NET 2.0. I'm using a TreeView control with a design-time configured XmlDataSource (an XML file). I use the TreeView control as a "message board" with each node representing a message. I noticed that the TreeView loads alright from the XML file but did not save ...more >>

Totals on GridView
Posted by Victor Rodriguez at 6/1/2007 2:01:30 PM
Is there a way to calculate and present totals on the footer of a gridview? Thanks, Victor ...more >>

GridView
Posted by Victor Rodriguez at 6/1/2007 10:36:56 AM
Is there a way to format data using {0:c} on columns that are autogenerated using coding? Thanks, Victor ...more >>


DevelopmentNow Blog