all groups > asp.net webcontrols > january 2004 > threads for january 22 - 28, 2004
Filter by week: 1 2 3 4 5
getting Image height
Posted by karimL at 1/28/2004 5:32:06 PM
Hi,
how can I retrieve the height and width of
a System.Web.UI.WebControls.Image after populating it's ImageUrl property.
It's seems not to be filled ?
Does someone have a solution ?
Thanks
Karim
... more >>
Custom DataGridColumn DataGridItems not saving to ViewState. Not Visible on Postback
Posted by googleGroupResponder NO[at]SPAM illexcascade.com at 1/28/2004 3:52:39 PM
I created a custom DataGridColumn based on Marcie Robillard's MSDN
Article:
Creating Custom Columns for the ASP.NET Datagrid
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/creatingcustomcolumns.asp
The problem I am having is that the data in the custom datagridc... more >>
Using the treeview
Posted by Poppy at 1/28/2004 1:41:26 PM
Can someone tell me where I can find an example of displaying data from a
database in a treeview ?
Every example I can find uses xml.
Thanks in Advance
... more >>
Securing Sections of Site
Posted by MikeD at 1/28/2004 1:20:24 PM
Hello,
I'm trying to work out the approved method of securing sections of my site.
The site consists of two areas, one available to everyone and the other only
availble to those who know the password. I'm using forms authentication
located within the webconfig to control this, but i'm running ... more >>
Binding an arraylist to a datagrid
Posted by David H. at 1/28/2004 9:36:05 AM
I'm trying to bind an arraylist to a datagrid web control
The arraylist contains "mystates" objects with properties named "state" and "abbreviation.
I can set the grid's datasource to be the arraylist, but I am having trouble referencing the properties of each arraylist item by their name. For ... more >>
Treeview Ctrl - adding an index/key
Posted by Schoo at 1/28/2004 9:21:51 AM
I have a working MS treeview control (from the webcontrols.dll) that is fed
with an XML file and a working SelectedIndexChange procedure. I need to
display a list of names, but then pass an ID number through the
SelectedIndexChange procedure. I modified my XML file so that I have an
extra attr... more >>
DataGrid - dynamically select (highlight) a row
Posted by Angela at 1/28/2004 8:31:13 AM
Here's my task list:
- highlight the clicked row in the DataGrid
- Be able to click anywhere on a given row
- Rows highlight as the cursor passes over them, cursor changes from arrow to hand
Are all of these things possible? If so, can someone point me in the right direction?... more >>
Slider control reqd in web page!!
Posted by Abhijit at 1/28/2004 12:41:06 AM
The need is to make a slider control work in a web page - aspx page. Is there a Slider control available for use on a web page - i know it is for a windows form. Is there a way to use the windows control on a web page??... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Slider in a web page
Posted by Abhijit at 1/28/2004 12:41:05 AM
The need is to make a slider control work in a web page - aspx page. Is there a Slider control available for use on a web page - i know it is for a windows form. Is there a way to use the windows control on a web page??... more >>
DataList and CheckBoxList don't seem to play well together
Posted by Dave Loynd at 1/27/2004 9:31:37 PM
Greetings all-
I am attempting to use a DataList with an embedded and databound
CheckBoxList control. As one might expect, I can add ListItems to the
CheckBoxList, but in no way have I been able to set or retrieve the Selected
property of any of these ListItems.
To perform the data binding... more >>
TreeView rebuilt on the client
Posted by Mark Goldin at 1/27/2004 9:28:10 PM
Can I dynamically change a source of the control?
Basically the user needs to load two different XMLs at his choice.
I dont mind to have postback true for that matter.
Thanks
... more >>
Web form Controls collection
Posted by dwa at 1/27/2004 2:15:54 PM
How can a control be added to a table cell within a ascx, so that iteration
over the forms control collection finds the control?
We've got code similar to this (excuse the psuedo-code) in the Page Load of
our the ascx:
// create and initialize a drop down...
DropDownList aDropDown = new Dr... more >>
checkbox changed event from client-side javascript -????
Posted by smita at 1/27/2004 2:13:37 PM
Hi Jeffrey,
I have a web page on which i have a placed a checkbox . Now what i
need is ..when this checkbox is checked , i want to enable three text boxes
present on the same page.
I am aware that i need to use java script here for client side
scripting...but how exactly do i nee... more >>
button control and cancel submit
Posted by jbhopper at 1/27/2004 11:51:08 AM
I use Attribute.Add to call a javascript function client-side from an asp:button control. The javascript function opens a window. My problem is that the submit event fires after the javascript code executes. When I view the source in "running documents" I see that the button is declared as "type=sub... more >>
Can i
Posted by sumana36 NO[at]SPAM hotmail.com at 1/27/2004 10:40:12 AM
Can i call a client side script after a server control is called and
executed? If yes, how can we do this?... more >>
WebForm Data Grid Button column customization
Posted by PatLaf at 1/27/2004 9:41:06 AM
I posted this question originally but wasn't clear enough with my request. I was pointed to the winforms help for the data grid. I need to create a web forms datagrid with two button columns that will either decrement or increment the values in the cells in the rows the buttons are in. Is there a sa... more >>
remove browser properties toolbar
Posted by lisak at 1/27/2004 6:11:08 AM
How do you remove the forward and back button from the browser window when creating an application using Visual Studio.Net. I want each web form to have the forward and back buttons removed or disabled so that users cannot browse this way.... more >>
XML data from TreeView
Posted by Mark Goldin at 1/27/2004 4:38:07 AM
What do I do to have TreeView XML data available on the client side?
Thanks
... more >>
retrieve value from control
Posted by David J Duryea at 1/27/2004 2:18:49 AM
Please if anyone can help, it would be greatly appreciated
I have a VB form on a page called create.aspx with some text fields and
listboxes.
I also have a control on the form
<%@ Register TagPrefix="UserControl" TagName="Categories"
Src="/Categories.ascx" %>
The Control Categories.asc... more >>
TabStrip web control
Posted by Gabriel Enea at 1/26/2004 9:06:57 PM
Hello,
I'm trying to develop my TabStrip web control but seems there is some
troubles in the desing mode.
Initially, I have defined a collection of TabButton in the TabStrip web
control. The TabButton inherits the functionality of the
System.Web.UI.WebControls.Button. In the Render method... more >>
Show messagebox
Posted by Mark Goldin at 1/26/2004 7:23:31 PM
How do I show a message box in C#?
Thanks
... more >>
Where to store client code
Posted by Mark Goldin at 1/26/2004 6:53:24 PM
I want to add a client code - code that will be running on a client side.
Should I create a new class?
Thanks
... more >>
How do I capture events fired in child user controls?
Posted by Justin at 1/26/2004 6:46:04 PM
First, let me give you some background on what I am trying to accomplish. I have a page which contains a custom user control, lets call it Navigator, that has some buttons next, back, etc. Navigator also contains a placeholder in which I load other custom user controls when next or back is clicked... more >>
HtmlInputFile and ClientSide scriptiing
Posted by Jon Turner at 1/26/2004 4:46:31 PM
Is there a way to stuff a filename and path into this control at runtime
on the browser using javascript ? I don't want the user to have to browse
to a file
but just answer a few questions and I compute the filename + path
of where the file will be located.
Just how do I go about this.
Ma... more >>
newbie question
Posted by MS Public at 1/26/2004 1:31:25 PM
I'm new to ASP and I am having some difficulty with understanding how the
events on a dataGrid can be used.
I have a DataGrid on my webform and for example, how do I expect to get the
selectedIndexChanged event? If I set this value using a button, the event
does not seem to fire, what am I mis... more >>
Errors running treview
Posted by Mark at 1/26/2004 1:21:06 PM
Here is my aspx code
<%@ Page language="c#" Codebehind="tiptree.aspx.cs" AutoEventWireup="false" Inherits="TipTree.tiptree" %><%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"... more >>
User control not visible when setting .Visible = true;
Posted by Andrea Williams at 1/26/2004 1:05:19 PM
I'm working with c#, my code is below. The page starts out showing just a
dropdown and a button. When the dropdown is selected and the button is
pressed, it's supposed to show the user controls, however, even though the
code sets it to be visible again, it's still not visible. I have run
thro... more >>
Invalid CurrentPageIndex Value
Posted by Doug Holland at 1/26/2004 10:46:05 AM
Hi Ther
I have a DataGrid on a webform which is causing an HttpException in the following code when it transitions from showing all of the packages in the system (12 on two pages) to only linked packages (3 on one page)
m_DataGrid.DataSource = _list; // _list is an ArrayList instanc
if(m_DataG... more >>
How to add color to dropdownlist based on value from SQL Query Statement.
Posted by uholbrx NO[at]SPAM yahoo.com at 1/26/2004 10:09:13 AM
I want to be able to color code my dropdown list based on the status
of the users within the list. I have a SQL Query (stored Procedure)
that return the following data. (UserID, UserName, Status).
I bind the data like this from returning the data from a
SqlDataReader:
' dropdownli... more >>
Is there a File Transfer Component
Posted by Jon Turner at 1/26/2004 9:57:06 AM
Is there a File Transfer component in .NET or an ActiveX that
will allow you to select a file to transfer from the client to the
server. A Freeby would be the most preferred.
Many thanks
... more >>
Drop Down List appearance ??
Posted by Bobofrut at 1/25/2004 4:11:08 PM
Hi,
I have a problem with appearance of Drop Down List. I can't set this to look
like dropdown list in my VS interface. I want to know how to change the
border and view of little key to flat. There is any way to do it by using
CSS style ?
thank
Chris
... more >>
Excute code from treeview node click
Posted by Mark Goldin at 1/25/2004 9:30:10 AM
I'd like to run some script (on a client) when the user selects a node.
How do I do that?
... more >>
Hide all my web user controls
Posted by Paul Turley at 1/24/2004 8:18:55 PM
There doesn't appear to be a collection of UserControls on a web form. How
can I iterate through all of my web user controls and set each to
Visible=False?
--
Paul Turley, MCSD, MCDBA, MCAD, MSF, MCT, Project+, A+
www.scout-master.com
... more >>
Hyperlink control visited / unvisited behavior - I don't get it
Posted by don NO[at]SPAM pcsnapa.com at 1/24/2004 5:27:21 PM
I am currently using a Hyperlink Column in a Datagrid to display
images of the Datagrid line item when a user clicks on the link. The
visited / unvisited color change of the Hyperlink is very usefull in
letting users know what they have already looked at.
However in my app when a user navigate... more >>
Calling date conversion function before binding the date to a daragrid
Posted by Sanjeeb at 1/24/2004 12:51:05 AM
I want to bind the date fteched from database to a datadrid. Date stored in data base is in UTC Time Format and I want to convert it to Local Time Format before binding it to the data grid. Now the challenege is not converting it to Local Time Format but to bind it to a datagrid. I can always have a... more >>
I've lost a web based propertygrid control!
Posted by Jéjé at 1/24/2004 12:17:57 AM
Hi,
there is 1 or 2 years, I've found a webcontrol which provides the same
propertygrid control (windows control) functionalities, but in an ASP.NET
page.
So this control allow me to edit each property of an object through a web
page.
anyone know where is this webcontrol?
thanks.
J... more >>
User Control, @OutputCache, and varying the cache by property value
Posted by Tom Kiefer at 1/23/2004 4:45:04 PM
Question:
If I have an ASP.NET User Control which defines/exposes a property that the
page can use to specify a mode or data subset for the control to use, is
there a way to tell the @OutputCache directive to vary its cache based on
that property value?
I.e., I have:
<my:control runat=... more >>
Mask Textbox for currency
Posted by Andy Eshtry at 1/23/2004 3:01:17 PM
Dear Friends
I need to show the price which is of SQL datatype "int" in ASP.net textbox
and I need to show the price like this 1000,000,000.
I use .net framework 1.0 not 1.1. Is there an IntputMask or MaskEdit control
in .NET? If so, how can I add it to my toolbox?
Also is datatype SQL int en... more >>
Altering Design-time html of custom control
Posted by Eidolon at 1/23/2004 2:58:00 PM
I have written my own class deriving from WebControl. The HTML that the
control puts out is such that it is not visible to the user, including in
design time. I am trying to add a ControlDesigner to my class, which would
put a visual bit out at design-time, similar to the grey box the designer
p... more >>
richtextbox on web form part 2
Posted by New World Order Pigs at 1/23/2004 2:42:06 PM
My understanding of using the richtextbox control on a web page is that a
person using the web page would need to have .net installed on their local
(not web server) machine. Can someone verify this? I hope it isn't true.
NWOP
... more >>
[2nd try] Form validator problem.
Posted by Girish at 1/23/2004 2:01:28 PM
Trying this question for the second time. Sorry for any inconvenience.
---------------------------------------------------------------------
I have 5 form fields on a webpage that I need to validate to check if they
are empty.
Heres the catch.
The form fields are divided into two groups. 2... more >>
How to alter the ImageURL via VB
Posted by MikeD at 1/23/2004 1:49:24 PM
Hello,
I'm trying to switch the picture displayed in an asp:image control based on
info obtained from a datatable. If the table contains a value of true then I
wish to display one image or else display the other. The code I have to
perform the test is correct, but it doesn't switch the image u... more >>
WebControl, CssStyleCollection and ViewState
Posted by Marri Suliez at 1/23/2004 12:44:31 PM
Does anyone know how the Style property of the WebControl class persists
between calls as if it's added to the ViewState? CssStyleCollection is
not serializable.
The following scenario leads me to believe it is being stored in
ViewState somehow:
1. Add a TextBox and a Button to a form
2.... more >>
DropDownList Problem
Posted by radhakrishnan at 1/23/2004 9:58:59 AM
Hello All,
In a webform i have one dropdownlist and One textbox
user can select the particular item from the dropdownlist and
enter value in the
textbox.
finally he click submit button the entered data are to stored in
a database.
... more >>
Can I get the ID or CommandName of a Server Control from my code behind code?
Posted by mike_remove_spam NO[at]SPAM spam.hydev.co.uk at 1/23/2004 9:48:19 AM
Hi,
I have question that I think should I know the answer to but don't.
In my ASP.NET file, default.aspx I have the following code.
<asp:Button id="Mday1" OnClick="Mday_Click" Text="+" Runat="server"
CommandName="Mday1"></asp:Button>
<asp:Button id="Mday2" OnClick="Mday_Click" Text="+" Ru... more >>
Access DataGrid row/column value?
Posted by Dave at 1/23/2004 7:41:06 AM
Hi
Is there way to access a datagrid's row, column value by *name* in the ItemCreated or ItemDataBound events
The only way I got this to work is using the column index in the DataGridItemEventArgs like..
e.Item.Cells[1].Tex
I would like to use column name such as e.Item.Cells["Company"].Te... more >>
Web application
Posted by Iouri at 1/23/2004 7:16:08 AM
None of the controlls is displayed in the browser
Does any one knows what is the problem and how to fix it
Thank you.... more >>
WebControl & Viewstate
Posted by Chris at 1/22/2004 7:11:05 PM
I'm trying to create a WebControl that creates additional WebControls at runtime and persists their data across the PostBack.
The basic idea is this:
public class WebControl1: System.Web.UI.WebControls.WebControl
{
// Member Variables, Properties, etc...
protected override ... more >>
Validation Control - Force user to enter string not number
Posted by Andy Eshtry at 1/22/2004 4:41:22 PM
I need to validate a textbox control using the validation control so that
user can enter only string (character) type not numbers
I used comparevalidator and set the "Operator" property to "Datatype check"
and "Type" property to "String" but I can enter numbers and this is not I
want.
Also I us... more >>
Validate Datagrid in edit or add (in footer)
Posted by Tamir Kamara at 1/22/2004 4:31:58 PM
Hi,
I have a datagrid that I can edit and insert new rows (with the footer). I
have only one textbox in the edit template and in the footer template. I
also have a required field validator and a custom validator to prevent
duplicate values.
The problem is that when I call the page.validate af... more >>
Adding control & Event Handler at run-time
Posted by mdelvecchio NO[at]SPAM visi.com at 1/22/2004 4:31:03 PM
hello,
For some reason I am having difficulty doing what i thought would be
simple.
i want to loop thru a short list of categories, and for each one
programmatically add new LinkButton control. i think want to be able
to detect which new LinkButton was clicked. so like so:
LinkButton m... more >>
Havin the username show in a label
Posted by Michael Persaud at 1/22/2004 2:10:53 PM
Hi
Im trying to have a label on a page with some text and the user name
Windows auth is on in web config
Integrated security
The username is a domain name
dim uname
uname = user.identity.name
Lbl1.text = "Welcome" & uname& "Some other text"
Please tell me what im doing wrong
and s... more >>
Problem enabling checkbox from client-side javascript - help!
Posted by James Radke at 1/22/2004 1:18:16 PM
Hello,
I have a strange problem. I have a repeater control which has as two
columns checkbox controls. In the repeater ItemDataBound event, I set the
first check box Checked status appropriately based on the value from a field
in the repeater data row. Then, if the first checkbox is not che... more >>
Calendar control as Date Query problem.
Posted by survesh2000 NO[at]SPAM yahoo.com at 1/22/2004 12:49:18 PM
I have a Start_date fieild as datatime on my SQL server (eg)
01-22-2003 2:11:41 PM.
I use 2 Calendar control to generate a datagrid of records that were
created between the 2 dates, namely Beginning Date and Ending Date.
The following query works but when EndDate is today's date it displays
... more >>
Populating DataGrid
Posted by vbGansta at 1/22/2004 9:42:15 AM
Hi there!!
Sorry for the simplicity of this one, but I am just getting my feet wet in
this. How do I populate a data control manually from code? In other words
I want to fill it myself not have it bound to a back end database. Is there
another control that would better suit this? Any code ... more >>
NavigateUrl passing parameters
Posted by MikeD at 1/22/2004 9:31:32 AM
Hello,
I wish to use a Hyperlink control within a repeater but am having trouble
forming the tag. The NavigateURL part is causing the most trouble. I wish to
form a link of the format article.aspx?ArticleNum=2 with the actual number
being pulled from a dataset. Here's what I have so far:
<a... more >>
link text and a href from db table
Posted by Rod Snyder at 1/22/2004 9:30:31 AM
For an asp.net page, I am going to have to pull the text of an a href and
the actual url from two fields of a sql server table. I've done this before
with classic asp where I just put the url value in an a href tag and wrap it
around the text output of the link, but I'm wondering is there is a mo... more >>
dude with web custom controls
Posted by wong chian at 1/22/2004 5:21:06 AM
Hi,
I have this easy piece of code:
public class Box1:System.web.ui.webcontrols.webcontrol
{
protected Button mybutton;
protected override void OnInit()
{
InitializeComponent();
}
private void InitializeComponent()
{
this.Controls.add(mybutton)... more >>
|