all groups > asp.net webcontrols > november 2006
Filter by week: 1 2 3 4 5
client-side code
Posted by Dan Aldean at 11/29/2006 10:41:28 PM
Hi,
I try to have some code on the client side of a button, but it does not
work.
<HTML>
<HEAD>
function openWarningPopup()
{
alert("this is a message");
var varProgram = getElementById("TextBox1");
varProgram.text = "HAHAHA";
}
</HEAD>
<BODY>
<asp:Button id="Button1" ... more >>
Populate DropDownList w/ GridView Header Text
Posted by ccshine via DotNetMonster.com at 11/29/2006 5:32:29 PM
I have a GridView bound with an SQLDataSource. Search functionality for the
GridView needs to be added through the use of a DropDownList containing all
of the visible fields from the GridView, in addition to a textbox for search
text. I want to avoid hard coding the values in the DropDownList. ... more >>
Required Field Validator
Posted by Kevin Humphreys at 11/29/2006 12:36:34 PM
Hi There,
I'm trying to get a required field validator for a Radio Button Web Control.
Any ideas on how I can do this?
Thanks,
Kevin.
... more >>
How to add DataSource to a TreeView programmatically
Posted by anders.rask NO[at]SPAM gmail.com at 11/29/2006 8:18:43 AM
Hi,
im creating a custom control (custom SPField in WSS v3) that renders a
TreeView control.
This works fine if i add TreeNodes manually to the nodes collection,
but what i really want to do is add a SiteMap provider as datasource
for the control.
I am doing this programmatically in Crea... more >>
VS.NET 2005 ASP.NET Component
Posted by Michael Lang at 11/28/2006 12:30:23 PM
Hi all...
Well I've posted this in
microsoft.public.dotnet.framework.aspnet.buildingcontrols and
microsoft.public.dotnet.framework.aspnet without a single response. I'll
try here...
I have a class deriving from System.ComponentModel.Component.
In VS 2003 I could drag it on to a web f... more >>
Unable to add web controls or view web controls in IDE
Posted by Rick Schoenborn at 11/28/2006 11:55:45 AM
This morning my VS 2005 stopped allowing me to drag a web control onto a web
form and when I load a project containing web controls they are not visible.
The HTML shows the asp controls but they don't show up on the design page.
Anyone know what's wrong?
Thanks,
Rick Schoenborn
... more >>
how to render a graphic and other objects in the same page?
Posted by André at 11/27/2006 7:35:54 PM
Hi,
I try to create and render a graphic among other objects like e.g. tables,
labels, buttons.
The tables are not a problem, neither the graphic.
My problem is that i can't render both together. With the code below, i only
see the graphic, nothing else (no table, label, button).
How c... more >>
Click event for GridView?
Posted by aljamala NO[at]SPAM gmail.com at 11/27/2006 1:22:59 PM
Hi,
I am trying to create a Sudoku web application using a GridView
control, and I was wondering if it is possible to extend the control to
handle a Click event on a cell? So that way the user can click on a
cell to input a number.
Any ideas or suggestions would be appreciated. Thanks!
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Custom UpdatePanel - ASP.NET 2.0 and Client Callback
Posted by ThunderMusic at 11/27/2006 1:06:24 PM
Hi,
I want to develop an ASP 2.0 Web control that would be just like an update
panel (to use with a tab control), so when the user makes a request, the
content of the page is loaded dynamicly without the need of a postback...
Client callback seems right in the situation except for one thing..... more >>
Repeater and Checkboxs
Posted by Kevin Humphreys at 11/27/2006 12:37:08 PM
Hi,
Can someone give me a code look at how I can create a Dynamic Checkbox
within a repeater using VB.NET?
Thanks,
Kevin.
... more >>
Dynamicly setting readonly in through a property
Posted by Martin Gregersen at 11/27/2006 9:59:27 AM
Hi
Looking for a way to bind a readonly property on a textbox to a parameter,
not having to cycle through all controls, but rather setting <textbox
id="myTextbox" readonly="<%# SetReadOnly %> where SetReadOnly is a public
property, saved to a Session variable.
Can't get it to work, event... more >>
Making a GridView Cell read-only
Posted by aljamala NO[at]SPAM gmail.com at 11/27/2006 9:08:02 AM
Hi,
I am trying to make a Sudoku web application. I am creating a dataset
which holds the numbers that belong to each cell. Then these numbers
are unmasked to display the problem set to the user in a GridView.
However, I was to be able to mark the empty columns for editing. I
have tried th... more >>
Charat Control (date Vs date)
Posted by LearnMore.John NO[at]SPAM gmail.com at 11/27/2006 4:27:20 AM
Hi all
I am looking for asp.net chart control which can plot Date Vs Date
graph, is there any free control which can be used in Asp.Net 2.0,
thanks in advance
regards
John
... more >>
Minimum height of web controls
Posted by lotharlinux NO[at]SPAM hotmail.com at 11/25/2006 9:04:18 AM
Hi,
Questions:
How do I make custom controls that inherit webcontrol display a smaller
width or height than 16pixels in the designer? I tried overriding the
width property but to no avail. The correct pixel size is shown as text
but the control width or height remains at 16 pixels.How can I l... more >>
WinForm controls in Web
Posted by Robert at 11/24/2006 11:40:47 AM
Hi!I want to use my usercontrol in the web.Now I've plug <object id="1"
classid="http:Bin/New.dll#New.UserControl1" height="200"
width="200"></object> into my HTML and it worked well in .html page. But I
can't use it in .aspx page.Any advice?
... more >>
Help Me
Posted by Prince Varghese at 11/23/2006 11:16:02 PM
How can Include Repeater Control Inside a repeater Control?... more >>
Forcing datalist to start new row on demand
Posted by haydnw at 11/23/2006 1:28:28 PM
I have a datalist which displays a set of photographs, some of which
are landscape and some of which are portrait in orientation. I'd like
to sort them by orientation, and can do this just using SQL, but that
leaves the possibility that one row could contain the last landscape
images followed by... more >>
Get Datakey Value from Gridview/sqldatasource
Posted by KT at 11/22/2006 3:31:14 PM
I need to get the unique datakeynames value from a query that is populating
the gridview and detailsview.
Example, I have a sqldatasource setup that is using a store procedure. I
have the results from it populating a gridview. However, I need the unique
id of the datakey to use for other ... more >>
How to render HTML in a textbox?
Posted by AAOM Tim at 11/22/2006 10:50:01 AM
I would like to take some HTML content and render it in a textbox with the
HTML formatting applied to the text, but when I assign text with tags they
are HTML-encoded. How can I display it as formatting text insetad of showing
the HTML tags?... more >>
getting the current page from inside a web control
Posted by musosdev at 11/22/2006 7:41:02 AM
Hi
I have a class on my Intranet site that provides me with a crash popup type
page, and sends me an email containing bug information, etc.
This works fine, from any page I can call my class with an error code and a
reference to the current System.Web.UI.Page, like so...
ACR crash = new... more >>
TreeNodePopulate - InvalidCastException
Posted by woker NO[at]SPAM gmx.net at 11/21/2006 4:53:15 AM
Hi group,
my problem is the following:
I derive a class from System.Web.UI.WebControls.TreeNode, add a node of
my derived class to TreeView and on the TreeNodePopulate callback (or
any other) try to downcast the received node into my derived class. I
get an Invalid Cast Exception.
The foll... more >>
asp:menu only show children
Posted by chandy NO[at]SPAM totalise.co.uk at 11/21/2006 4:04:24 AM
Hi,
I have created a sitemapprovider for my site. Now I want to add a menu
control but I only want to show the children of the current node. I
have set the provider root to the current node but how do I tell the
menu control not to show the root?
The menu should be static and just show:
... more >>
GridView DDL and Label
Posted by Chuck P at 11/20/2006 12:57:02 PM
In my item template I have a label called ProductName
In my edit template I have a DDL called ProductName.
My object datasource for the gridview contains only the ProductID.
The DDL has an objectDatasource to Products table.
What is the best way that when I am in the normal view the label... more >>
Control Position
Posted by David Bell at 11/20/2006 12:45:24 PM
Hi Group,
I am trying to find the position of a control in a asp:table.
I am trying to add a pop up calendar to an image button that is in an
asp:table.
I need to find the position dynamically because the first 2 columns in my
table have dropdownlists that vary in size.
My table is being bui... more >>
zorder problem with menu and combobox
Posted by Beemer Biker at 11/20/2006 10:45:55 AM
I have a menu (with dropdown) as well as a ddl combobox on a form. There
is also a multiview and panels in the multiview.
I cannot get the dropdown part of the menu to show up over the combobox nor
the panels in the multiviews. I moved the multiview down away from the menu
but I need the ... more >>
hyperlink in a ListItem
Posted by David Thielen at 11/18/2006 12:01:02 PM
Hi;
For the text of a ListItem how do I put a hyperlink in as part of the text?
I tried putting it in the text and putting a asp:HyperLink inside it -
neither worked.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.... more >>
Panel Border Problems
Posted by mianiro NO[at]SPAM gmail.com at 11/18/2006 7:39:07 AM
Anyone ever have issues with the Panel control and its borders? The
Borders do not always paint for me. I will have half a side painted
while the other is not at all. Is this a bug ?
... more >>
Getting the generated name attribute for use in JavaScript
Posted by Nathan Sokalski at 11/17/2006 8:16:29 PM
As most of us probably know, ASP.NET controls do not use an exact copy of a
control's ID for the HTML element's name or id attribute. When generating
JavaScript as part of a control or event, we need to have a way to reference
the HTML elements. The only way I have found to reference the HTML ... more >>
Missing cell borders in Table control
Posted by elect_son at 11/17/2006 2:30:01 PM
Hi,
I am using the Table control in ASP.NET to display values from a database.
Although I have specified borders for each cell, cells with no data are
displaying without borders.
At the cell level I have the BorderStyle set to "Solid" and have set a
border color. I also have the same s... more >>
hyperlink on template header
Posted by Lucas Hernandez at 11/17/2006 12:44:15 PM
Hi.. I am trying to put a <a > (anchor) on a <asp:TemplateField
HeaderText="<a onClik='functionname('parameter')>click</a>">
but it doesn't take the parameter... any idea?... more >>
gridView Viewstate
Posted by Chuck P at 11/17/2006 9:06:02 AM
I was trying to understand why the GridView displays some less than
desireable features when ViewState is disabled.
If you disable viewstate, you can delete or update the wrong records.
http://scottonwriting.net/sowblog/posts/10054.aspx
I don't understand why when a postback occurs that ... more >>
Microsoft ASP.NET 2.0 Treeview not being W3C compliant?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 11/16/2006 3:08:34 PM
Dear Group
Just wondered as I came accross the following markup rendered ny the
Microsoft ASP.NET 2.0 Treeview Control, missing the type attrbute in
the script tag.
<script>
<!--
function TreeView_PopulateNodeDoCallBack(context,param) {
WebForm_DoCallback(context.data.treeViewID,p... more >>
Gridview -- changing field content
Posted by Jason Wilson at 11/16/2006 1:35:16 PM
I would like to change an image in the 1st field in each row of a
gridview based on the content of the other other fields in the row.
Can anyone point me in the right direction?
I tried the following code as a test:
Protected Sub gvRadTurnat_RowCreated(ByVal sender As Object,
ByVal ... more >>
difficulty setting time values in Calendar
Posted by Beemer Biker at 11/15/2006 5:31:22 PM
Observation:
I am using the dotnet calendar to set a date and time field. I added
hours and minutes fields to my popup since there is no time picker
available. http://stateson.net/pub/cal1.jpg I see no method to set items
like hours, minutes, seconds. Instead there are functions to add h... more >>
GridView with objectdatasource
Posted by Chuck P at 11/15/2006 3:14:01 PM
I have a gridview with an objectdatasource which has a timestamp data field
byte[]
When I do an update my object gets passed backed to my data access layer but
the timestamp value is null (the other fields all have the edited values).
It should be the original value.
It appears that the... more >>
FormView, with 2 dropdownlists
Posted by Milton Snider at 11/15/2006 2:47:58 PM
I am somewhat new to asp.net. I have a form which is always in insert mode
and I am trying to let one dropdownlist(dropdownlist1) select a state and
then limit the number of cities populating the 2nd
dropdownlist(dropdownlist2) to only those cities within the state selected
in dropdownlist1... more >>
Multiview and Validation
Posted by Chuck P at 11/15/2006 9:57:20 AM
I am using a Multiview control and some validators.
The multiview is being used in a homegrown tab control
Click on a tab it display one of the views.
I have a submit button that I would like to validate all of the
controls in all of the views within the multivew.
I am guessing their is no ... more >>
<asp:Repeater>, checkbox values and ASP.NET 2.0
Posted by deathtospam NO[at]SPAM gmail.com at 11/15/2006 9:56:24 AM
A few weeks ago, I created a Classic ASP page that connects to a
machine with SQL Server installed on it, prompts the user to select a
database on that server, then lists all of user-created stored
procedures in that database. The user can select any of those stored
procedures by clicking on ch... more >>
Retrieving all properties of control how to -asp.net
Posted by mpar16 at 11/15/2006 9:56:21 AM
hi,
could please help me to retrieve properties of a control, i got a
scenario to read all available properties and its current assigned
values for different controls in project. i tried with reflector tool
but it giving properties of classes. I am not sure how to get property
and its value. ... more >>
Object reference not set to an instance of an object.
Posted by Kiran More at 11/15/2006 5:49:12 AM
WebControl button = (WebControl)Page.FindControl("btn_Delete");
button.Attributes.Add("onclick", "return confirmDelete (this.form);");
confirmDelete is the method written in Javascript.
I am getting following error message as,
Object reference not set to an instance of an object.... more >>
Searching for a powerfull calendar addon
Posted by WT at 11/14/2006 6:11:09 PM
Hello,
Working on a service scheduling problem, I am searching for a good and
powerfull i:mplementation of a calendar in asp.net 2.
Thanks for all indications.
CS
... more >>
User Control used in Repeater, but no output
Posted by Yvonne at 11/14/2006 1:30:55 PM
Hi,
I have a collection of objects, this objects contain url information, a
link to a picture and a descriptive text).
What I want to do is:
Displaying this data in a list of 'blocks' where each block is build of
the picture and the descriptive text surounded by a link.
I thought that thi... more >>
get a filename for a bitmap in a skin
Posted by David Thielen at 11/13/2006 3:21:02 PM
Hi;
I want to get the filename for a bitmap in a skin. I have to get this in my
..cs file because it is for a control that inherits from HyperLinkField and
therefore it cannot have properties set in the skin file.
What I really need is the folder name of the theme to build a filename of
... more >>
GridView EnableSortingAndPagingCallBacks Select command.
Posted by MikeS at 11/13/2006 1:05:10 PM
Has anybody got a workaround for addding the equivalent of a select
command to a GridView that has EnableSortingAndPagingCallBack enabled
so I can get at the selected row?
... more >>
Disable databound dropdownlist if 0 items
Posted by Evan M. at 11/13/2006 12:39:05 PM
I'm working on an ASP.NET 2.0 web page right now (using C#), and am
trying to figure out how I can conditionally disable a drop down linst
on the page if the datasource that it is bound to has no items.
I tried in the Page_Load event checking how many items are in the list
(ddl.Items.Count), b... more >>
List Box : help preventing duplicate items
Posted by arkgroup at 11/13/2006 12:15:24 PM
Hi,
Is there any way I can prevent adding same value to the list box?
Do I have to loop thru list every time I add item?
For instance, I can add 1/1/2006 as value and text many times
And I try to avoid this.
Thanks
... more >>
Session sharing between ASP and ASP.NET
Posted by princessjewel62 NO[at]SPAM gmail.com at 11/12/2006 10:37:42 PM
Hi,
I would like to ask if there is a possibility that a single session is
used in a web application that contains ASP and ASP.NET application
together for business applications. If yes, how can it be done? Thank
you..
... more >>
Accessing USER CONTROL which is inside Masterpage through Another USER Control inside normal page.
Posted by Kiran More at 11/12/2006 10:16:22 PM
I have created a lable in the InfoMessageBox.ascx control.
This control in used in Master Page.
One Page is designed by making use of this Master Page.
This ASPX is having another user control.
This user control has got one buttong which on click makes database call.
The response returned... more >>
how to get selectedvalue of radiobuttonlist in Javascript?
Posted by Arnold at 11/12/2006 1:16:03 PM
Hi,
I need the SelectedValue of a radiobuttonlist in a Javascript variable. The
radiobuttonlist is only used in a form for inputting data into a database.
Before sending it to the database, i check the inputted values in
Javascript.
(By the way there is also a dropdownlist in the form, and... more >>
Use CSS in themes
Posted by David Thielen at 11/12/2006 11:52:01 AM
Hi;
Is there a way to do most of the formatting for controls in a css file and
then just pass the created styles to the control via the skin? There is a
CssClass property but the documentation sounds like the control makes that
class and it cannot be used to set it to a class we create.
... more >>
|