all groups > asp.net webcontrols > november 2003 > threads for november 22 - 28, 2003
Filter by week: 1 2 3 4 5
how to persist my CustomControl's subcontrol
Posted by lao.pan at 11/28/2003 11:37:50 PM
I create a custom control with subcontrol.but in design-
time, subcontrol contents are clear by VS when I change
any attribute of the control.
why?
thank!
the main code is:
[
ParseChildren(false),
ControlBuilderAttribute(typeof(MyControlBuilder)),
]
public class MyCS_CustomControl... more >>
Find out the control that initiated the postback event
Posted by Dan at 11/28/2003 4:25:19 PM
Hi,
I'd like to find out the control that caused a postback to be raised. =
Obviously this could simply done in a control event handler. I am not =
going to do this method and would like no references as to how to do it =
this way as I already know how.
I know this may be getting into adv... more >>
My treeview doesn't work...
Posted by Chris Hoare at 11/28/2003 6:10:12 AM
I have tried to create a treeview but instead of an
explorer style screen, I get a line of text with nothing
treeview-like about it at all.
Heres my code....
<html>
<body>
<form name="Form1" method="post"
action="webform2.aspx" id="Form1">
<input type="hidden" name="__Tree... more >>
OnItemCommand and Paging in DataGrid
Posted by Sink at 11/28/2003 5:34:16 AM
I just changed a hyperlink column to a button column,
added an OnItemCommand so that I could better control
my screen stack. Lo and behold, it worked fine except my
paging no longer works. It appears that OnItemControl is
being called before paging event and all is lost.
Anyone have any expe... more >>
DataGrid Sorting in a Web User Control
Posted by vtreddy at 11/27/2003 10:10:13 PM
All:
In my application I am using datagrid control, When I added the =
datagrid control to a webform , I could sort the datagrid with out any =
problme, but when I put the same datagrid in another web user control, =
and loading the user control dynamically depending upon the properties =
set... more >>
Custom control not working when inside of usercontrol
Posted by Ron Vecchi at 11/27/2003 9:35:11 AM
I have a custom control which works fine on a webform but dose not work when
inside of a usercontrol.
I placed A HttpContext.Response.Write at the top of my custom controls
Render() and RenderChildren() methods.
Nothing is fired when inside of a usercontrol. But is fired when directly
in... more >>
IDs in a DataGrid
Posted by MikeD at 11/27/2003 8:54:52 AM
Hello,
I'm still a bit new to all this and am probably asking the question the
wrong way but...
I would like to represent a SQL Table in a data grid and allow the user to
edit the values. In my simplest scenario a table has only an ID field and a
Name field. What I would like to be able to ... more >>
Error Setting user control property at web form
Posted by Amir Eshterayeh at 11/26/2003 7:30:01 PM
Dear Friends
Hope things goes well to you. I have this problem. Would you please give me
your solution?
I want to change a property that I define on my user control in my web form
that contains that user control.
but when I want to set the property of user control at my web form, got this
er... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
webform DataGrid - row drag-n-drop to reorganize - is it possible?
Posted by James Radke at 11/26/2003 10:50:38 AM
Hello,
I am writing a vb.net webform application, and was curious if it was
possible to somehow code it so that the user can select a row by clicking
it, and then using the mouse to drag it up to a different position within
the grid (i.e. move the tenth row to between the first and second, et... more >>
how to user GACUTIL -i to install the WEBCONTROLS ?
Posted by Samuel at 11/26/2003 7:03:05 AM
Hi Guys,
I need to install the Microsoft.Web.UI.WebControls on a
new server. I have done all the steps to build the
controls, created the requested folder, then placed
the .dll and image files over there, but I can't use the
controls.
Whenever I issue the gacutil -l
Microsoft.web.ui.we... more >>
I have a question about loading a listbox from a dataset.
Posted by Gordon at 11/25/2003 6:58:38 PM
Hi;
I am trying to port a windows app which works to a web
app.
I select a date from a calender control then use that date
to select a corresponding record in a datset. When I
execute the same code section where I select a record from
a datatable I get an error message that says that the... more >>
Do not want designer properties to be rendered to html until runtime
Posted by Ron Vecchi at 11/25/2003 6:47:19 PM
I am working on a webcontrol and ran into a little problem.
How can I not have a property, which is set in the designer not render
itself to the html view but only render itself at runtime.?
thanks
--
Ron Vecchi
... more >>
show TIFF file with imgedit.ocx or other ctl?
Posted by Al at 11/25/2003 6:25:50 PM
Hi, I would like to display TIFF files on a web page and
allow the user to specify what page of the image to view,
as well as zoom in and zoom out, scroll, etc. Does
anyone have some examples of how to do this with the
imgedit.ocx control or another ocx control please?
Thanks, Al... more >>
Formatting Data in a Bound Repeater
Posted by Fred Sawtelle at 11/25/2003 3:50:33 PM
Okay, I've wasted a day researching and experimenting
with no success. Would someone tell me why the code
below doesn't format properly, and how I can get it to,
please? This is in the ItemTemplate of a repeater, and
it displays the bound data just fine, except that it
displays as 333444... more >>
DataGrid - client side sorting?
Posted by Graham at 11/25/2003 3:25:48 PM
Has anybody successfully implemented client-side sorting
of columns within a DataGrid?
If so, please could you enlighten me?
Thanks... more >>
Setting fields .visible=false; need to shrink gridLayout panel
Posted by mravichandran NO[at]SPAM Hotmail.com at 11/25/2003 2:25:06 PM
Dear Readers,
I have created a webForm document using "FlowLayout"
(pageLayout="FlowLayout"). I created many "grid layout panels" (HTML
control) through out the document for better looks.
In one of the panels, based on the user input (check box), I am hiding
all the fields and their labels... more >>
server textbox control, browser compatibility
Posted by will eichert at 11/25/2003 11:23:50 AM
Here's an easy one (2nd time I've posted this issue, maybe I'll get a
reply this time!):
How do you use the web server textbox control in different browsers
(IE works fine, but Netscape & Mozilla don't). The width of the
control is ignored.
I've tried the different settings for targetSchem... more >>
Maintaining client position on postback
Posted by Doug Daniels at 11/24/2003 8:30:45 PM
Hi I was wondering if there was a simple way of
maintaining the position of the client after they post
back by selecting something in a asp:DropDownList with
auto-postback on.
I'm using it on a comics site to have the user select a
comic and have an image control change its URL depending... more >>
Several DropDownList Controls SelectedItem Problem
Posted by Ivan at 11/24/2003 6:31:02 PM
Hi,
I have a problem with a page which has about 50 web controls , 12 of the are
DropDownList.
Also, I have a "Continue" button, and on the server code an event sub
btnContinue_Click, where I process the input data.
There is a code like :
Dim MyVariable As Integer
Dim AnOtherVariable As Int... more >>
OnClick vs InitializeComponent()
Posted by Mikael Janers at 11/24/2003 5:14:19 PM
Hi!
When you want a serverside event on for example an asp:ImageButton... Whats
the difference between using OnClick="..." and binding the event in the
InitializeComponent() method ?
... more >>
TreeView TreeNode.RunAt attribute.
Posted by RodBillett at 11/24/2003 4:31:16 PM
What I want to accomplish is some TreeNodes will just perform a navigation
to NavigateURL within Target (Without the postback) whereas other TreeNodes
I want to perform the postback before performing some activity.
In the Documentation, it states that the TreeNode object contains a RunAt
attri... more >>
Handle exception in ProcessPostData
Posted by Mono at 11/24/2003 3:08:26 PM
Is there any way to catch (and handle) exceptions in the ProcessPostData or
ProcessPostDataSecondTry methods?
p.s.
"No" is not an answer ;)
Zarko
... more >>
How to call function on ButtonColumn click
Posted by Lars Pedersen at 11/24/2003 2:56:08 PM
Hi!
In a datagrid, where I'm building all my columns in codebehind, I have a
ButtonColumn.
When user clicks the button, I want to call a function.
I have tried the CommandName property, but it wont fire.
Example:
ButtonColumn bcol = new ButtonColumn();
bcol.ButtonType = ButtonColu... more >>
can not redirect to customized error page
Posted by haiwen at 11/24/2003 1:14:21 PM
Hello, everyone.
I am in trouble to create an error page for my application.
in Web.config file:
<customErrors defaultRedirect="errorPage.aspx"
mode="On" />
in one .aspx
private void Page_Load(object sender, System.EventArgs e)
{
throw(new Exception("try!!!"));
}
But... more >>
width of text box control in mozilla
Posted by will eichert at 11/24/2003 11:27:05 AM
I'm new to asp.net, so forgive if this is obvious. I spent some time
in the doc before posting, fwiw.
I have a web form page with some web server text box controls. They
display correctly in IE, but not in Mozilla (1.5). The width parameter
is ignored. Is there a way to get the width to displa... more >>
CheckBoxList: Adding onclick javascript event to each ListItem.
Posted by Jimmy [Used-Disks] at 11/24/2003 10:00:01 AM
How can I add an onclick client-side event to each ListItem in a
CheckBoxList? I tried iterating each item and adding an onclick attribute:
foreach(ListItem Item in this.MyCheckBoxList.Items){
Item.Attributes.Add("onclick", "alert('test')");
}
Though the attributes get added (I can see th... more >>
Validation Summary Control not displaying MessageBox
Posted by Chris Lane at 11/23/2003 1:34:04 PM
Hi,
I have the following in my .aspx page:
<asp:validationsummary id=VSAddStores style="Z-INDEX: 141;
LEFT: 721px; POSITION: absolute; TOP: 314px"
runat="server" Width="370px" Height="126px"
BackColor="Gainsboro" ShowMessageBox="True"
ShowSummary="False" HeaderText="The Following errors ... more >>
need to get msgbox control
Posted by laurenbk at 11/23/2003 12:30:35 PM
hi all,
I am building asite for a poor non profit organization.
So, I dont have money to buy controls. I am seeking the
following
1.A meddage box control
2.calender and tasks control
3.bbs(optional)
any ideas where I can get these?
thanks
LK... more >>
How to submit a form using web control Button
Posted by Malik Asif Joyia at 11/23/2003 10:24:42 AM
Hello
How can i submit a form using the event handler of the web control button
Thanks
Malik Asif
... more >>
ExpandableObjectConverter (Almost Working)
Posted by Ron Vecchi at 11/22/2003 10:04:13 PM
I have a custom control inheriting from System.Web.UI.Control. I
implemented the ExpandableObjectConverter and everything is working fine in
the designer. The proerty is expanded and I can select the child properties
and the change is displayed to the parent.
When my custom control renders, ... more >>
currency format
Posted by susie at 11/22/2003 11:45:14 AM
Question 1:
I have a text box for user to enter a number, for example,
user entered 1000. Once the user press enter key, the
text in the text box should change to $1,000.
How could I do this?
Question 2:
Must I turn the AutoPostBack=true for this text box in
order to have the effect (... more >>
|