all groups > asp.net webcontrols > march 2004
Filter by week: 1 2 3 4 5
Dynamically added controls and AddHandler
Posted by Timo at 3/31/2004 2:11:58 PM
I've added a CheckBox control to my page in a method called from the
Page_Load event (see below) but the handler is not firing. Am I doing
something wrong or is connecting server-side handlers to dynamically added
controls not possible?
Thanks!
Timo
Private Sub Page_Load(ByVal sender As Syst... more >>
Comparevalidator in Datagrid
Posted by matt.torline NO[at]SPAM bissell.com at 3/31/2004 8:24:22 AM
I am trying to use the LessThanEqual operator in a comparevalidator
validation control. The catch is that the comparevalidator is located
in a template column of a datagrid. I am comparing the value of the
datagrid column item against another textbox in the web form. For
some reason the page ... more >>
Custom control inside datagrid
Posted by bitslottery NO[at]SPAM hotmail.com at 3/31/2004 6:38:59 AM
Hi
How do i add custom control as columns in datagrid.(these controls are
derived from webcontrol)
Thanks
Siva... more >>
ListBox control
Posted by Mike at 3/30/2004 11:28:43 PM
Hi,
Is there a chance to show various columns in a ListBox control, =
something like a ListView in VB6?
Thanks
Mike... more >>
Problem formatting text in a ListBox
Posted by Mike at 3/30/2004 5:47:06 PM
Hi,
I am trying to format some text that I retrieve from a DB. I load the =
converted (to string) values in an array and then use the following =
statement:
lstChartAccounts.Items.Add(String.Format("{0:15} {1:50} {2:10} =
{3:10}", value))
I would like my ListBox (WebControl) to sho... more >>
trouble with asp:DataGrid
Posted by Albert Coburn at 3/30/2004 5:31:08 PM
Has anyone been having problems with the DataGrid control when displaying lots of data, say ~5000 rows or more. I have a page where no server side methods (OnSortCommand, OnEditCommand, etc...) I defined will work with >5000 rows of data in the DataGrid. When I limit the data buy using 'select top... more >>
Distinguish Clicks Buttons
Posted by ruca at 3/30/2004 3:02:47 PM
Can I distinguish between this two kinds of OnClick for Button Control:
1- btnPopup_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPopup.Click
2- btnPopup.Attributes.Add("OnClick", "...") //here I have a javascript
function that I want to use.
I want to disti... more >>
Textbox change
Posted by ruca at 3/30/2004 2:22:37 PM
Hi,
I have a textbox that when I write something there that she runs a function.
For that I use the method:
[textboxname]_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles [textboxname].TextChanged
I put in textbox properties the AutoPostBack = true.
The pro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
All my validators no longer work in Server 2003 what do I set up?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 3/30/2004 1:47:09 PM
I was using XP Pro. asp.net and .net 1.1.4322; I now have the pages on
Windows Server 2003. I do not have any compiled code. The validators
simply don't work at all. Nothing; not an error - nothing. They
still work fine on the other machine. Any ideas? Thank you.... more >>
Docs on Web TreeView ...
Posted by Polaris at 3/30/2004 1:16:05 PM
hi: where can I find some documentation on how to use the web version
TreeView control? I downloaded it but have no idea how to implement it.
thanks!
... more >>
how to add an HtmlInputRadioButton to an HtmlTableCell ?
Posted by Timo at 3/30/2004 12:51:21 PM
I'm trying to figure out to how add to my page, at runtime, an HtmlTable
table with 2 colums, the first containing an HtmlInputRadioButton, the
second column containing text. I'd like to use the Page.Controls.Add()
approach if possible, rather than build the HTML as a string. I've got the
table... more >>
adding Flow Layout Panel at runtime?
Posted by Timo at 3/30/2004 11:51:33 AM
A few questions.
Is it possible to add a Flow Layout Panel dynamically at runtime using
Page.Controls.Add()?
Can you add HtmlInputRadioButtons dynamically so they appear within that
DIV? I'm able to add them to the page but can't figure out how to put them
inside a particular DIV.
Is suc... more >>
ASCX
Posted by A-PK at 3/30/2004 10:50:00 AM
Hi, I have notice some file with extension *.ascx
Could someone tell me more about it.
I am currently got a fully done web project, but the files with extension
*.aspx
Is there any way to compile such file to *.ascx.
Or perhaps someone could tell me how to create *.ascx
some useful referen... more >>
Single Selection of RadioButton in DataGrid
Posted by KingBEE at 3/30/2004 10:04:08 AM
Dear all experts,
How do I create radiobutton with only single-selection in DataGrid?
I am using the template columns.
Please help me...
thank you !!
... more >>
Add my own row to to DataGrid at runtime.
Posted by Eidolon at 3/30/2004 9:48:46 AM
I have a datagrid all nicely bound up to a dataset, works perfect.
What i would like to do is to add in my own row at the top of the grid
(between the header and the data), without having to munge in a false row of
data into the dataset's table.
I want to be able to provide a row up there ... more >>
DDLB user control.. wherre to put code..
Posted by Adrian Parker at 3/30/2004 8:26:59 AM
I have a user control that dynamically creates a dropdownlist.. when an entry in that is selected, it creates a 2nd ddlb with sub
codes and when that is selected it creates another ddlb with more sub codes etc etc.. Each of these drop downs return part of a
code that when combined will give the a... more >>
DataBind 2 DropDownLists with one query
Posted by jeroenklooster NO[at]SPAM hotmail.com at 3/30/2004 6:07:10 AM
Hi all!
I'm trying to populate two dropdownlists with only one query.
//objConn is initialized and open:
SqlCommand objCommand = new SqlCommand();
objCommand.Connection = objConn;
objCommand.CommandText = "SELECT * FROM Team";
SqlDataReader objReader = objCommand.ExecuteReader();
HomeTe... more >>
Request[ListBoxValue] question
Posted by Tom at 3/30/2004 1:31:09 AM
Hi
Here is the C# code
[code
protected string SelectedUserID
ge
return ViewState["SelectedUserIDs"] == null? "":(string)ViewState["SelectedUserIDs"]
se
ViewState["SelectedUserIDs"] = value
this.SelectedUserIDs = Request["listUser"]; //I put this line of code in PostBa... more >>
asp:checkbox with javascript
Posted by Tom at 3/29/2004 10:51:09 PM
Javascript
[code
function ck1(
//ft.MessageContent.value += ft.ck1.value
ft.getElementById('MessageContent').innerHTML += ft.getElementById('ck1').value
There are 2 types of checkbox, one is asp:checkbox, another is html checkbox
(1
<asp:checkbox id="ck1" runat="server"><%= thi... more >>
Validation controls work differently on remote server
Posted by Peter Afonin at 3/29/2004 9:37:51 PM
Hello:
I have several aspx pages with multiple validation controls. On my PC they
work as they should - if validation fails, the error messages are displayed
and the page is not submitted.
When I upload my web site to the remote server (which is my web hosting
provider's server) they work d... more >>
by ref versus by val
Posted by jdn at 3/29/2004 7:33:19 PM
Wondering about which is better in the following scenario:
I have common code that I use for paging/sorting/etc. on a datagrid, and so
have pulled out into a common class that I then call on individual web
pages.
There (at least) 2 ways of doing this:
1) The common code is a method where ... more >>
Error using TreeView control
Posted by Sarah at 3/29/2004 3:46:41 PM
When I run my page with a treeview control, I get the following error:
htmlfile: Dynamic Link Library (DLL) initialization routine failed
It jumps to the treeview.htc in the blurFilter function with the
if(oItem.filters.length>0) line highlighted.
Has anyone encountered this error previous... more >>
RadioButtonList label attributes at runtime
Posted by Timo at 3/29/2004 1:31:12 PM
I'm populating a RadioButtonList at runtime by adding ListItems to its Items
collection. My data is coming from the rows of a DataTable. I'd like to do
this (pseudocode):
For each R in T.Rows
'// create a new list item: Value = R(0) and Text = R(1)
If R("mycode") = 10 '// special ty... more >>
Panel control overlap with the table below in Netscape
Posted by nonospam NO[at]SPAM wowway.com at 3/29/2004 12:49:01 PM
In Netscape, if you set the HorizontalAlign to right. The content in
the panel is overlap with a table below. (I am using flow layout).
In Netscape, a panel is treated as a table with align=right. this
makes the content overlap with another table below.
The follow will display overlaped cont... more >>
creating checkboxlist from arraylist
Posted by DotNetJunkies User at 3/29/2004 11:49:52 AM
Hi,
I need to create a checkbox list that includes the DataValueField along with the DataTextField. The concept is mentioned on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconcheckboxlistwebservercontrol.asp
I am in the learning stage of ASP.net so I am a... more >>
ERROR: Multiple controls with the same ID
Posted by Demon420 at 3/29/2004 9:44:04 AM
I am receiving the Multiple Controls with the same ID error...
The MS KB article here describes my problem:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;834608
Where I can download the hotfix that is mentioned in the article, OR, how
can I fix the problem...?
Thanks
... more >>
User Control & Page class
Posted by richard.astbury NO[at]SPAM nbs.nhs.uk at 3/29/2004 8:52:16 AM
I'm having trouble getting a user control to read the properties of
the parent page. The parent page is written in VB.net, the control in
C#.
Code from the Control:
-------------------------------
<%@ Control className="CommunityElement" Language="c#" %>
<%@ Import namespace="NamespaceOfTh... more >>
Lisboxes asp .net ---> Index problems
Posted by pgradnitzer NO[at]SPAM aon.at at 3/29/2004 1:30:29 AM
Hi all!
Can somebody help me about the System.Web.UI.WebControls.ListBox???
My Problem is that when i call the Function "SelectedIndex()", this
function always return -1. Somebody no the problem!
reegards
pete... more >>
Web grid issues
Posted by Vaclav Kabat at 3/29/2004 12:16:08 AM
Hi,
might be trivial question, I haven't found anything useful on the internet on here though.
a) push buttons (Update, Edit) do not invoke events.. Link buttons work..
b) After submitting row in edit mode, update handler is called, however, TextBox instance looked up in event argument (DataGr... more >>
Dynamic Controls in Code Behind
Posted by walterd at 3/28/2004 4:11:55 PM
Hi All
I can successfully create dynamic controls, validated their data input and
dynamically destroy them using inline code.
The problem is when I apply the same technic using code-behind. The controls
are created successfully, but I cannot loop through them to check their
contents. Ex.:
... more >>
bug in HttpWebRequest?
Posted by z. f. at 3/28/2004 2:56:59 PM
using HttpWebRequest to make HTTP request t web server and get resulting
HTML in the response, when the response includes hebrew characters (not
unicode) these characters are moved away after
StreamReader reader = new StreamReader ( response.GetResponseStream() );
strHTML = reader.ReadToEnd();... more >>
listbox.setselected
Posted by susie at 3/28/2004 9:06:08 AM
I have a line of code in button click for listbox control in asp.net as follow
Listbox.SetSelected(1,true
When I run it , it generates the following error
BC30456: 'SetSelected' is not a member of 'System.Web.UI.WebControls.ListBox'
What namespace should I import to my asp.net code? Thank
... more >>
textbox displays " " from datagrid null reference
Posted by john at 3/28/2004 8:16:05 AM
Datagrid dg, Datasource: MS Access query containing memo field mymem. In the database, mymem is not required and zero length is allowed (not every record will have a memo).
Datagrid column for memo field is NOT visible - only when user clicks on a specific row -- then I show a textbox and set text... more >>
Can not access properties of dynamically loaded control
Posted by Martin at 3/27/2004 6:26:26 PM
I am programmatically loading a control to a PlaceHolder control. However it
seems impossible to access the properties of the control. I always get an
error message that says the property I am looking for is not a member of
PlaceHolder!
Any help will be appreciated.
... more >>
DataGrid Binding Problem
Posted by Wayne Wengert at 3/27/2004 4:06:10 PM
I am trying to create an aspx page that displays a datagrid which contains
the result of a query when the page loads. I am using WebMatrix. I tested
the data adapter and it returns the correcct data but when I load the page,
the datagrid is empty. Any suggestions appreciated.
Wayne
========... more >>
CSS Doubts/Questions
Posted by Carlos Cruz at 3/27/2004 12:26:10 PM
Hi,
How can I have 2 asp:hyperlink at the same aspx page but with diferent
styles ?
I've tryed this:
A:visited
{
color: #febc11;
text-decoration: underline;
}
A.Menu:visited
{
font-weight: bold;
color: #febc11;
text-decoration: underline;
}
.... but can I tell each control t... more >>
Stopping repeated transactions on ASP.NET button
Posted by arc at 3/26/2004 11:41:29 PM
I have a button that commits a transaction on click.
Considering it takes about 4 secs for a transaction, it allows to be clicked
several times (will not work if button is just disabled on commit) during
this period and then collects all these clicks as several transactions with
same data. How c... more >>
Displaying messages/errors to users. Opinions?
Posted by NewsMonkey at 3/26/2004 7:50:36 PM
Hi All,
I have been working on a few ASP.NET applications recently that access
database resources frequently. I have been trying to find a consistent
way of displaying both the success and failure of various operations to
the user. For example, if a new record is successfully added then I... more >>
Call popup window
Posted by ruca at 3/26/2004 3:06:36 PM
I have a .JS file that permits to open a popup window calling the fiunction
CreateWnd(...)
The question is How can I call the popup window by selecting an item in a
datagrid?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
... more >>
how to save data from dynamic textboxes
Posted by jade at 3/26/2004 2:46:06 PM
On my form, based on the value user selects from a dropdown list, a group of textboxes will be generated dynamicly.
Now the problem I'm having is how to save data entered into dynamic textboxes. I know because of the nature of dynamic controlls, input is gone before submit button is hit. Is there ... more >>
Adding script to page from web control
Posted by Dan at 3/26/2004 2:01:44 PM
Hi,=20
In my simple web control I am trying to add the following script onto =
the page
Protected Overrides Sub AddAttributesToRender(ByVal writer As =
System.Web.UI.HtmlTextWriter)
Page.RegisterClientScriptBlock("ccr", "<SCRIPT Language=3DVBScript>" & =
vbCrLf & _
"function test(inp)" ... more >>
Using JavaScript and Response.Redirect
Posted by ruca at 3/26/2004 11:22:58 AM
I have a .JS file that opens a popup window.
Here is the question...
I have a DataGrid with a select command that in this case, when I choose
"Select", I want to open my popup window.
The question is if I can do something like this in the function that is the
target of select command of d... more >>
commas in text fields to save as a numeric value
Posted by Dan at 3/26/2004 10:57:03 AM
I have a financial application.
When I populate text boxes with financial numbers I don't group the =
digits via a comma. =20
For example. I'll use 500000 instead of 500,000.
Obviously the latter is easier to read by our accounting guys.
The problem is when saving 500,000. It will save... more >>
Textbox background color Yellow??
Posted by luc.ouimet NO[at]SPAM gov.yk.ca at 3/26/2004 9:14:42 AM
When a textbox ID or label.text match a known field name, for example
id="email", it changes the textbox background color to yellow.
Is there a way to disable this feature as it doesn't match my page
colors.
Thanks... more >>
Composite Control Namespace problem
Posted by Dima Maltsev at 3/25/2004 8:21:08 PM
Hello
I am developing a composite control and I ran into the namespace problem. It boils down to the following simple example
Create a Test ASP.NET application with a Test1.aspx page. Drop an ASP.NET Label control on this page. Change the namespace of the project and of the Test1 class to the "La... more >>
how to create web controls ????
Posted by Gabriel Arteaga at 3/25/2004 6:27:56 PM
Somebody can indicate some article to me where explains like making
WebControls of user?
thank you
... more >>
Unable to display custom control in the toolbox of Visual Studio IDE
Posted by Edward at 3/25/2004 3:26:06 PM
Hello
I'm learning to develop custom server controls and right now I'm at the stage of creating custom controls with Design-Time attributes. Currently, when I compile the 2 .cs files into a library, I can't get the Visual Studio IDE to import the control into the toolbox. It gives me the error: "T... more >>
Aligning Text in a Label Control (asp.net)
Posted by fripper at 3/25/2004 1:04:08 PM
Oh, VB 6.0 was so simple ... but how in VB .Net do I set the alignment of
the text in a label control (in an asp.net app) so that it is centered
vertically and
horizontally? I know that this is a question for .Net 101 students but I
have not been able to find an answer by looking at .Net's Help... more >>
How do I set the first month displayed with the Calendar control
Posted by Colin Colin at 3/25/2004 12:40:14 PM
I am working with the ASP.NET Calendar control (below is my code). How
in the world do I set it so the default month is not the current month,
but set it to a variable?
Below is Calendar.aspx:
<%@ Page Language="vb" %>
<script runat="server">
Private Sub Calendar1_SelectionChanged(s... more >>
ASP.NET Webcontrols Treeview and checkboxes
Posted by rowan NO[at]SPAM blaqflame.net at 3/25/2004 10:31:29 AM
I'm using the MS Treeview Webcontrol to present a treeview of a
hierarchial parts structure. My client wanted to select certain parts
and then do something with only those, so I turned on checkboxes.
Since I'm adding data using the .Add method I can say which nodes have
checkboxes and which do... more >>
|