all groups > asp.net webcontrols > september 2006
Filter by week: 1 2 3 4 5
Newbie ASP.NET question for Webportal project
Posted by Erry at 9/30/2006 8:45:23 PM
Dear ASP.NET Guru,
I'm start learning ASP.NET 2.0 (Visual Studio 2005), I would like to use
ASP.NET on my webportal Chart/Reporting Projects, I have couple questions
and appreciate if you could point me a link resource or book for each of my
questions below:
1. Does ASP.NET has security ... more >>
XPath Asp.net
Posted by Nishad at 9/30/2006 3:23:28 AM
Anybody knows how to write xpath in Asp.net to search xml file to get
nodes with attributes,the value of which is same as a given valueas we
use like expression in SQL
Thank You all
... more >>
Tree view with XML and Populateondemand
Posted by Nishad at 9/30/2006 12:31:27 AM
Dear All,
I have a tree view control bound to xml file and I am using
XMLDataSource comntrol connect to XML file. I set the Populateondemand
property of the Tree View control to True. But I think the XML file is
taken fully at the first loading.
I have'nt writen any code in the populateondema... more >>
Custom Control at deisgn time
Posted by Paul Cheetham at 9/29/2006 12:39:05 PM
Hi,
I have a custom control, which creates 2 child controls - an ImageButton
and an image as shown in the following code:
// Setup the controls on the page.
btnImage = new System.Web.UI.WebControls.ImageButton();
btnImage.ImageAlign = ImageAlign.Top & ImageAlign.Left;
btnDisableI... more >>
NullReferenceException with dynamic DataGrid
Posted by Mark Gilkes at 9/29/2006 9:06:02 AM
I have a page using a dynamically added DataGrid. DataGrid contains a
TemplateColumn and is bound to a DataTable in a protected method called from
OnInit. ItemCommand and SortCommand events are wired and working. When I then
moved the DataGrid into a Table, Row, Cell and Panel control to forma... more >>
Can't repopulate DropdownList control during postback?
Posted by Bill Cohagan at 9/28/2006 8:33:51 PM
I've run into what appears to be a circular problem; at least it's got me
going in circles. I've got a dropdown that I want to repopulate when a
particular event occurs; i.e., during a postback for that event. What I need
to do is set the DataSource to a new value, a List<Room> collection. I t... more >>
Div background image from CSS
Posted by Paul Cheetham at 9/28/2006 12:31:48 PM
Hi,
I am developing a web application in .net 2 c# in VS2005 Pro.
I have a master page, containing a DIV tag, and I am setting the
properties of the DIV in a CSS file.
Everything works fine, except the background image. It just refuses to
display the background.
If I move it into the s... more >>
Query on user control
Posted by kan at 9/28/2006 3:18:47 AM
Hii all ! Help
i am having a form contaning a user control..when i am giving input to
the user control
and press a button in the user control the values must be dispalyed on
the web form where
i am having user control..For eg) the user control act as a editor for
the web form
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Binding an upload file control to a string field
Posted by John Meyer at 9/27/2006 11:03:11 PM
hi
I have two data fields that I want to bind to the database that are
binary file uploads, but I don't want to store the file in the database,
just the relative filenames. How do I do that?... more >>
Dynamic Textbox
Posted by Me at 9/27/2006 8:10:15 PM
Using ASP.Net v2, is there anyway to have a textbox function more like a
windows application?
i.e. I'd like to have a webbased irc control that functions like jIRC. -
when text is received I'd like the text to be displayed in that control but
w/o having to refresh the entire page.
Any an... more >>
Getting multi values from a list box
Posted by John Wright at 9/27/2006 3:18:57 PM
I have two listboxes on my form that are populated from a datatable. I have
the selectionmode set to multiselect and the tables are populated correctly
with the correct values and text properties. The problem I have is
extracting which values are selected in the list. I have the following c... more >>
Equivalant to the DateTimePicker
Posted by Michael D. Ober at 9/27/2006 12:18:26 PM
Is there a webcontrol that operates like the standard datetimepicker? It
appears to be a combobox but the dropdown is a calendar instead of a list.
Mike Ober.
... more >>
How do I restrict webpart usage to a single instance on a page?
Posted by AHarwood at 9/27/2006 11:11:02 AM
I need a way to restrict users from placing multiple instances or copies of a
webpart on the same page. How do I do this?
... more >>
Selecting a row in a Gridview without a button or link
Posted by hal at 9/27/2006 10:29:10 AM
Anyone know of a way to select a row in a gridview by clicking anywhere
on that row without using a button or link, or know of sites that
explains how to do this?
Thanks
... more >>
Displaying a bound datasource in two columns?
Posted by Chris Jobson at 9/27/2006 12:00:00 AM
I need to display a datasource using a templated control (e.g. a Repeater),
but with two columns down the page instead of the single column that a
Repeater gives, e.g. ideally:
Item1 Item2
Item3 Item4
,,,
or alternatively:
Item1 Item n+1
Item2 Item n+2
... more >>
GridView Nested - Is it Possible?
Posted by manmit.walia NO[at]SPAM gmail.com at 9/26/2006 6:45:06 PM
Hello All,
I have a question hopefully some ASP.NET Guru can answer. I am trying
to build a nested style GridView for users to pull reports from a SQL
Database. The question is, "Can I create a GridView with the following
structure?" I know I can put GridViews' in columns but was wondering if
... more >>
Uploading big files
Posted by ThunderMusic at 9/26/2006 11:17:41 AM
Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLength (4Mb) and 2) with big files (such as 250Mb) the server ... more >>
Role of the web.config file with UserControls [2.0]
Posted by Griff at 9/26/2006 12:00:00 AM
Most of the configuration information for a web application exist in the
web.config file.
We're planning on writing a set of compiled UserControls that could be used
by "any" web site. Of course, we're not going to be aware what information
has already been added to the web site's web.conf... more >>
missing ellipsis in editor
Posted by Terry at 9/25/2006 8:37:31 PM
Hello:
I ha e a web user control and my objective is to get the editor working when
I drop the control in a web page - but it is not - the url property is an
empty field and I woulkd like the ellipsys that would allow me to navigate
to and url.
Thanks
Imports System
Imports System.Collec... more >>
Assign access key to control ?
Posted by Tony Girgenti at 9/25/2006 2:36:42 PM
Hello.
Is it possible to assign an access key to a button control on a web form ?
The way you do for a windows button on a windows form.
Thanks,
Tony
... more >>
GridView Update Not Working
Posted by Saubz at 9/25/2006 6:36:01 AM
Hello. I have a problem with my GridView not updating. I have a GridView
showing 4 fields from a database table. If all 4 of the fields have values
showing in the GridView, then using the automatically generated Edit button
on the GridView works just fine - the database updates. But if one... more >>
ASP.Net 2.0 Validation Groups & IValidator Controls.
Posted by Craig at 9/25/2006 4:11:02 AM
Ok so ASP.Net 2.0 Validation Groups are great and lovely...
But has anyone managed to sort out a solution to Validators that directly
Implement IValidator (as opposed to inheriting from BaseValidator) error
message's not appearing in the ValidationSummary.
Starting point for my control was... more >>
asp.net 2 report problem with 3-tier design
Posted by Bernie Beattie at 9/25/2006 1:51:01 AM
How do you create a report when you have a 3-tier web application? I have a
class that does all the data accessing for me, so I don't have direct access
to datasets in the user interface tier. I was hoping I could just cheat the
report with a dummy dataset structure nut I'm not sure how to g... more >>
Authentication in ASP.NET 2.0
Posted by Peter Afonin at 9/24/2006 8:17:11 PM
Hello,
I'm just reading about the new authentication features and authentication
controls in Visual Studio 2005. Seems to be very nice, but one thing is not
quite clear to me.
It says that all user data is stored in the ASPNETDB.MDF file in the
App_Data folder. In my current ASP.NET 1.1 ... more >>
ASP.NET Grid view formatting
Posted by IRA at 9/24/2006 4:01:02 PM
I have a GridView control with manually added bound columns. I have
specified ItemStyle.Width=150px and ItemStyle.Wrap=true for several
columns. When one of the column values has a long text it doesn't wrap nor
the width property taking any affect and the grid is extending outside the
web pag... more >>
asp:hyperlink - NavigateURL is always relative. I need absolute.
Posted by Carl Grainger at 9/24/2006 10:47:01 AM
Hi, When progammatically setting the navigateURL property in code behind, the
URL is always rendered as relative i.e it's appended to the applications root
URL. If I use the same string and hard code it the URL is rendered correctly
as absolute.
Can anyone tell me how to set an abolute URL ... more >>
Referring to a field name in a hyperlink
Posted by John Meyer at 9/24/2006 7:47:50 AM
Okay, this might be dumb, but how do I do this? I knew how to do this
in classic ASP, i.e
<a href="http://www.somelink.com/somepage.asp?id=<%rs("SOMEFIELD_ID")%>"
But how do I do that, considering I have a sql datasource?... more >>
UserControls in a different directory
Posted by Nathan Sokalski at 9/24/2006 12:00:00 AM
I have my UserControls in a subdirectory called usercontrols. In the code
for one of my UserControls I have the following:
Public Property adimage() As String
Get
Return lnkAdvertisement.ImageUrl
End Get
Set(ByVal value As String)
Respons... more >>
Using ASP.NET 2.0's ImageMap Control
Posted by Nathan Sokalski at 9/23/2006 8:58:54 PM
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one
directly below the other. When I do this a thin blank space appears between
them. After several days of frustration I realized that the difference
between what the ImageMap Control outputs and the html on the page I was
try... more >>
server control property editor
Posted by laptop NO[at]SPAM kirakai.com at 9/23/2006 4:14:34 PM
hello:
using vb.net - I have a server control.
I have a property but I want to have a file open editor attached to it.
<Bindable(True), Category("Custom Properties"), Editor("?")
Localizable(True), Description("Image Source"), DisplayName("Image Source")>
Property ImageSource() As String
... more >>
DropDownList SelectedIndexChanged
Posted by Janet at 9/22/2006 5:40:44 PM
Hi,
I've created a User control, where it has a DropDownList and a Textbox.
Whenever the selectedindex is changed, the textbox will show the
SelectedValue of the dropdownlist.
Code in the ascx file
private void InitializeComponent()
{
this.cboCode.SelectedIndexChanged += new
Sy... more >>
Treeview Styles Aren't working
Posted by GroupReader at 9/22/2006 2:22:16 PM
I have an ASP.Net 2.0 Treeview control that works fine in one virtual
directory, but not another. Same webpage, but accessed with a
different virtual path. Can anyone shed any light on the reason?
Here's the situation:
1) I have a website called "MyWebSite"
2) MyWebSite is accessible via ... more >>
How to hide the "Edit" link in DetailsView via code?
Posted by turboJeeper at 9/22/2006 1:10:40 PM
I need to hide the "Edit" link of a DetailsView control based on a
condition. Basically trying to set the "ShowEditButton" property to
"false" when loading the page with the DetailsView on it if the user
is not an admin. Is it possible to do via code? The commandfield links
are not templated, th... more >>
White strip showing up between two imagemaps
Posted by Nathan Sokalski at 9/22/2006 11:42:47 AM
I have two asp:ImageMaps in a table cell as follows:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="center">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
... more >>
create webcontrols in aspx or aspx.cs
Posted by brown at 9/22/2006 9:52:10 AM
Is it best to always put the webcontrols in the aspx file or is it sometimes
better to create them (new) in the code behind? I see the standard/easiest
way is to place them in the aspx, but are there common situations where your
output is conditional and it's better to just do it in the aspx.cs f... more >>
ASP.Net 2.0 DropDownList Selected Not Working...
Posted by den 2005 at 9/22/2006 12:14:01 AM
Hi everybody,
I populate the dropdownlist control dynamically and when I am about to
get the value of selected item in the dropdownlist I always get the first
one, when I try to set the autopostback to true, no matter what I select in
the dropdownlist it goes back to first selection. Is ... more >>
ASP code
Posted by Lion at 9/22/2006 12:00:00 AM
Could someone help me please.
I'm using a file called list.aspx to list the content of directories which
works fine. What I need its when the files get listed in the IE I would
like to have a two buttons next to the file name one to SAVE file and the
one to DELETE the file.
Thanks for ... more >>
sort rows in a table control
Posted by Peter Kirk at 9/21/2006 1:03:43 PM
Hi
I have a "System.Web.UI.HtmlControls.HtmlTable" control on a web page (it is
on an ascx which is in an aspx).
The HtmlTable has several rows (HtmlTableRow) which each have several cells
(HtmlTableCell).
The cells contain other controls - for example textboxes. Is it possible for
my... more >>
BulletedList and Unordered List - no bullets are displayed
Posted by ssg31415926 at 9/21/2006 2:57:59 AM
I'm trying to put together a page in ASP.NET 2.0. I need a couple of
bulleted lists. I've tried the asp:BulletedList web control and a UL
and neither shows any bullets. This is my code:
<asp:BulletedList ID="uxAccessBulletedList" runat="server"
Style="z-index: 102; left: 20px; position:... more >>
Controls calling other controls problem - ASP.NET 2.0
Posted by Griff at 9/21/2006 12:00:00 AM
Hi
I have a web page (content.aspx) that inherits from a master page
(MasterPage.master).
The master page has a control (which has to be on every web page, hence on
the master page) (MasterControl.ascx). When placed on the master page this
appears as <uc1:MasterControl ID="MasterControl... more >>
Control events - page life-cycle
Posted by Griff at 9/20/2006 3:29:23 PM
I want to build a set of compiled user controls to incorporate into a web
site.
The majority of user controls will be placed on specific web page and these
controls would share a common interface. The interface would expect some
sort of "end user identitifier" argument, perhaps a GUID.
... more >>
Checkbox Three States
Posted by Etienne at 9/20/2006 9:48:02 AM
Hello,
I'm searching a webcontrol Checkbox Three States. I saw many times on the
web that it's not possible. I don't why ! I think it is with javascript and
asp.net.
Have you got a source please ?
Thank you.... more >>
Autosave fields in GridView (ASP.NET 2.0 - using C# internal)
Posted by RBM007 at 9/20/2006 6:47:52 AM
Hello,
At creature of a GridView you can chose (if the datasoucrce supports
it) to add an edit tag before the rows.
If you click on the edit link, you will see that the links change to
"Update" and "Cancel". All the other rows (still) starts with Edit.
My problem is that if I should say I w... more >>
ASP.NET 2.0 / GridView / ObjectDataSource / Update / Missing Columns
Posted by Urs Eichmann at 9/20/2006 12:23:03 AM
Hello,
My GridView is bound to an ObjectDataSource for select / update /
insert. Everything basically works as expected.
However, in the following scenario there is a problem:
My entity "Customer" consisits of three properties, "id", "Name" and
"City". These are all being displayed in the Gri... more >>
How to keep state of treeview control
Posted by Peter Afonin at 9/19/2006 8:01:07 PM
Hello,
I've created a web application using Visual Studio 2005. I have a treeview
control there. When the user expands it and clicks on the link, the treeview
collapses automatically.
Is it possible to keep it expanded to the level the user expanded it? In
other words, to keep the state ... more >>
gridview with hyperlinkfield
Posted by rams at 9/19/2006 8:46:20 AM
i have one gridview in that some hyperlinkfields are there, if i click on hyperlinkfield, iwant to make some action and i want to get the values of that hyperlink field, in that situation what is the click event... more >>
OnDocumentReady with Treeview HTC (in a popup)
Posted by dgl3906464 NO[at]SPAM gmail.com at 9/19/2006 7:20:09 AM
All,
I've seeing a very odd behavior:
I've got a treeview control (implemented with treeview.htc) that
renders fine.
If I put that treeview on a page, it renders and behaves normally.
If I put that treeview into a popup (created with
window.createPopup()), it renders fine, but the ... more >>
Slow menu control in IE with large grid, fast is FF
Posted by patrick.sannes NO[at]SPAM gmail.com at 9/19/2006 4:13:07 AM
Hi there,
We have a problem here that the menu control in asp.net 2.0 have a bad
performance (client side) when we have a large gridview in the page,
with IE. Responses of the mouseover are realy bad.... When I open the
same page in FF there is no problem at all... Does someone know what
caus... more >>
A Repeater Question.
Posted by Lorenzo at 9/19/2006 2:51:36 AM
Hi,
There's someone that can help me with repeater control?
When I bind the dataitem, i want to specify a fieldname of the
container, programmatically.
Is it possible?
If not can anyone suggest me a workaround?
Thanks in advance.
... more >>
Failed validation doesn't stop page from posting back
Posted by GoCMS at 9/18/2006 12:45:02 PM
Hi, guys:
I'm developing with .net 2.0 framework. I found the validation control (
no matter it's a required field validation, custom validation or some others
) doesn't really stop the page from posting back.
What happens is even though the error message displays on the page, the
p... more >>
|