all groups > asp.net building controls > october 2005
ASP.NET 2 and custom controls!! How can i create them?
Posted by smash2004 NO[at]SPAM gmail.com at 10/30/2005 12:31:34 AM
i can't find anything on the net to create a simple custom control with
asp.net 2 and use it in other project..with that i mean having my own
custom control on toolbox to drag it in designtime
in asp.net 1 that was simple...i just built my project and there was
dll which i importet in my tab i... more >>
Web User Control Drop Down List does not show selected item
Posted by stephg at 10/27/2005 10:32:13 AM
Hi,
I have a user control that only contains a drop down list. This ddl is
filled with countries. In my ASPX page the control displays properly and I
can also get the selected item. However, when I want to select an item from
the list by default that is not the first entry in the list, it d... more >>
Application variables
Posted by Teo at 10/26/2005 10:36:31 PM
Hey guys!!
I am building this application that I want users to log into my system with
their login and password stored on a DB.
After I do the check I want to clear them to access a specific folder on my
website that will be restricted only to them.
What is the best way to create an applicati... more >>
How to Post back page from Client side code?
Posted by Ahmad Jalil Qarshi at 10/26/2005 10:04:56 AM
Hi,
I am developing a website in ASP.NET. I want to have a client side code to
confirm the deletion of some information from backend database. I want to
use a Message Box have two buttons "Yes" and "No" to confirm the deletion.
Now I want if the user press "Yes" the page should be posted b... more >>
Dynamically placing controls/ page items at runtime
Posted by Grant at 10/26/2005 7:48:46 AM
I have this table on my form which gets populated with data from my database
at runtime. I would like to place some controls (linkbutton, textbox etc.)
beneath the table when it is complete - at the moment the controls just stay
where I place them and the table gets built on top of them. I hav... more >>
Problem running a Jeff Prosise example
Posted by Richard Lionheart at 10/24/2005 10:24:47 PM
Hi All,
I'm trying to run the third example in Chap. 8 (Custom Controls) of
Prosise's "Programming Microsoft .NET". He provided a directory Hello1
containing two files
- Hello1.aspx
- Hello1.cs
and a "bin" directory containing Hello.dll.
I copied the Hello1 directory to www.root, rename... more >>
Adding Windows Security to ascx
Posted by Arco at 10/24/2005 12:54:48 PM
I have an application that is growing and requires Windows role based
security built into a navagation user control. I currently have the
security in the aspx forms with the Web.config file authorization and
authentication accessing roles and it is working.
I've created a user control, but un... more >>
CAS prevents call to ConvertTo used by custom TypeConverter
Posted by Jim at 10/21/2005 3:13:02 PM
Hi, I have a web control, that has a property (a collection of strings) with
it's own editor and typeconverter.
The problem is that the type converter has to ConvertTo an
InstanceDescriptor at runtime, but calls InstanceDescriptor (seem to) require
Unrestricted permission;
(permview /d... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
BaseValidator Inherited Ctrl Not working with RequiredFieldValidator
Posted by James at 10/16/2005 4:13:02 PM
Hi All,
I have written a control that inherits BaseValidator. If it used by
itself on a page, the control works perfectly fine.
If I drop the RequiredFieldValidator on the same page to evaluate a
different textbox, my control does not work. But *only* if
RequiredFieldValidator does not pa... more >>
Eventhandling from dynamically created controls
Posted by mrbentzen NO[at]SPAM gmail.com at 10/13/2005 1:34:02 AM
I have some questions reguarding event handling of dynamically added
controls.
An example scenario (se code below):
I have one button declared in the aspx file. When the button is
clicked, the OnCommand event is fired.
The evanthandler catching this event, creates a new button dynamically
an... more >>
Allowing a new design property for control inheriting DataGrid
Posted by Joey Lee at 10/13/2005 12:00:00 AM
Hi,
I created a custom control inheriting from DataGrid
I would like to put a custom property for design time manipulation
I added the accessor as below code but is does not appear in the property
window. However other custom control i created having this code has no
problem at all. Ple... more >>
Formatting a ListItem Control
Posted by Nathan Sokalski at 10/10/2005 9:16:21 PM
I want to change the background color, font attributes, etc. of the choices
in my DropDownLists. When writing them using HTML SELECT and OPTION tags, I
can do something like the following:
<option
style="font-weight:bold;color:green;background-color:purple;">Displayed
Text</option>
but... more >>
Adding another item to a completed DataLIst
Posted by David Lozzi at 10/10/2005 12:00:00 AM
Hello,
I'm using a datalist, 2 columns, verticle direction. When the items are
finished being displayed, I'd like to "manually" add addition text to the
end of the list and have it appear right after the last item. Something like
this:
Item 1 Item 4
Item 2 Item 5
Item 3 ... more >>
HOW TO: Add a button to IE Explorer toolbar???
Posted by svd at 10/9/2005 5:04:45 PM
I would like to:
1) Add a button to the IE toolbar
2) When presses, it get's the current URL
3) If my application is not running, starts it
4) Finds my application is the list of running processes
5) Passes the URL to my running application.
Any examples to get me started would be much app... more >>
Problem using an assembly
Posted by Nathan Sokalski at 10/9/2005 1:24:20 AM
I have a User Control that I created (.ascx & .ascx.vb file pair) that I =
am trying to put in a separate assembly. I know that the User Control =
works when it is in the same project and is compiled along with the =
project it is used in, so the problem is obviously something I am doing =
wrong... more >>
raising Page event with customs webcontrol
Posted by Frank at 10/7/2005 5:20:02 PM
Hello,
I'm trying to raise a Page level event from a custom webcontrol. I can get
the event to fire but the context of the even is within the webcontrol and
not the Page. How can I get the event to be at the Page context level where I
can change other controls, variables, etc on the Page?
... more >>
Custom asp.net control using collection - Design Time Refresh
Posted by Patrick at 10/7/2005 5:45:01 AM
I have a custom asp.net control that uses a collection class to store items.
Properties modified for each item cause the design time window to refresh, I
am using the "ParentNotify" attribute, this works well. I also am using a
composite control designer class that renders the control very w... more >>
Mangled IDs for web controls
Posted by Bill Long at 10/5/2005 12:59:02 PM
How come sometimes when I define an html tag in an aspx page like
<asp:ListBox id="someID" .../>
it renders like
<select id="_ctl0__ctl0__ctl0_someID" ... />
ListBox=Select ... but the control ID is changed!
How can I turn that off?
--
Bill... more >>
SelectedIndex Value Reported Incorrectly
Posted by Nathan Sokalski at 10/3/2005 12:53:36 PM
I am writing a User Control that uses 3 DropDownLists. When I attempt to
access the SelectedIndex property it incorrectly reports the value selected
by the user. Why is this? Here is my code, thanks:
Public Class DatePicker
Inherits System.Web.UI.UserControl
#Region " Web Form Desig... more >>
|