all groups > asp.net webcontrols > october 2005
Filter by week: 1 2 3 4 5
Rounded corner button
Posted by RahulH at 10/31/2005 3:30:05 PM
Hi,
I am a novice to System.Drawing namespace. I want to create a web custom
button control with rounded images.
I can create rounded corners, and image of text. but is there a way that i
can now join these images into a single image.
Thanks in advance,
RahulH... more >>
error on query of derived datatable in dataset
Posted by cindy at 10/31/2005 9:49:42 AM
Get data into datatable, add to dataset dsSearch "
Get data into datatable, add to dataset dsSearch
Using In-Memory SQL Engine join the tables and select the filenames from the
join, add to dataset dsSearch
CODE ON
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3994&... more >>
Value and text are nothing on postback if ddl is filled client sid
Posted by Chris Lane at 10/31/2005 7:59:11 AM
Hi,
Can somebody please explain why after postback a dropdownlist
selectedindex.value and text are nothing if the dropdownlist was populated
clientside with javascript.
Are there any workarounds besides using the request object to get the value
of the dropdownlist?
Thanks,
Chris... more >>
referring to a third-party contol in window.onload
Posted by dchillman at 10/31/2005 6:27:01 AM
I have a user control page (ascx) that contains a third-party spreasheet
control. When the user clicks the insert button on the spreadsheet control,
I am trying to pre-insert values into the new row. If I put the spreadsheet
control directly on as aspx page, I can do this in the window.onloa... more >>
Events fired by custom controls not caught
Posted by Richard Lionheart at 10/31/2005 12:43:00 AM
Hi All
I'm following the tutorial at http://www.15seconds.com/issue/020319.htm to
build a custom control consisting of three built-in ASP.NET controls: a
textbox, button and calendar. The custom control builds correctly and
displays itself correctly in a parent webform.
However, the ca... more >>
Checkbox in datagrid
Posted by Tommy at 10/30/2005 2:57:27 PM
I have a datagrid with a checkbox in one col. It's bound to a row in my
table.
I need to allow my user to select multiple records then process each one
when they click a button.
How can i iterate through each row in my grid and check the checkbox's
checked property? I have my pk hidden i... more >>
Accessing the properties of a dynamically loaded control
Posted by Vivek Sharma at 10/30/2005 12:00:00 AM
Hi There,
I have a situation where I wish to load the controls dynamically on the
basis of user role. Hence, I am using this code.
if (UserRole == "IS Administrator")
{
Control UC1 = LoadControl("../UserControls/ISJob/uctlJobGeneral.ascx");
plhISGeneral.Controls.Add(UC1);
... more >>
Displaying a Graphic in the cell of a datagrid
Posted by Andrew Chalk at 10/29/2005 5:41:28 PM
I want one column of my DataGrid to display the same graphic in each row.
Should I do this with a templated column?
If so, what should the HTML look like in the specification?
Many thanks.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DropDownList SelectedIndex won't set
Posted by Meagan at 10/29/2005 5:09:49 AM
Hello,
I am stumped...
during Page_Load, the dropdownlist gets the right index integer set to it
but doesn't display the correct item, instead always shows the first item.
I did "Trace.Write(cmbAvail.SelectedIndex.ToString());" and it returns the
proper index but then doesn't display prope... more >>
How to programmatically set the onSelectionChanged event for Calendar control
Posted by TheLostMarble via DotNetMonster.com at 10/28/2005 8:21:14 PM
Does anyone know of a way to programmatically set the onSelectionChanged
event of a Calendar control (using VB)?
I have a calendar control that I define as follows:
<html>
<body>
...
<asp:calendar id="calSelectNewDate" runat="server">
<todaydaystyle cssclass="calTodaysDate" />
<d... more >>
TreeView Webcontrol dynamic adding nodes problems
Posted by lourivas at 10/28/2005 12:11:32 PM
Hi,
i'm using Treeview IE webcontrol and trying to add nodes dynamically
when a user clicks on a button. The problem occurs when a user clicks
on a second time on that button to add a second child node. It=B4s
overrding the fist one.
Below is a code that run each time a user clicks on that bu... more >>
Dynamically Created Controls Not Firing Events
Posted by Robert Sheppard at 10/28/2005 9:44:02 AM
I have been wrestling with this problem for a few days and need some input.
I have created a standard webform that contains a TEXTBOX, BUTTON and a
USERCONTROL. I want to be able to input information into the textbox and
then click the button and have a list of results come back from my database.... more >>
User Control Reference
Posted by TCORDON at 10/28/2005 9:26:13 AM
I have created a copuple of user controls for my web app, but when I add any
one of the to a web form I cannot reference it without mannualy typing:
"Protected Withevents MyControl as MyUserControl" Is there any way to have
the control add this line by itself when it is dropped into a web form... more >>
How to change languages in asp web controls
Posted by Daniele Piccinini at 10/28/2005 8:18:01 AM
Hi All,
I've developed an asp .net application that use a web calendar control. On
my dev
machine i've Italian IIS and the text in the calendar control are visualized
in italian. I need to install the application on a customer machine with MS
Windows SBS 2003 English; in that case the text o... more >>
Wizard control (v2) - Default buttons
Posted by Kirk Jackson at 10/28/2005 3:21:03 AM
Hi,
Is there a way to set the default button in a WizardStep?
For a regular ASP.NET page, I can set the defaultbutton of a Panel to one of
the buttons within the panel, but with the wizard I don't appear to be able
to set the "Next" button as the default.
This causes problems, as pressing... more >>
Select a row in datagrid (on left click) without postback
Posted by mystiqu at 10/28/2005 12:00:00 AM
Hi!
I wonder if it is possible to select a full row in the datagrid when
user left-clicks in the grid, without postback!
I guess it can be done using javascript, but I don´t know how.
Any help is appreciated.
Regards
Mikae
--
mystiq
----------------------------------------------... more >>
accessing other web controls properties
Posted by dmalhotr2001 NO[at]SPAM yahoo.com at 10/27/2005 7:41:01 PM
Hi,
I have 2 web controls:
one.ascx
two.ascx
one.ascx is embedded within two.ascx.
one.ascx has a button called clear within it. This clear button posts
back when pressed.
both these user controls are within the same aspx page.
I want to know within two.ascx when the clear button ... more >>
Problem in ASP.net with crystal report.
Posted by Devendra at 10/27/2005 10:23:39 AM
Hi,
I am deploying an application which has crystal reports.
I have a server which has only dotnet framework installed. I copied the dll
files from the local server and add them in GAC . I copied the dlls in a
c:/AnyFolder folder....
Is it required to be added in the system folder ...
Th... more >>
Backspace in Readonly Textbox
Posted by John Walker at 10/27/2005 8:18:27 AM
Hi,
I have a textbox in a datagrid and on an onchange event that field may
become readonly. The problem is when the user highlights the text in that
box and presses the backspace button because Explorer with recognize that as
a user request to go to the previous web page. Is there a was to ... more >>
LinkButton Problem
Posted by Sam Solomon at 10/26/2005 9:12:08 AM
Dear All,
I want to know that how can I display a link button in a string and use its
events. Below is my string:
lblError.Text="Unfortunately your details were not found in the
database.Please try again contact <a
href=mailto:abcd@hotmail.com>abc@hotmail.com</a> or ring 22222";
... more >>
DHTML Edit Control
Posted by Chirstian Ruhland at 10/26/2005 7:04:02 AM
Hello,
i want to use the DHTML Edit Control for IE 5 in VisualStudio.net
Webform.aspx.
if i register the control (Extras,Toolbox anpassen) and drag it in my form,
i cannot access the Object in the codebehind xxx.aspx.vb
There is no eventhandler.
What is wrong? Can you help me.
b... more >>
properties
Posted by Calvin X at 10/25/2005 4:51:11 PM
How do i get my public properties on a webcontrol to show up on the =
designer so I can set them on the page they are residing without having =
to set them via code?
I have tried the following:
using System.ComponentModel;
......=20
[Category("Appearance"), DefaultValue("nothing import... more >>
disabled textbox test
Posted by mkiger at 10/25/2005 12:25:03 PM
Hey Guys,
I have an asp.net (VB.NET) app and on one page I want certain textboxes to
appear like lables based on certain permissions. I've disabled them, set
thier borderstyle to none and set thier color to transparent and almost
doest. The only proble is that the text has that look like it's... more >>
Dynamic controls --Button click
Posted by simmaneni NO[at]SPAM fmtinv.com at 10/25/2005 12:05:36 PM
Hello,
I have created few dynamic text controls and I have a button which
becomes visible when these controls are created. After I enter some
text and press button, my text in dynamic text boxes is diappearing.
Please advice
Thanks
... more >>
RegularFieldValidator and SS#
Posted by mark at 10/25/2005 11:29:49 AM
I'm trying to validate a SS# entered into a asp:textbox on the webpage.
Here is the expression I'm using for ss# ^\d{3}-\d{2}-\d{4}$
I've also tried to replace d with S and s just incase there was an issue
with the numbers. It doesn't matter what format I enter the validation
always fails.
A... more >>
UserControl not refreshing page or its content
Posted by TCORDON at 10/25/2005 11:08:20 AM
I have a user control that contains 2 image buttons, when you click one of
them, both must change the image source, the thing is that the first time
you click any one of them the page appears to do a postbak, but the image
source or the image displayed does not change until I click one of the
im... more >>
HI - Crystal report generation
Posted by Devendra at 10/25/2005 11:03:24 AM
Hi,
I am using ASP.NET 2.0 beta.
I want to create a crystal report and convert it into a pdf and flush it on
the browser.
first of all can i create a crystal report using .ttx file i.e. the Field
definition what we used to do in ASP times.
If yes then can any one tell me how to do that.
I... more >>
Htmltable cache?
Posted by fnews.telia.net at 10/25/2005 9:37:54 AM
Hello!
I'm building a htmltable in vb and when it is done I'll set some of the
columns to not visible. When I then swithing from values to procent the page
don't know which value is the right. The page is still keeping the old
values (of some). It's not logical behavior from the browser.
I... more >>
Ragged Display - Which Control?
Posted by Mike Robbins at 10/25/2005 7:55:35 AM
I need to output information in the following format. I do not need
in-place editing.
Personnel
Room Bed Cap Name Company Bed Cap Name
Company
1 LL W Smith, Joe Acme LR E
Jones, Joe Apex
UL W G... more >>
RequiredFieldValidator does not Validate control
Posted by sn NO[at]SPAM artsolution.net at 10/25/2005 5:29:55 AM
Hi All,
I have a strange behavior here. I have a page with several TextBox and
there is a RequiredFieldValidator for some of these TextBox.
My page works perfectly fine on my Development computer, but on the
production server. The RequiredFieldValidators are not working
properly. Only the t... more >>
datalist
Posted by Petr SIMUNEK at 10/24/2005 4:46:37 PM
Is there a way to render something before the DATALIST
encapsulation table gets rendered ? So that I could have Label
before actual table that is rendered by DATALIST...
<h1>Some Label</h1>
<TABLE ID='DataList' width='100%'>
*** inside datalist objects rendered ***
</TABLE>
Thanx to a... more >>
ListBox
Posted by Peter Kirk at 10/24/2005 2:02:22 PM
Is it correct that in a ListBox control which is multiple selection, I have
to manually iterate through all items to find out which ones are selected?
There is no "ListItem[] GetSelectedItems()" or something like that?
... more >>
Stop execution of compare validator
Posted by sushant13 NO[at]SPAM gmail.com at 10/24/2005 12:53:49 PM
Hi,
I have two text boxes. Both are accepting date value. I have 2
compare validators associated with first textbox. The first compare
validator checks input value is of type Date or not. The second one
compares first textbox's value with second textbox.
Problem is when I am entring say ... more >>
.NET 2.0 use of Xml.Transform in WebControl
Posted by n33470 NO[at]SPAM hotmail.com at 10/24/2005 11:47:07 AM
We're in the process of migrating our projects to use VS2005 from
VS2003. We have a web page that uses the XML WebControl to perform
an XSLT tranformation by using the property "Transform" of the
webcontrol. Here is a sample:
xmlMessage.Transform = _app.Cache.UserMessagesXsltUser;
'x... more >>
Drop Down not giving proper selecteditem value
Posted by Steve at 10/24/2005 9:10:11 AM
I have a few drop downs on a user control which are loaded on a webform. I
populate the drop downs via a datasource. Both the DataTextField &
DataValueField properties are set. When I set the DataValueField property an
incorrect SelectedItem value is returned. If i disable the DataValueFie... more >>
C# only DataGrid for WebForm? EASY QUES!!!
Posted by R Reyes at 10/24/2005 8:59:08 AM
Hi,
I am trying to create a C# only website and can't seem to figure out why my
datagrid isn't showing?
All that's in my aspx file is:
<%@ Page Language="C#" AutoEventWireup="false" CodeFile="myPage.aspx.cs"
Inherits="myPage" %>
And in the code-behind I have:
HtmlForm form = new HtmlF... more >>
Sorting a dataset displayed using a repeater
Posted by Andrew Chalk at 10/24/2005 7:49:01 AM
I am displaying a dataset using a Repeater. I would like to allow the user
to click on a column header and have the data sort by that column. How do I
go about this?
Does anyone know of any example code?
Many thanks.
... more >>
Banner Ads With Flash
Posted by Wayne Wengert at 10/24/2005 5:07:41 AM
I am looking for a process or add-in to add to a web page that will allow me
to rotate banner ads, including Flash and animated gif's if possible. I
found some via google but I am looking for recommendations. This is for a
non-profit group and they are willing to pay for what they use but cost... more >>
Extending Drop Down List
Posted by Amit at 10/24/2005 2:31:10 AM
Hi Friends,
I am trying to add two extra properties to my drop down list that i can
access from .aspx page only,
<asp:DropDowmList id="" runat="" Description="Custom Property"
DataSource="custom Property">
please let me know how i can acehive this in vb.net.
Thanks In Advance
Amit... more >>
datagrid's itemcommand event gets fired
Posted by Manick at 10/23/2005 7:15:03 PM
Can someone help me why is the following behaviour -
0. The page has a resultsGrid(datagrid) and a submit button.
1. On clicking any control within datagrid, resultsGrid_ItemDataBound is
fired.
2. User click's back button of the browser.
3. User clicks on a submit button outside the datagrid.
... more >>
Issue with a custom TreeView derived from the TreeView control
Posted by Ionutz at 10/22/2005 5:10:04 AM
Hello!
I derived a control from the standard TreeView control of ASP.NET 2.0, which
uses custom tree nodes derived from the TreeNode class.
The problem is that when I set the property PopulateOnDemand = true on a
node of my tree view and try to expand the node, I receive a
System.NullRefe... more >>
Fixed Size Text
Posted by Thom Little at 10/21/2005 1:46:00 PM
How can I set the text in a control to be a fixed size that can not be
changed by the IE browser?
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
... more >>
TextBox:IValidator and a star (*)
Posted by Shark Bait at 10/21/2005 1:25:05 PM
I have a TextBox the implements IValidator and most everything works fine (it
performs validation on the TextBox. Now I'd like to stick an "*" next to the
TextBox when validation fails. Is it even possible? I'm starting to think I'm
hosed.
Here's the code...
using System;
using System.Dr... more >>
page numbers rendered differently in 2000 and XP
Posted by ZWeng at 10/21/2005 12:31:07 PM
I have a datagrid set up working correctly with custom paging of numeric
values. I tested it in WIndows XP and the page numbers are rendered nicely
with the current page number is not clickable and the other page numbers are
underlined in blue color.
However, in windows 2000, the current pa... more >>
webcontrol.attributes
Posted by Abraham Andres Luna at 10/21/2005 10:34:50 AM
i tried to set an attribute on a webcontrol:
tbName.Attributes["onBlur"] =
@"javascript:setTimeout("RDK_HideDiv(divOfNames)", 3000);";
but this is the rendered html page:
onBlur="javascript:setTimeout(&quot;RDK_HideDiv(divOfCusIds)&quot;,
3000);"
how can i get it... more >>
Reading control values from viewstate
Posted by bryanjhogan NO[at]SPAM gmail.com at 10/21/2005 3:02:41 AM
Hello,
I have a page with three textboxes and a submit button -
TextBox1
TextBox2
TextBox3
SubmitBtn
After loading the page for the first time, I enter some values into the
textboxes
TextBox1.Text = "aaa"
TextBox2.Text = "bbb"
TextBox3.Text = "ccc"
and click the SubmitBtn. The... more >>
"If" statement in repeater
Posted by Peter Kirk at 10/21/2005 12:00:00 AM
Hi
I have a textbox generated in a "repeater". The repeater is looping over an
array of Port objects, and displaying various of its attributes. One
attribute is a DateTime object which I want displayed in the textbox. But
how do I present an empty string in the textbox if the DateTime is Mi... more >>
cbOperation_SelectedIndexChanged not invoked when a ComboBox was changed
Posted by Richard Lionheart at 10/20/2005 10:18:25 PM
Hi,
I've got the following control defined in my .aspx file:
<asp:dropdownlist id="cbOperation" style="Z-INDEX: 102; LEFT: 162px;
POSITION: absolute; TOP: 77px" runat="server" Width="38px">
<asp:listitem text="?" value="0" />
<asp:listitem text="+" value="1" />
<asp:listitem text="-" ... more >>
clientid
Posted by Abraham Andres Luna at 10/20/2005 5:09:59 PM
i have a control on a content page
which protected method of the control should i use to get the clientid?
ex: ctl00_cphMainContent_tbCusId
i started with OnInit but it only returned "tbCusId"
thank you for your help. if you need me to show my code let me know
... more >>
alternate view for a drop down list
Posted by RALF at 10/20/2005 12:56:31 PM
I have a drop down list that I have populated with values such as
customer names. This is what shows up in the textbox part of the drop
down list. When I hit the arrow for the drop down, I want each row
that drops down to have additional info appended to the customer name.
Something like,
J... more >>
|