all groups > asp.net webcontrols > june 2004 > threads for june 15 - 21, 2004
Filter by week: 1 2 3 4 5
LinkButton Inherited from WebControl problem?
Posted by Dave at 6/21/2004 7:39:02 PM
Hi,
I'm inheriting a LinkButton from a WebControl....
public class LinkButtonFromWebControl : System.Web.UI.WebControls.WebControl
However, in the aspx, if I add the "CssClass=", "CausesValidation=", etc attributes to this control...
<Custom:LinkButtonFromWebControl id="LinkButton3" run... more >>
Leave button depressed after being pressed
Posted by Novice at 6/21/2004 2:52:01 PM
Hey all, can the asp:button be used like a toggle button?
I don't really need to use the asp:button, I basically just need a toggle button that looks like a regular input button that will stay depressed once a user presses it.
I plan on having two buttons (A and B) on a webpage. When the pag... more >>
Change text
Posted by ruca at 6/21/2004 1:04:05 PM
Hi gurus,
I have a datagrid with a linkbutton to see details of a specified item of
the grid. What I want to do is to change the caption of this button to the
first 10 caracteres of the field present in my Database. This field is a
description field. Then when I click in one of the button the ... more >>
Assign an attribute to all my web controls
Posted by Diego at 6/21/2004 10:59:21 AM
Hi,
I want assing an attribute to all my web controls, i thought with
Page.Controls property but i don´t know how that works.
How can i iterate Page.Controls and set an attribute like Enable=false in
all my web controls?????
... more >>
Treeview selectedIndexNode
Posted by Jake at 6/20/2004 9:32:51 PM
Hi all,
Im trying to set the selected node in a treeview to a
specific node with javascript to prevent the server trip.
I have tried both the following but nothing seems to
happen:
trvHome.selectedNodeIndex = 1
trvHome.selectedIndex = 1
Any assistance would be great.
Thanks in adva... more >>
Image Height and Width
Posted by Thom Little at 6/20/2004 1:28:47 PM
I have images of varying sizes on the server and would like to display them
on an aspx. This is easy to do (of course).
imgTest.ImageUrl = "images/image01.jpg" ;
I would like to reserve the display area before the images are loaded.
How can I determine the original height and width of... more >>
Stop some events from occuring in treeview control
Posted by Martin at 6/19/2004 5:28:13 PM
Hi,
I'm usung tree view control in my ASP.Net project.
I have autopostback enabled because I want to take action immediately if the
selected index changes. However I have no interest in other events, like
node expand and collapse, but currently these also cause a postback (to be
expected).... more >>
Really need to solve this SQL problem to finish this web site.
Posted by Miguel Dias Moura at 6/18/2004 10:06:16 PM
Hi,
i created a dataSet in an ASP.Net page which:
1. Loads all fields from each database record.
2. Creates a new field using 2 of the existing fields: FullName = FirstName
+ ' ' + LastName
3. Loads only the record which has the same FullName as the variable Name
passed in the URL to this... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Determining which handlers are listening for an event
Posted by Mombiatch at 6/18/2004 4:59:46 PM
Hi
Is there any way to list the handlers that are listening on an event when
one is debugging? I'm trying to figure out why an event handler is
... more >>
Multiline TextBox sometines not updated
Posted by Jean Jacques Serpoul at 6/18/2004 4:06:48 PM
Hello,
I am using a multiline Textbox (Web server control - ASPNET 1.1)
I update text with a simple myTextBox.Text="bla, bla, ....".
With a long text, the Texbox is sometimes empty, and text appears only with
a new page reloading (by user)
I don't know if i can do something to force reloading f... more >>
Responding to events in dynamically created web controls
Posted by JezB at 6/18/2004 3:26:20 PM
I'm adding WebControl objects to a Page dynamically on Page_Load, but I'm
having trouble attaching events to these. For example, adding an image
button :-
ImageButton nb = new ImageButton();
nb.ImageUrl = "text.gif";
nb.ToolTip = "Edit Text";
nb.Click += new ImageClickEventHandler(b1_Click);... more >>
assign dynamic attributes in web controls in aspx file
Posted by Diego at 6/17/2004 6:52:59 PM
I want to assign dynamic attributes in web controls but in the aspx file
directly, is it posible or it works only in code behind??
i thought the follwing code.....
<asp:TextBox Runat=Server ID="dt45" ToolTip='<%="Test"%>'/>
is it possible to do something like that?
... more >>
Simple Required Field and Range Validator Problem
Posted by Mauricio Bastos at 6/17/2004 4:44:10 PM
Hi there !
I have a required field validator and a range validator on a page , working
perfectly on my Development Servers.
Anyway it doesnt work on my Production Server. It simply doesn´t validate
the field or require the field.
Well, I copied the compiled page and found a difference :
De... more >>
ImageButton Rendering?
Posted by localhost at 6/17/2004 4:29:35 PM
I have an ImageButton that renders this HTML:
<input
type="image" name="Send" id="Send" src="send.gif" border="0"
/>
I would like to to render to this instead:
<a href="#"><img id="Send" src="send.gif" border="0" /></a>
Because I have style sheets that manage img tags but not inpu... more >>
Dynamic Template Column - retaining value on postback
Posted by Etrast at 6/17/2004 2:30:02 PM
I am adding dynamic template columns to a datagrid. The template column contains a textbox which the user can edit. When I am rendering it initially, the text in the textbox is bound to a column in the dataset. Everything works fine till this point.
After the user makes changes to the textbox and... more >>
Dynamic Template Column - retaining value on postback
Posted by Etrast at 6/17/2004 2:29:01 PM
I am adding dynamic template columns to a datagrid. The template column contains a textbox which the user can edit. When I am rendering it initially, the text in the textbox is bound to a column in the dataset. Everything works fine till this point.
After the user makes changes to the textbox and... more >>
iterate viewstate
Posted by sri_san NO[at]SPAM mailcity.com at 6/17/2004 12:17:50 PM
Hello Group,
Can I iterate through the viewstate collection
corresponding to a page and if so, how do i go abt it? Any help would
be great!!
Thanks,
Sam.... more >>
Paste Image Into a web page
Posted by Mike Smith at 6/17/2004 11:08:36 AM
Ok, I'm asking for the world here :)
What I'm trying to do is come up with a way for a user to copy an image
(JPG/GIF) to their clipboard and paste it into a web page. The web page
would be a .Net web form. I'm thinking I'd have to convert the image on the
clipboard to some sort of encoded s... more >>
Can i control my web controls with javascript?
Posted by aslantifosi at 6/17/2004 10:36:42 AM
please an answer
... more >>
how can HyperLink add a OnClick eventHandler?
Posted by yesming2002 at 6/17/2004 1:40:02 AM
hi~~
System.Web.UI.WebControls.HyperLink doesn't supply the OnClick eventHandler.
i inherit the HyperLink class and want to add a OnClick event.But it dosen't work.
here is the code. THX for any reply!
public class MyLink:System.Web.UI.WebControls.HyperLink
{
public event System.E... more >>
calling JavaScript function from code-behind
Posted by Alexander Kaplunov at 6/16/2004 4:15:39 PM
Hello,
I was wondering if there is a way to call a JavaScript function from
code-behind. I know that you can add a "onclick" attribute to a button but
that is not what I'm looking for. What I'm looking for is something similar
to this:
Client side:
function test()
{
alert("Got test... more >>
Advice on when to use an plain HTML control vs a Web Control
Posted by Keith-Earl at 6/16/2004 2:54:51 PM
Can anyone point me to a concise article on when to use a plain HTML <INPUT
type="Text"> tag vs a Web Form's Web Control? I know the latter renders
like the former (when I View Source), but the Web Control allows me a lot of
flexibility on the server side. But now I want to use JScript on the c... more >>
Advice regarding best use of HTML / Web Controls in UserControl
Posted by Brett at 6/16/2004 12:04:34 PM
Preface: I am a complete neophyte to ASP.NET development. Unfortunately
the same holds true with respect to ASP development. I do consider myself
advanced as far as OOP development with the .NET Framework goes.
My question: I want to create a UserControl that will become part of a page
tem... more >>
radiobuttonlist
Posted by John Hopper at 6/16/2004 11:52:06 AM
When I databind an asp radiolistbutton to a datareader the resulting list always displays one less record than is returned by the query. Also any query returning only 1 row displays nothing after binding.
Can anyone tell me why??
Thanks!... more >>
Pop-up?message box?
Posted by Chris at 6/16/2004 8:07:11 AM
What is the best way to display pop-up messages, i.e. Confirmation, etc.?
I'm using vb in asp.net.
I've read another posting on the 'confirmation' subject but am a little unclear.
I'd like to confirm a delete operation using a pop-up. On button, once clicked, goes straight to the Sub that delet... more >>
Calendar Control Question
Posted by David Hamilton via .NET 247 at 6/16/2004 7:24:08 AM
I'm having trouble with the Calendar Class=2E I'm setting it's=
selected date in the page_load event, which is being done=2E The=
but control doesn't then display the month corresponding to it's=
selected date, rather it just displays the current month=
instead=2E If I surf the control to it... more >>
ASPX standard validation failing for Mozilla and Opera web browsers
Posted by peshrad at 6/15/2004 5:11:54 PM
I'm using Windows 2K, .NET 1.1, and Visual Studio .NET.
In my ASPX app I use standard validators like RequiredFieldValidator.
The validators work just fine for IE 6.0.
They also work in a very simple ASPX Web app
for other web browsers like Mozilla 1.4, Mozilla 1.6, Opera 7.11.
However, i... more >>
drop down list
Posted by chris at 6/15/2004 4:52:01 PM
I've searched postings, etc. need help on dropdownlist. Can you make the item name equal to more than one data field. I.e. in the example below I'd liek to make the viewable text USER_FNAME USER_LNAME. I've tried to add like:
ddusernames.DataTextField = ( "USER_FNAME" ) & " " & ( "USER_LNAME" )
an... more >>
Create Control Completely Programmatically?
Posted by localhost at 6/15/2004 2:44:45 PM
I want to make a custom ASP.NET control (internally made up of a DIV
with a table and some elements) completely in code. I do not want to
make an ascx, I just want to make a .cs that I can instance from my
ASP.NET page, add it to the Page controls collection, and have it
display.
How can I... more >>
Check existence of value in drop down list
Posted by Andy at 6/15/2004 10:31:01 AM
Is there a way to check and see if a value exists in a drop down list?
I want to check and see if the value "No Status" is in a drop down list, and if it isn't, then I want to add it. I know the syntax to add it to the drop down list, but am not sure if there is a way to check if it is already ther... more >>
Newbie ValidationSummary Control Question
Posted by Benign Vanilla at 6/15/2004 9:52:30 AM
My apologies if this is an ignorant question. I am into my third week with
..NET...
I have placed validators on my form controls, and have placed a
ValidationSummary control at the top of my aspx. The VS control is below a
paragraph of text, and just above the form. My problem is that I now ha... more >>
Javascript error is stopping __doPostBack working
Posted by Mike Owen at 6/15/2004 8:25:01 AM
Postback suddenly stopped working on my web page, where previous it had been working fine.
The error message "Expected ';' on line number 380" is shown to occur during page load, which I found by changing the 'SymError' function as below:
<script language="JavaScript">
<!--
function SymError... more >>
Problem installing IEWebControls With Windows Server 2003
Posted by Denis at 6/15/2004 7:22:01 AM
I have some problems when trying to install ieWebControls to a Windows Server 2003 system. The version I am usign is : 1.0.2.226.
The installation stop right at the beginning. We have an error log but we really don't know what exactly the error is.
Here is a paste of the error log :
=== Verbo... more >>
Pivot table control
Posted by PontiMax at 6/15/2004 4:15:01 AM
Hi,
does anyone know some handy pivot table server controls?
I came across Chart FX OLAP (including advanced pivot functionality), but the license costs are about €3000 per server - which is way too much. Then there are the MS Office Web Controls; unfortunately these are ActiveX controls th... more >>
|