all groups > asp.net webcontrols > september 2003
Filter by week: 1 2 3 4 5
ASP.NET Office Automation
Posted by mbredbury NO[at]SPAM hotmail.com at 9/30/2003 2:34:41 PM
I want to write a web-based system using ASP.NET which will automate a
users MS Office products and have them visible on their computer. I do
not want to use the Webbrowser to host an Office application, I want
the Office product (Word, Excel, PowerPoint) to run on the users
computer just as it ... more >>
ListBox inside a WebControl cannot get postback value.
Posted by Felix Chan at 9/30/2003 12:41:52 PM
Hi all,
I have a problem in getting the selected item of a listbox
inside a custom WebControl.
I have a class 'SelectionBox', a abstract
class 'WebElement' and a interface 'IWebElement'.
The SelectionBox implment the WebElement and the
WebElement extend the WebControl class and imple... more >>
webcontrols automatic replacing characters
Posted by sacred at 9/30/2003 7:11:23 AM
Hi,
I have a simple question I beleive. How do i turn off the
feature that goes through and replaces sensitive
characters to HTML with its corresponding character tag.
For instance I am using a textbox where people can use a
single qoute. As in <Nacy's house>. So,before I submit it
to... more >>
Hierarchical and recursive nested datagrid
Posted by nicolas at 9/29/2003 9:35:43 PM
Hi!
I want to populate a hierarchical datagrid with a parent-child datatable.
Category | ParentCategory | Name
xxx | xxx | xxx
What i want to do is to populate one datagrid with the first level category
column and each time we click on the +/- button of a catego... more >>
How to get value of dynamic DropDownList in User Control ?
Posted by Piotr Strycharz at 9/29/2003 3:16:51 PM
Hi all.
I have problem with ASP:DropDownList. I do not know how to get its value.
The DropDownList is populated in Page_Load method (from SQL Server). When
this list is embeded in ASPX page everything runs fine: I can use
Request.Form["DDL_Name"] to know its value.
However, when I use it in c... more >>
Print and the Tabstrip webcontrol
Posted by Rob at 9/29/2003 2:24:36 PM
I am utilizing the Tabstrip webcontrol on a .NET
Webform. On the same Webform is a button that invokes a
client-side javascript print() method when the button is
pressed. I wish to print all the PageViews of the tab,
but only the first PageView is being sent to the printer.
Is there a w... more >>
FindControl in Parent Datagrid
Posted by Harold at 9/29/2003 11:21:23 AM
I have a datagrid with a template column and template
footer the following code will find the item in the
column but not the footer.
string myVal
foreach (DataGridItem anItem in grdLeads.Items)
{
myVal = ((TextBox)anItem.FindControl("MyVal")).Text;
}
This has no problem with th... more >>
Paging on Datagrid Does Not Work
Posted by Bruce LeMond at 9/29/2003 10:28:36 AM
This is a Visual Basic web form. I set the datagrid
properties to allow for paging with 10 rows displayed per
page. When I run and click on the Next button (>), it
does not go to the next page. There are more than 10 rows
to be displayed. Anyone knows why this is not working?
Thanks i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
custom templateColumn
Posted by Assaf at 9/29/2003 8:02:33 AM
I am writing a custom itemplate to be used by a
templateColumn in a datagrid. How do I get my hands on the
datagrid's data so I can insert custom contents with
respect to it. In other words, I want to define a
template column class that does something like this:
<asp:datagrid id="dg" run... more >>
Dropdownlist SelectedIndexChanged event
Posted by Halvor Nyberg at 9/29/2003 7:38:19 AM
Hi,
I want to respond when the user picks another item in the
dropdownlist.
In the html section I got:
... SelectedIndexChanged="MyListChange"
(see example below)
I the script section I have the sub
sub MyListChange
MyListChange is not triggered after the Postback.
Is this logical,... more >>
Set TreeNodeSrc to an XML file dynamically ???
Posted by <-> at 9/29/2003 12:32:17 AM
Hi,
How can I set the TreeView's TreeNodeSrc property to an XML file
dynamically?:
Below is what I want to do, but it doesn't work:
private void Page_Load(object sender, System.EventArgs e)
{
this.TreeView1.TreeNodeSrc = "TreeView.xml";
}
... more >>
Cannot Get The I.E.Web Contol.Dll after Downloading
Posted by Shree at 9/28/2003 7:54:39 PM
Hi
I wanted to use Tree view contol in my web Application.
So i downloaded the 360kb package of I.E Web contols form
the msdn help .
I folllowed all the instructions..But could not find the
Microsoft.IE.Webcontols .dll in the runtime Directory .
Really in need of tree view..please help me.... more >>
Object reference not set to an instance of an object.
Posted by John at 9/28/2003 4:04:20 PM
Hello,
I have created a simple component that I dragged onto my
web form but get the error "Object reference not set to an
instance of an object. " In the code behind page of my
webform I have properly declared a variable of the web
control type, what could be the p varem? Thanks,
John... more >>
TreeView - select a node ???
Posted by <-> at 9/27/2003 8:17:21 PM
Hi,
I'm using the IE TreeView WebControl in my ASP.NET web application.
How can I upon selecting a tree node, gets its details such Text and
NodeData properties and displaying them? The following illustrates what I
want to achieve:
private void TreeView1_SelectedIndexChange(object sender,... more >>
Bind only once (DropDownList)
Posted by kaasztelann at 9/27/2003 7:55:00 AM
I have a DropDownList on my Webform. This list is bounded to DataSet which
is populate from database.
When load the form, list is filled and all is OK. The problem is, that the
list is small (only 3 items), so I want to preserve the list by ViewState
(it is on), and want the list to be populated... more >>
VS.net doesn't recognize the input component of type hidden
Posted by el bilo at 9/26/2003 10:56:13 PM
I want to send some data to the client for some client
side processing.
I tried to do this by creating an input container of type
hidden:
<input type="hidden" id="test" name="test" value=""
runat="server">
but when I try to set the value in the codebehind the
complier rejects it ... more >>
How do I set the webForm's background at runtime?
Posted by el bilo at 9/26/2003 10:49:11 PM
I working on a project that creates customised web pages
from a templete and need to be able to have the
codebehind set the page's bacground color and text color
from values fetched from a database.
Problem I'm having is I haven't found a way to access the
DOM style properties for the doc... more >>
how to enable/disable validation controls in the web user control and main page...
Posted by buran at 9/26/2003 3:25:26 PM
Dear ASP.NET Programmers,
I have a web user control (a search menu) which has 2 validation controls
(one for input and another for the search criterion). I am including this
search user control in ever page in my application. In pages with validation
controls, both the validation controls in t... more >>
Showing tooltip in a dropdown list
Posted by news.microsoft.com at 9/26/2003 9:54:36 AM
Hi,
Do you know how to show a tooltip in a drop down list. Drop down list can
not show all of the text because of the text length. So I want to show it in
a tooltip or something like that. Do you have any advice?
Regards
Goksel
... more >>
data grids
Posted by M at 9/26/2003 9:06:51 AM
Hi,
I have a .aspx page which has 3 datagrids to be displayed.
There are 2 datagrids to be displayed side by side and one
datagrid below these two.
Each datagrid has a corresponding label control indicating
the contents of the grid.
What I need to do is, in the case that from the top two ... more >>
Datagrid and arrays
Posted by Mark Aurit at 9/25/2003 3:37:26 PM
Ive populated datagrids with sql statements in the past,
and just attempted to do so with an array (with 19 rows
and maybe 5 columns). On the dg.DataSource= statement Im
getting an "Array was not a one-dimensional array" error
message. Maybe Im missing something here, but I thought
by de... more >>
CheckBox List Formatting question
Posted by gunayb NO[at]SPAM xpandcorp.com at 9/25/2003 6:58:01 AM
Hello,
I have a checkbox list control, "check1" , on my
page.
After I do the databind, here is what the view source
looks like.
<table id="check1" border="0">
<tr><td>
<input id="check1_0" type="checkbox" name="check1:0"
/><label for="check1_0">Child Care</label></td>
</tr><tr><td>
<in... more >>
How to read which control has been clicked, in the Page.Postback event
Posted by Halvor Nyberg at 9/25/2003 12:31:02 AM
I have some buttons on a page and want to test in the
postback event, which of them that has been clicked.
Thanks.... more >>
get the week from the given date
Posted by Reb at 9/24/2003 11:36:59 PM
How can I get the week from the given date using the
calendar control?
E.g., If i choose a date, it must return me which week of
the year it is?
thanks... more >>
How to modify User Control attribute at run-time?
Posted by Kent P. Iler at 9/24/2003 6:00:29 PM
Hi,
I created a user control to contain all my navigation items for the website.
I have a title in the nav bar that I set with an attribute in the tag
structure in the ASPX file where I'm using the control. Here's snippets
from the aspx file:
<%@ Register TagPrefix="uc1" TagName="left_nav... more >>
browser windows....
Posted by Jim at 9/24/2003 5:30:40 PM
In my asp.net page I use javascript to open a new browser window to display
some data.
Is it possible to have some kind of mechanism when the user presses a button
on the new browser window to tell the main browser window to refresh?
Cheers
Earth Worm Jim
... more >>
focus on web control
Posted by tangolp NO[at]SPAM yahoo.com at 9/24/2003 3:04:07 PM
I'd like to know if there is a way to set focus on a control using C#
instead of javascript. Thanks... more >>
DataBind A ToolTip
Posted by Eli Cooper at 9/24/2003 1:07:32 PM
Hi,
I am trying to DataBind and have text inside of a ToolTip, inside of a
datalist.
Something like this:
Tooltip=Delete <%# DataBinder.Eval(Container, "ProductName") %>
I have tried various combinations of single and double quotes and nothing
seems to work, its either just the text o... more >>
Expandable properties in propertygrid not working
Posted by Alessandro Zifiglio at 9/24/2003 10:40:11 AM
I am trying to create expandable properties in the propertygrid for a custom
control i am building but it wont work. I have derived my TypeConverter
from ExpandableObjectoConverter. I have overridden :
CanConvertFrom,ConvertFrom,ConvertTo,CanConvertTo. I know exactly what these
do. I have read ... more >>
Adding javascript to web custom controls (.htc?)
Posted by Lars H at 9/24/2003 8:45:36 AM
I have made a web user controller. I would like to add some simple
javascript behaviour to it. How can i do this? Does it involve adding a .htc
file? I have found very little documentation on this subject, so i
appriciate all help.
/Lars
... more >>
how do i stop a double click on a web button
Posted by jason at 9/24/2003 5:58:25 AM
I want to stop a web button being pressed while I process
the code associated with it. I thought of adding an
attribute to disable the button while I performed the
server process but that seems to stop the server code
being executed (because the button is disabled first).
The other soluti... more >>
Set value of UserControl property
Posted by Jim Ross [MVP] at 9/23/2003 10:14:50 PM
I have a User Control with a property defined (in the ASCX, not in
CodeBehine. The property is defined like this:
<script runat=server language=vb>
Private m_deptName As String
<Bindable(True)>Public Property DepartmentName As String
Get
Return m_deptName
End Get
Set
m_dep... more >>
DataGrid Control
Posted by Aziz at 9/23/2003 10:00:41 PM
Hi,
I have a Datagrid Control, where I have a template column
in which I have a textbox control which is in the
EditItemTemplate. In the edit mode I can see the textbox
control. I have a search image next to the textbox
control. On clicking the image a new pop-up window is
shown wherein... more >>
one sql call - multiple labels populated?
Posted by karlid2000 NO[at]SPAM yahoo.com at 9/23/2003 7:51:25 PM
hello,
I'm moving from the old ASP paradigm over to the new ASP.NET paradigm.
So far so good but I'm stumped on something that seems like it should
be really easy.
In the old days you would use a single Record Set to populate a bunch
of controls all at the same time. For example, when a p... more >>
DataGrid
Posted by RK at 9/23/2003 4:31:05 PM
HI All & Greetings.
Can someone please tell me ... how I can have one of the columns in my
DataGrid control to be a ComboBox / DropDownListBox, please.
thanks,
RK
... more >>
hyperlink image fires twice with smartnav on
Posted by vMike at 9/23/2003 12:58:46 PM
I have a hyperlink control. The image is dynamically set to an aspx file.
The image changes based on criteria passed to it on postback. I have noticed
that when smartnavigation is turned on the aspx file is accessed twice
before the picture displays in the browser. When it is turned off it is onl... more >>
Debugging ASP.NET control generation?
Posted by Martin Klusacek at 9/22/2003 5:30:38 PM
Hi!
I have a problem that I can't seem to debug.
I generate a TextBox in ASP.NET and set it's Text property to "768".
I check it at the end of the Page_Load function and the Text property is
still "768".
When I let it run, and let ASP.NET create the HTML, the <INPUT type=text>
element ... more >>
Firing of events
Posted by sacred at 9/22/2003 4:07:10 PM
I am having great difficulty with the way .net is firing
events.
Currently is is going like this.
AutoPostBack = False
Events = Change for a dropdownlist
Person does the following:
Change the dropdownlist selection
Clicks on form submit buttons.
Page Process does this:
Excutes Page... more >>
Bug with ASP.NET Dropdownlist and SelectedIndexChanged
Posted by Mark Vejvoda at 9/22/2003 4:01:27 PM
I am using c# with a dropdownlist control in and aspx page with dll in
codebehind. I populate the control by creating a dataset then binding the
dataset to the control ONLY when:
if(Page.IsPostBack == false)
{
}
But when I load the control and set the selected index to a value based on a
... more >>
EMail Validation (Regular Expression)
Posted by Clive at 9/22/2003 1:31:37 PM
Hi,
I am using below email validator.
On tabbing out of my textbox it displays an error if it si
not in the correct format.
If i go back and input clive@microsoft.com it still
displays the error and I can't submit my form. Why is this?
<asp:RegularExpressionValidator id="EAV" Font-Si... more >>
creating interface dynamicly
Posted by Vasko Buraliev at 9/22/2003 11:14:23 AM
Hey folks,
I'm trying to generate create interface that should be consist static part
and dynamic part.
For example, static part I will create with editing ASPX file and designing
web interface like this:
<td align="center" width="100%" height="100%">
<table border="0" cellpadding="0" ... more >>
How Do I get ConfigurationSettings from the calling assembly?
Posted by Rob Mayo at 9/22/2003 10:37:13 AM
I'm developing a server control for our intranet. This control is only going
to be used in two applications on the server, but they must be separate.
It has been established that these 2 apps will use a specifically named key
from their respective web.config's. I want the control to use that ke... more >>
file upload(htmlfile: access is denied)
Posted by pedro.rafael NO[at]SPAM eb-focus.pt at 9/22/2003 10:22:13 AM
Hello,
i'm trying to use another button (other than "browse...") to throw the
window used to choose the file for upload, something like:
onclick="objUpload.click()", ( being the objUpload a htmlcontrol run
at server of the type file).
But after choosing the file, i click on a button (webcontr... more >>
Take a look at these package that came from the M$
Posted by øæ at 9/22/2003 1:26:36 AM
Microsoft User
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to prote... more >>
How to position controls on web page
Posted by Jeff Cooper at 9/20/2003 10:29:09 PM
Hey folks,
Silly question from someone just starting out on this...
I've tried both the old <center></center> tags and <div align=center></div>
and they seem to be ignored when I view the page in a browser. I used the
designer to add an image control to the page. I'd like that image to be
... more >>
Wizard Dialog Builder server control
Posted by yurybo at 9/20/2003 7:14:46 PM
Hi,
If you're building web forms which require Wizard-like dialogs - here is the
coolest control: WizardBuilder.
One line of code makes one page of wizard, and loads any User control into
it (of course, state of the control between postbacks is taken care of for
you...).
Here is the link:
h... more >>
Button on_Click..?
Posted by Kent Johnson at 9/20/2003 10:36:01 AM
Hi all,
I'm new to Asp.Net and I have a simple:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
TextBox1.Text = "This is a test"
End Sub
"This is a test" works in a Windows app. but not in Asp.Net web application.
If I push the... more >>
treeview:how to get the selected node on javascript click event
Posted by Naim Rizk at 9/20/2003 8:44:26 AM
hi,
I have a treeview with nodes that contain images of a checkbox. it can
be an image of a checked or unchecked checkbox. When a user click on a
node the image of the checkbox will change from checked to unchecked and
vice versa. And of course that will be done on the client side.
i adde... more >>
Getting InteliSense on UserControls?
Posted by Axel Dahmen at 9/19/2003 8:34:27 PM
Hi,
I'd like to enjoy the comfort of using IntelliSense on my user controls
(both
Web User Controls as well as Web Custom Controls). Can anyone please
enlighten me on what is required to achieve this?
TIA,
Axel Dahmen
... more >>
Creating SortedListBox control, but need a little help!
Posted by James Radke at 9/19/2003 8:32:44 PM
Hello,
I would like to create a sorted listbox which has one property that I can
set to true or false to show if the listbox should be sorted. Then, if it
should be sorted, everytime an item is added to the list via Items.Add or or
deleted via items.remove, I would like it to automatically re... more >>
|