all groups > asp.net webcontrols > december 2007
Filter by week: 1 2 3 4 5
How To Get IntelliSense Support for Child Web User Controls
Posted by Axel Dahmen at 12/30/2007 2:26:05 PM
Hi,
in VS 2003/2005 I've created my own TabStrip control. The ASPX code is =
supposed to look something like this:
<my:TabStrip runat=3D"server" ID=3D"myTabStrip">
<my:Tab>Tab 1</my:Tab>
<my:Tab>Tab 2</my:Tab>
<my:Tab>Tab 3</my:Tab>
</my:TabStrip>
However, Visual Studio... more >>
Ajax PopupControlExtender
Posted by john at 12/24/2007 7:01:58 AM
Using Visual Studio 2008
The use for this is in a Timesheet entry webpage where a 2 week period is in
view, using the DataList ItemTemplate only.
The popup's targetcontrol is the Hours textbox(16 total & 16 popupcontrol's;
one for each of them), the popup is a text box to enter a memo abou... more >>
FileUpload control does not recognize having a selected file
Posted by Nathan Sokalski at 12/19/2007 9:33:00 PM
I have a FileUpload control which is inside an UpdatePanel which is inside a
TabPanel. In my code, I use the FileUpload's HasFile and FileContent.Length
properties. However, after I select a file, the HasFile=False, and the
FileContent.Length=0. Why is this? Does it have something to do with t... more >>
baseValidator.ErrorMessage is rendering between start & end tags instead of as an attribute
Posted by TS at 12/18/2007 1:11:09 PM
I don't understand why this is so. why doesn't it render as an attribute of
the span tag?
thanks
... more >>
DataFormatString not getting applied to GridView's BoundField
Posted by TS at 12/18/2007 9:48:00 AM
Hello, I have a control that inherits from GridView and i'm overriding
databinding. My control works correctly but is not respecting the
DataFormatString property that i'm setting on the field. As you will notice,
i am using column information from meta data. The actual format string from
... more >>
control creates too many add_init
Posted by Val P at 12/17/2007 10:35:02 PM
I am doing a sample control pieced together from pieces on the web... I am
using Visual studio 2008 and I created it as a Ajax web control. The problem
is, at run time, it generates the following code:
....
<div> <span id="AddressBook1"></span>
</div>
<script typ... more >>
web part, create toolbar with drop down buttons
Posted by Handle at 12/16/2007 11:09:10 PM
I have developed a custom web part, to which I want to add a toolbar
made up by several with drop down buttons, like shown in this link:
http://www.graphicalwonder.com/wp-content/navstep2.jpg
(the drop down buttons I referring to are, in this case "New", "Actions",
"Settings"..)
What cla... more >>
DropDownList Binding to LINQ DataSource
Posted by John Padilla at 12/15/2007 11:08:00 AM
I was playing around with the LINQtoSQL and found an interesting problem.
i am using the Northwind database on SQL 2005 Developer Server.
In my webform's PageLoad event I have the following code:
NorthwindDataContext db = new NorthwindDataContext();
var customers = from c i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Next problem :) GridView - formatting text
Posted by JamesB at 12/14/2007 3:43:18 PM
OK, so I now have a gridview on my page. Because my data isn't stored in
such a way that I can bind the grid directly to the database, I am creating
a DataTable in code, running some procedures to fill this with data in the
right format from the database, all processed accordingly, then bindin... more >>
Retreiving a DataItem in the GridView's RowCommand
Posted by Nathan Sokalski at 12/14/2007 10:06:19 AM
I have a GridView with a ButtonField. In the RowCommand I need to use the
value of one of the fields used in that row. I am having trouble doing this,
so I would appreciate it if someone could help me here. Thanks.
... more >>
loading a treeview in asp.net
Posted by Erick at 12/12/2007 11:28:43 PM
Can some one help me with loading a treeview in asp.net 2.0
I have a table with records and each record has a column that has a
value which points to the parents record id.
All examples i have seen on the internet load the top node and then
call the database again once a node is clicked.
I ... more >>
select listbox item programatically not working?
Posted by JamesB at 12/12/2007 4:28:33 PM
I am new to web stuff, having previously done forms based apps... anyway, my
web app currently has a listbox on a page that is populated from a database
table.
That works fine, I can see all the records, however I want to set the
listbox to the name of the logged in user.
I have done this:... more >>
fileupload fails in updatepanel
Posted by Jeremy at 12/12/2007 12:58:35 PM
I have a fileupload component and a submit button inside an updatepanel.
(C#, asp2). In the debugger in page load, I see that the hasfile property
is false, even though the fileupload control was used to select an existing
file on the client.
If I move the 2 controls outside the updatepane... more >>
issue with popualting a message on asp:label server control
Posted by Dhananjay at 12/12/2007 6:23:06 AM
hi all
i have a problem on populating a message on asp:label server control.I
am able to insert records into the table.but it is not populating any
message like "Records entered successfully". i wanted to implement
this .how to proceed can anybody tell me about this . i am using
asp.net/vb.n... more >>
Dropdown Inside Gridview SelectedIndexChange Event
Posted by Babu at 12/12/2007 5:20:23 AM
I am having DropDownList inside GridView. When the DropDownList SelectedIndex changed a event should fire and how can I able to get the row number for the GridView
... more >>
How to write code and design?
Posted by Vasant at 12/10/2007 7:07:50 PM
How to make Textbox and Button like
at 1 time
Textbox Button
at 2 time
Textbox Button
Textbox Button
Thank you.... more >>
Calendar control renders as a single column on IE Mobile 6
Posted by spence_duncan@hotmail.com at 12/10/2007 6:47:48 AM
I am trying to put a standard calendar control (ASP.NET 2) into a page
that will be viewed in IE Mobile 6 (Palm Treo 750).
I've put the control on the page and narrowed everything down as far
as I can (i.e. width=100, font-size = xx-small, cellpadding = 0,
cellspacing=0 etc), but when viewing ... more >>
DetailsView button in TemplateField click event not firing
Posted by paul.haines@wcbs.co.uk at 12/10/2007 4:10:56 AM
I have a DetailsView with a number of TemplateFields, (plus other
types of fields). One has a button and a click event handler. Another
has DropDownList, which has its selected value initialised when
editing, (from a session variable source).
Unfortunately I've found that to get the click even... more >>
LinkButton Casting error
Posted by Jim McGivney at 12/9/2007 8:25:58 PM
I am trying to determine the row of a Button on a DataView an. I need to
set the CommandArgument when the row is first created.
I copied the following from Visual Studio 2005 documentation
public void GridView1_RowCreated(Object sender, GridViewRowEventArgs e)
{// The GridViewCommandEventArg... more >>
How to catch errors when databinding
Posted by Axel Dahmen at 12/8/2007 9:02:09 AM
Hi,
I'm new to binding a <asp:FormView> control to an <asp:ObjectDataSource> =
control.
Binding appears to work fine. But I can't find any information on how to =
deal with errors when they appear, e. g. when a user deletes a row being =
foreign key referenced by another row in another tabl... more >>
FileDownload Control ???
Posted by ComputerWeenie at 12/7/2007 12:54:00 PM
I am using Visual Web Developer and using the FileUpload Control to upload
files to the web server just fine.
But, why do I not see a FileDownload Control? How can I allow users to
download files from the web server?
--
ComputerWeenie... more >>
Inserting from DetailsView and associated Child Records
Posted by Tyler Lynch at 12/7/2007 11:56:00 AM
CASE NUMBER: SRX071207601166
To preface, all data access is done through ObjectDatasounces that are bound
to StronglyTyped Datasets (VS.NET generated). All UI controls are bound to
those ObjectDataSources through standard UI binding techniques (point/click).
I have a DetailsView used for... more >>
calendar control placement
Posted by willy at 12/7/2007 8:10:28 AM
I can't seem to figure out how to place a calendar control anywhere but
on the left edge of an asp page. If I try to place it to the right of
any control, or add spaced in front of it, the calendar goes to the
next line.
Can anyone point me in the right direction? Google has not been any
... more >>
Getting the data bound to a Repeater
Posted by Nathan Sokalski at 12/6/2007 3:19:38 PM
I am attempting to get the data that was bound to an item in a Repeater
control for use in the ItemDataBound event. Here is the code I am using to
attempt to retrieve the data:
CType(e.Item.DataItem, DataRowView)("fieldname")
This has normally worked for me in the past, but once in a while... more >>
Programmatically Access Data Behind SQLDataSource Controls
Posted by MitchW at 12/6/2007 12:15:03 PM
Hello,
I have a GridView that is bound to a SQLDataSource. I have enable item
selection on this GridView. I have a button on this .aspx page which does
some work on a different table that what the gridview (SQLDataSource) is
bound to. In order for the button to do its work I need the identi... more >>
Is any way to palce a control(button/label) at a location on a panel in a webPage ASP.net 2.0in runtime??
Posted by chandan at 12/5/2007 10:08:56 PM
Hi,
Is any way to palce a control(button/label) at a location on a panel
in a webPage in runtime??
I am trying to place a control at mouse click position on the a panel
in a
page.also I am not getting the mouse down position on the panel ,I am
working on that.Actually I am windows Progr... more >>
Layout issues with MultiView control/tabbed display
Posted by paul.gibson@abbott.com at 12/5/2007 2:22:45 PM
Hi all -
I'm using version 2.0 of the framework. Using a Multiview control to
produce a tabbed display. I'm putting two Panels in each View, one
for the "tabs", one for the content. The mark-up looks something
like:
<asp:MultiView ID="mvMain" runat="server" ActiveViewIndex="0">
<asp:V... more >>
How to catch errors when databinding
Posted by Axel Dahmen at 12/5/2007 10:59:05 AM
Hi,
I'm new to binding a <asp:Form> to an <asp:ObjectDataSource> control.
Binding appears to work fine. But I can't find any information on how to =
deal with errors when they appear, e. g. when a user deletes a row being =
foreign key referenced by another row in another table, or if he/she... more >>
DataBinding In a Custom Control
Posted by thoughtcrimes at 12/5/2007 9:38:57 AM
Hello:
I am building a DropDownList-type control. I opted for inheriting just
the WebControl class instead of DropDownList class because the child
controls and the rendered HTML will be quite different.
I have an IEnumerable DataSource and the properties DataValueField and
DataTextField whi... more >>
Editing .aspx/.ascx of precompiled web site (Project Portfolio Server Web Access)
Posted by Handle at 12/4/2007 5:10:44 PM
I want to customize some aspx / ascx files of a precompiled site (the
project portofolio web access site). I have no access to source code.
Using Visual Studio, when I try to edit one these files in "design view", I
get the following two categories of errors:
1) Some "Cannot switch view... more >>
A question for all those who struggle with automatically databound controls
Posted by Phil H at 12/4/2007 1:54:04 PM
Dear All
On reading of the problems people are complaining about with such
controls as GridView, FormView etc I wonder whether they have
considered that maybe, just maybe, they have simply made the wrong
choice!
The above mentioned controls are at their best when they minimise the
amount o... more >>
Accessing Text Property of FormView Control from Code Behind File
Posted by WJB at 12/1/2007 3:50:01 PM
Hi,
I have a TextBox in a FormView ItemTemplate that uses a function to perform
special formatting on the retrieved field content that is bound to the
control as in the following control (the GetFormattedField function is in my
code behind .cs file):
<asp:TextBox ID="txtPhoneNumber" run... more >>
|