all groups > asp.net webcontrols > november 2003
Filter by week: 1 2 3 4 5
Post back in a part of a web page not all the page
Posted by Ahmed Hashem at 11/29/2003 7:46:07 PM
Hi All;
I hope that you can help me in replying to my question. I have a web form
that have many post backs to get data from the web server. Every time I use
one of those post backs all the page is posted back to the server(This is
not almost welcomes by the user). I want only the part only to b... more >>
asp:HyperLinkColumn
Posted by TJS at 11/29/2003 3:17:12 PM
how can I encrypt the querystring values for a HyperLinkColumn ?
in example below I would like to encrypt value for field1
======================================================
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="field1"
DataNavigateUrlFormatString="page.aspx?idx={0}"></asp... more >>
Adding Dynamic CheckBox Control State Problem
Posted by imranish NO[at]SPAM hotmail.com at 11/29/2003 2:28:20 PM
Hi,
I am trying to add a checkbox dynamically in reply to a button click.
Each button click will add a new checkbox object to an ArrayList
Object. I store this ArrayList object in the session and populate it.
private void Button1_Click(object sender, System.EventArgs e){
CheckBox cb = new C... more >>
Calendar Controls don't fire events
Posted by mark NO[at]SPAM corporatedigital.com at 11/29/2003 12:22:38 PM
Good afternoon all.
I am creating a usercontrol (*.ascx) with a Calendar control on it.
In the Calendar's DayRender event I'm dynamically adding ImageButton
controls to cells on the calendar. For each of these image button I'm
hooking up a click event as so:
imgButton.Click += new ImageClic... more >>
Indent Items in a Web Forms ListBox
Posted by Mike parris at 11/29/2003 3:30:39 AM
I want to represent the list of items as a heirarchy by
indenting each item by a set amount depending on its level.
For example level 1 = no spaces, level 1 = 2 spaces etc.
If I try too use leading spaces or tabs to do this the
control removes them. Is there a way to do this?
Mike
... more >>
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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
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 >>
how ASP.NET page gets user input from another ASP.NET page??
Posted by Matthew Louden at 11/21/2003 5:45:20 PM
In ASP, if I have asppage.asp for GUI and aspprocess.asp for process
requests from database.
In asppage.asp code will be like:
<form action="aspprocess.asp" method="POST"> GUI CODE </form>
When the user clicks the submit button on asppage.asp, it will invoke
aspprocess.asp page
aspproces... more >>
select button in datagrid to cause a redirect
Posted by TJS at 11/21/2003 1:34:23 PM
I have a select button in a datagrid which I want to cause a redirect when
clicked
I have this in script
===============================
Sub Page_Load(Sender As Object, E As EventArgs)
If Not Page.IsPostBack Then
' Databind the data grid on the first request only
... more >>
Calendar broke?
Posted by Bob Blaker at 11/21/2003 1:01:09 PM
Hi,
Has anyone sucessfully reset the background color for the "other" days,
i.e., OtherMonthDayStyle.BackColor? The default appears to be a wheat
color. I can set all the other properties for the "other" days, but not
color for some reason. Any ideas on how to make this work?
thanks,
B... more >>
Fill Tabstrip Control dynamically with multiple TreeView controls
Posted by Brian Watkins at 11/21/2003 10:05:56 AM
I am trying to dynamically add tabs to my tabstrip control and then build a
different treecontrol for each tab on my tab control.
Basically the Tabstrip control would have n number of tabs/pageviews and
each pageview would have its own treeview.
Any suggestions on how I could tweak the code belo... more >>
Datagrid summarries.....
Posted by ALPO at 11/21/2003 8:46:55 AM
I need to have three summary rows based on datagrid
information. I am already using the footer for "adding new
record" controls. Is there a way to add the summary rows
to the grid, or do I need a seperate grid?... more >>
Setting focus
Posted by Greg Smith at 11/21/2003 7:46:42 AM
Is there a way to set the focus to a control as you do with the .Focus on
the Win side?
Any help is greatly appreciated.
... more >>
Problem with adding UserControls programtic in the OnPreRender event and still keep the UC viewState
Posted by Flare at 11/21/2003 1:17:33 AM
(ASP.NET 1.1)
Hi
I have a problem with my ViewStates in a userControl. The problem is that
the ViewState is not "writte" og changed if you like after editing in my
case a textbox.
This is the code I use to add the User controll
Control Component1 = null;
Component1 = LoadControl("MyUC.a... more >>
extending treeview control
Posted by Wes Weems at 11/21/2003 12:20:32 AM
Does anyone have examples of extending the treeview control?
I'd like to add some drag/drop support to it.... and dont have a clue as
where to start
wes
wweems3SPAMSUCKS@charter.net
remove spamsucks to email back.
... more >>
page templates driving me to the brink of suicide
Posted by Mitch at 11/20/2003 3:18:00 PM
I'm trying to use page inheritance so that I can derive all web pages from a
template. There are a bunch of examples at this site
http://authors.aspalliance.com/PaulWilson/Articles/?id=1, but strangely
enough, not a single one works with my design.
My format is quite simple: large table direc... more >>
Navigation using a Tab Strip control
Posted by Cathie at 11/20/2003 3:06:21 PM
Hi all,
A curly problem for you :)
I have created a user control that contains a web strip control used to
navigate around my web application. I am not using a multi-page control as
the logic for each page is detailed and I would prefer to split it across
multiple files rather than just on... more >>
Validation Question
Posted by Keith Kowalski at 11/20/2003 1:53:03 PM
I have The Following. (Visual Studio - ASP using VB)
Radiobutton with groupname="JNL"
ID="rb1"
Text="yes"
Runat="server"
Autopostback="Tru... more >>
how to call a function in another aspx page?
Posted by Matthew Louden at 11/20/2003 11:25:16 AM
I want to provide date selection in a page. Basically I want to have similar
effect as DTPicker in Visual Basic.
My idea is to create a calendar control in mycalendar.aspx. Then I create a
button in main.aspx. When the user clicks the button, it should call
mycalendar.aspx and pop up a calenda... more >>
FYI: Webcontrols completely from a virtual directory (including the webctrl_client folder location)
Posted by Todd at 11/20/2003 10:57:22 AM
There is a reference to the "webctrl_client" folder in the source file:
C:\Program Files\IE Web Controls\src\BaseRichControl.cs
If you need the webctrl_client folder to be completely under a virtual
directory just change the code from:
private const string DefaultCommonFilesRoot = "/we... more >>
Viewstate and Dynmac controls
Posted by Steve Drake at 11/20/2003 10:55:05 AM
All,
I have a CONTROL that contains 1 control (Control ONE), the 1 control that
it can contain 1 or 2 control (Control A and B).
Control A, raises and event and Control ONE receives this event and this
causes control B to be created, when this is done the VIEWSTATE is lost for
CONTROL B.
... more >>
|