all groups > asp.net webcontrols > january 2006 > threads for january 15 - 21, 2006
Filter by week: 1 2 3 4 5
Extracting values from child controls of a Repeater
Posted by Mark Jones at 1/21/2006 8:46:07 PM
I am building a multiple choice exam application and trying to extract
values from child controls contained inside a Repeater. I am using a
custom control (QuestionLabel) to display the question text and question
ID and a RadioButtonList for the answers with a DataValueField property
as the ... more >>
Read underlying data in GridView row?
Posted by bernadou at 1/21/2006 11:11:02 AM
I have a simple ASP.NET 2.0 GridView that is bound to a simple query. I’m
getting the data and the GridView is binding and displaying great. I’m stuck
on something that would seem simple, but it is giving me fits.
My query looks like this:
Select [first],[Last],[Gender] FROM [tblNames]... more >>
Can't Create a multi page report
Posted by ME at 1/21/2006 8:40:05 AM
I need to know how to create a MULTI page report. All I can seem to create
is a report with only one page, even though the datasource it is bound to
returns multiple records. I have posted an example of my source code here:
http://mreprogramming.com/currentrelease/WindowsApplication25.zip
... more >>
Customise the SiteMapPath Control or use wild card URLs with a custom SiteMapProvider
Posted by Alexander Walker at 1/21/2006 3:03:00 AM
Hello
I am using a custom site map provider to create a site map populated from a
database.
I am using the SiteMapPath control to display "bread crumbs" on the pages of my
site.
The database is divided into categories, each category contains items, there are
thousands of categories a... more >>
Itemtemplace and many to one dropdown example wanted
Posted by TdarTdar at 1/20/2006 5:37:04 PM
Where can i find an expample of a item template that does the following
example of detailsview
name: Jack
City: 2342
State: 1
I want to change the city field I assume using Itemtemplate, and have
it link to a city table(another table) as a dropdown to display the city
name. ... more >>
I need to convert the COM controls????
Posted by NATE at 1/20/2006 3:18:35 PM
I need a web control to browse a cube...
I don't know how to use the OWC controls (COM controls in general),
when I drag a COM control to my page I can't see all the properties and
if I drag another COM control, for example a button I see the same
properties...
Do I need to convert the COM cont... more >>
Error: Multiple controls with the same ID '1' were found.
Posted by vibs at 1/20/2006 1:19:01 PM
I am getting the following error when dynamically adding
RequiredFieldvalidator control to a Table.
Multiple controls with the same ID '1' were found. FindControl requires that
controls have unique IDs
I get this error only on validator control and not on labels or textbox, so
if I was to... more >>
SelectedValue which is invalid
Posted by Bart at 1/20/2006 10:22:03 AM
What is the best way to handle null values in dropdownlists?
Why is the dropdownlist generating the error
"System.ArgumentOutOfRangeException: 'DropDownList1' has a SelectedValue
which is invalid because it does not exist in the list of items." on null
values?
Should it not be possible to ha... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Design Time referencing of Properties
Posted by Venkat at 1/20/2006 8:39:02 AM
Hi
I am writing a webcontrol, that has two properties, both are strings. Based
on the value of the first property, I want set the default values of the
second property. I am trying to set the default values of the second property
using typeconverter that inherits stringconverter and overrid... more >>
GridView Data Binding at runtime
Posted by MoonWa at 1/20/2006 5:40:03 AM
I have added a GRidView to my page but have not bound the data yet. How do I
bind my GridView to a SqlDataSource when a user clicks a button. Here is the
code I have but it does not work.
SqlDataSource editDS = new SqlDataSource();
editDS.ID = "editDS";
... more >>
Caching - simple question!
Posted by Andrew Clancy at 1/20/2006 12:19:26 AM
Okay my question last night wasnt answered - here's a simpler one:
I have a form user control, I want to cache the first page (with clientside
validation) but turn caching off whenever anyone submits the form. I dont
want cached version of user pages, they're only submitted once each with
dif... more >>
Reports and the ReportViewer
Posted by ME at 1/19/2006 11:35:48 PM
I want to generate a simple report that will display information from my
customer table in a report format. I created a simple Customers.rdlc file
that contains three text boxes bound to
=First(Fields!Name.Value)
=First(Fields!Address.Value)
=First(Fields!Contact.Value)
placed a ReportV... more >>
DotNet & SDK install issue
Posted by Mark Sandfox at 1/19/2006 10:55:29 PM
I am running a 2003 webserver that has DotNet 1.1 installed. I have tried
several times to install DotNet FrameWork 2.0 and the SDK. Although the
programs are there they are not recognized by the FileUpload Control and I
get the following error.
Server Error in '/' Application.
----------... more >>
CustomValidator in Mozilla
Posted by rajarameshvarma NO[at]SPAM gmail.com at 1/19/2006 8:39:32 PM
CustomValidator in my aspx page is not working in FireFox.It is working
fine with IE. My client validation function is in JavaScript. Even the
CV is not calling the client function also. Can anybody help me in this
regard.
Thank in advance,
Varma
... more >>
web control library using visual studio .net 2005
Posted by M Nauman Ur Rehman at 1/19/2006 4:48:33 PM
Hi,
How do I create a web control library using Visual Studio .NET 2005. I
couldn't find a template for this.
I'm using the Professional edition of VS.NET 2005.
For now I've created a web control library project with VS.NET 2003 and then
imported it into VS.NET 2005. Is that the only way or... more >>
GUID and data controls
Posted by TdarTdar at 1/19/2006 4:35:03 PM
Hello,
I have a table with two GUID fields and one check box field
simple enough..
(vs 2005, asp.net 2)
I drag the table in from the connected database turn on the edit feature
I run the page and edit the record and get
"Disallowed implicit conversion from data type sql_variant to dat... more >>
Dataset from ObjectDataSource always null?
Posted by timpera2501 at 1/19/2006 1:19:03 PM
I've been working on this same problem for 2 full workdays now and I'm about
ready to tear my hair out. Please! If anyone knows the answer, please
respond.
Very simply, I have a BusinessLayer bound to an ObjectDataSource called
"ObjectDataSourceEmergencyTTs". The value passed to
"Objec... more >>
Getting value from child control of formview
Posted by timpera2501 at 1/19/2006 1:05:02 PM
Hello,
I'm a bit of a newb, so please forgive me if this is a stupid question.
I have a simple formview that contains only one control (a label control
called "COUNTLabel"). The formview is bound to an ObjectDataSournce that
returns one value named "COUNT" which is assigned to this label ... more >>
How to pass username to ObjectDataSource as a parameter?
Posted by timpera2501 at 1/19/2006 9:49:03 AM
I have an application where users log in with the standard .NET 2.0 login
control and database.
Once logged in, I want the data retrieved by an ObjectDataSource control to
be dependent on the UserName.
The choices I have for "Parameter Source" are:
Cookie
Control
Form
Profile
QueryStr... more >>
Embedding CSS with inline code
Posted by Sean at 1/19/2006 9:02:04 AM
Is it possible to embed a css file and use it as webresource when it's having
some code inside? An example would be:
..Container
{
background-color : <% =BackgroundColor %>;
}
when "BackgroundColor" is a property in my custom server control?
Thank you.... more >>
ITemplate - Dynamic ImageButton in BindLabelColumn for DataList
Posted by Erik at 1/19/2006 8:10:07 AM
Good Morning,
I am trying to dynamically generate an ImageButton in a datalist label
column. When I have a static reference to the image 'image/plus.gif', the
image is displayed in the label column.
However, when I try to adapt the html code to be dynamically defined in the
binding of ... more >>
SmartNavigation Problem/Bug
Posted by Doug Salomon at 1/19/2006 6:01:02 AM
I've come across a weird problem with the smart navigation directive.
It seems that, in some (many? most?) cases using the asp.net 2.0 menu
control with smartnavigation emabled is causing some trouble.
I've found that (at least in my pages and those of a colleague), performing
a post back ... more >>
Easy question: ASP.NET Label
Posted by maciu at 1/19/2006 12:53:13 AM
Hi all,
I was wondering if the maximum text length of Label server control is
bounded by any value?
Thank You in advance for reply
... more >>
What is the code for file upload?
Posted by Mark Sandfox at 1/18/2006 8:17:03 PM
I have tried everyway i know both Input type=file and asp.net 2.0
asp:uploadfile and continue to run into road blocks at one point or another.
The objective is as follows:
Allow user to upload multiple files of a specific extension (i.e. .jpg). In
addition to uploading to a specific directo... more >>
Updating component attributes
Posted by Andrew Chalk at 1/18/2006 7:40:48 PM
If I update the background color of an asp.net control (e.g. a TableCell)
from client-side javascript, how do I read that change from asp.net
server-side code (e.gf. in C#)?
Many thanks.
... more >>
"Protect" or Disable Editing of A Webcontrol
Posted by Randy at 1/18/2006 5:28:47 PM
I hope somebody can make a hero out of me before tomorrow! Let's say I
have a web page with a couple of textboxes, checkboxes, radio buttons,
etc. User fills in some data, clicks submit, and off it goes. Tomorrow,
someone else retrieves that page with the data. I want the second user
to see what... more >>
How do I create a custom webcontrol that can have xml inside it's tag?
Posted by Allan Ebdrup at 1/18/2006 4:06:05 PM
How do I create a custom webcontrol that can have xml inside it's tag?
I mean a control like the repeater control, where I can specify special tags
that define the header body and footer of the control.
I'm thinking of something like:
<uc1:CustomControl ID="Control1" runat="server">
<Header>S... more >>
StackOverFlowException When Recursing Page Controls
Posted by Randy at 1/18/2006 3:51:35 PM
I'm trying to recurse the controls on a web page and insert some data
about the controls into a database but I get a StackOverflowException
before a counter I set for debugging purposes even increments one time.
Here's the button code:
Protected Sub btnGetCtrls_Click(ByVal sender As Object, B... more >>
SelectedIndexChanged not firing
Posted by Andrew Chalk at 1/18/2006 2:38:13 PM
When I change the item displayed in a dropdownlist the delegate registered
in the SelectedIndexChaged event is not fired. Does anyone have any idea
what might cause this? Other controls' events on the form all fire, although
those are all "click" events.
Many thanks.
... more >>
Menu Control - Templates
Posted by Jay at 1/18/2006 10:56:25 AM
When I setup a StaticItemTemplate using a HTML table, for example, how do I
implement the ability to select. If I do something like the following I
lose the ability to select.
<table cellpadding=4 cellspacing=0 border=1>
<tr>
<td> <%# Eval("Text") %></td>
<td>Next</td>
</tr>
<... more >>
Custom TreeNode for asp.net 2.0 treeview control
Posted by Rickey Whitworth at 1/18/2006 10:48:31 AM
I want to display a treeview control that is tied to a sql database.
The child nodes will be of different types, meaning they will have different
attributes and different tables
-Root
--Service1 (select * from services) value = serviceID = 1
---Database1 (select * from databases where serv... more >>
2.0 DatagridView and Buttons
Posted by Dave Bareham at 1/18/2006 10:47:28 AM
I'm fairly new to this so please bear with me!
In an aspx page I have defined a datasource which connects to a SQL
database. I then have defined a datagridview which connects to two fields in
the required table - on is the ID field and the othen contains a caption.
My question is this: Is ... more >>
multiple datasources for a single dropdownlist/listbox?
Posted by TJ at 1/18/2006 10:18:13 AM
Can this be done? I need the results of 2 recordsets to populate a single
listbox web control.
Is there an easier way than looping through a DataReader for each and
manually constructing a single DataTable (though that's sounding pretty good
right now)?
... more >>
Multiple onclick Events
Posted by Bahman at 1/18/2006 10:02:51 AM
Hello!
I need an asp button to run multiple onclick events.
First, it needs to run a piece of javascript.
Next, it needs to run its own procedure (button_Click...).
I may need to do other things.
What is the best way to do this?
Is there a way to call the onclick event more than on... more >>
Webparts verb menu
Posted by David Davis at 1/18/2006 10:02:47 AM
I doing to the Walkthrough: Creating a Web Parts Page in the Visual Studio
help and my WebPartZones do not have the dropdown arrow that displays the
verb menu when I run my application. I can see the arrow in design mode,
just not when I run.
I also noticed that when I add the "title" att... more >>
cache and detailsview, all data controls problem
Posted by TdarTdar at 1/18/2006 8:08:21 AM
Hello,
I enabed caching on my sql 2k database for the database and table as
stated in the
http://msdn.microsoft.com/msdnmag/issues/06/02/WickedCode/default.aspx
article here, however since then I am no longer able to drag tables or add
any data object or data source, if i drag the control... more >>
ViewState properties and mapped properties don't work well togethe
Posted by Christophe Peillet at 1/18/2006 6:46:41 AM
I have a CompositeControl with two types of properties:
1.) Mapped Properties that map directly to a child control's properties
(ex.: this.TextboxText = m_txt.Text). These properties are handled by their
underlying classes (such as the TextBox control), and are not persisted by me.
2.) Uniq... more >>
Calendar control to display image on Mondays
Posted by David at 1/18/2006 6:01:05 AM
I am trying to get an image to appear on all Mondays within the calendar
control. I also want that image to be a link. How can I do this?... more >>
ImageButton inside of a WebPart not firing Clicked Event
Posted by Brian McCarty at 1/17/2006 3:51:39 PM
If you create a blank WebPart control with just an imageButton in it and add
a handler for the Clicked Event, it never gets fired. Does anybody know of
a work-around? Thanks
Brian
... more >>
Adding errors by hand to a validationsummary?
Posted by JohnnyGr at 1/17/2006 3:03:06 PM
How can i add my own errors to the validationsummary control`?
I have a button that does some checking against an database and if something
goes wrong i want to put a error in the validationsummary control, is this
possible? if so, how do i do it...
Thanks!
... more >>
Help with GridView Update w/ Object Data Source needed
Posted by anyeone at 1/17/2006 12:49:25 PM
I've got a GridView bound to an Object Data Source and I'm having trouble
figuring out just how to set it up to update properly.
I have the object data source defined as so:
<asp:ObjectDataSource ID="objBatchData" runat="server"
SelectMethod="GetItems" TypeName="MyNamespace.BatchData"
... more >>
A bug? Transparent Dynamic Item!
Posted by enhung at 1/17/2006 12:46:02 PM
I try a Dynamic menu Item a transparent one like this
<DynamicMenuItemStyle BackColor="Transparent" ForeColor="Transparent" />
<DynamicMenuStyle BackColor="Transparent" ForeColor="Transparent"/>
and this wroks at design time.But at run time, it turns out not working.
Is this a bug or s... more >>
how to get changed text from web control textbox
Posted by Eric W. Holzapfel at 1/17/2006 11:19:50 AM
Hello Visual Studio Group,
I have created a webform with controls. My idea is to load the text
values from these controls as values for an insert stored procedure.
The insert works. I have one control that I preload (on the page_load
event) with "today's date", this can be considered the ... more >>
XHTML 1.1 and DIV 1 pixel in height
Posted by e_zverev at 1/17/2006 10:57:06 AM
The general question is: "Is it possible to achieve a DIV that is 1 pixel in
height?"
Keep in mind that I have to use XHTML 1.1 DOCTYPE.
All I did in HTML 4 to make this does not help. I.e. even if I set the
font-size to 1px and declare a style attribute height:1px my div is 2 pixels
tall.... more >>
Dropdownlist causes blank screen
Posted by RML at 1/17/2006 6:17:02 AM
Hi,
I have a VS .Net 2003 webform that contains 2 dropdownlist controls. One
picks a month, and the second picks a year. Both have their AutoPostBack
propertie enabled. When I run the form, and select a differnet month, and
before the postback happens, I quickly select a different year, ... more >>
ItemTemplate: How to create a Hyperlink with a Text property binded with a ObjectDataSource
Posted by RenatoGuarilha at 1/17/2006 6:11:58 AM
Hi,
I've tried to create a GridView dynamically, but I'm stucked at this
point :
How can I do the Bind of HyperLink.Text property and datasource
property ?
Below is the code of my Template Class.
Thanks in advance,
Renato.
public class HyperLinkTemplate: ITemplate
{
pr... more >>
Menu Control and Page Validation
Posted by Ken McBryde at 1/17/2006 4:50:04 AM
Is there a simple way in which I can get the Menu control to cause page
validation to happen on the client side - thus causing client side validator
components to execute before a postback is attempted?
Reason:
I have a web app that will always be accessed by the client group from IE
there... more >>
Dependent GridViews And CommandArguments
Posted by beaudetious at 1/16/2006 8:33:03 PM
I have two gridviews. The first one has a column that contains an
ImageButton with a commandargument that is set in the RowDataBound event for
that gridview. What I want to happen is that when a user clicks the
ImageButton on a row in the first grid, somehow the commandargument will be
rea... more >>
VS 2005 Validator controls
Posted by Arvind R at 1/16/2006 5:54:43 PM
Hello,
Is it true that VS 2005 Validation control do support other browsers? like
mozilla and opera? rather than only IE?
someone please let me know on this.
also let me know if theres some third party controls/components to achive in
dotnet framework 1.1 (vs 2003) environment. (server ... more >>
Windows Forms Controls On IE!
Posted by Chilá at 1/16/2006 3:11:05 PM
Hi there!!
I'm trying to put a windows forms control inside IE, this control will be
used to upload files on the Intranet and Extranet, giving the user a better
experience, but:
If I put a strong name on it, it disappears on the screen.
and if I try to read the file size, the following ... more >>
GridView "visible=False" data items not accessible? programattically
Posted by ohyeahgo at 1/16/2006 6:48:49 AM
this might be an easy one.
So "everything" is working and this GridView and it is NOT used to
update data.
I'm attempting to get to the "invisible" data columns in a gridview. I
can easily access the shown data by
doing something like this, it works for "visible" data but no hidden
colu... more >>
Set visibility of label in itemtemplate of repeater control
Posted by Stan at 1/16/2006 3:36:33 AM
Hi all! I'm trying to set the visibilty of a label in the itemtemplate
of a repeater control. The repeater is bound to a datatable. It is
possible that a row of this datatable is empty, in that case I would
like to hide the label, not within my code-behind but within the 'aspx'
(because the labe... more >>
Label has not multiline property to set?
Posted by enhung at 1/16/2006 1:21:03 AM
I use a Formview to update my new database. In the itemlist, when it retrieve
the news from database, it's rendered in a label. However, the label has no
multiline property to set, so, it appears the news does not look like
expected.
Can this be done with standard control?
I am kind of n... more >>
A transparent Submenu Item?
Posted by enhung at 1/16/2006 12:52:02 AM
I've been working on this transparent Submenu item.
I managed to hover the dynamic item menu, and link it with a image url. It
shows when hovering on it.
My problem is how to put fiter:alpha(opacity=40) into a Css file.
I use the Menu IMG to control it, but it doens't work. So, I need... more >>
Inheriting from the TreeNode class
Posted by Alexander Walker at 1/15/2006 5:07:28 AM
Hello
I have a written a class that inherits from the TreeNode class
I want to use the inherited TreeNode class to attach custom properties to
the nodes in a TreeView web control
I am trying to use the TreeNodePopulate event to read the custom property
when the user expands a node
Th... more >>
|