all groups > asp.net building controls > may 2006
Filter by week: 1 2 3 4 5
Programatically adding an HTTPHandler
Posted by Steve C. Orr [MVP, MCSD] at 5/30/2006 3:52:15 PM
When my custom control is dropped onto a web page at design time, I want an
associated HTTPHandler reference to be automatically added to the project's
web.config file if it's not already there.
I see some other controls do this, such as the ReportViewer control so I
know it is possible. But... more >>
view source problem with hidden control using IE
Posted by Don at 5/30/2006 8:43:38 AM
I have a page that has several controls on it and the controls are
shown or hidden during postback. I show and hide them using the
visible property. When I use 'view source' in Internet Explorer I
always see the source of the first version of the page, with the
controls rendered that where ren... more >>
CausesValidation causes javaScript error
Posted by Don at 5/30/2006 8:33:10 AM
I have a page with several controls on the page and all except one are
hidden. This page works like a wizard by hiding and showing controls
has the user clicks next. The control are hidden by setting
visible=false in the code-behind, so they are never rendered. My next
button validates the pa... more >>
need help on parser error
Posted by AVL at 5/30/2006 12:21:02 AM
hi,
I've a problem in accessing user controls when I deploy the application in
the production server..
I'm receiving the following error...
Ambiguous match found.
Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="false"
Codebehind="CommViewEvents.ascx.cs"
Inherits="HydP... more >>
SetRenderDelegate() not firing into my code
Posted by Rick Strahl (MVP) at 5/27/2006 9:57:06 PM
Hi all,
I'm working on a control that has to inject some markup into another control
at the end of rendering. I'm trying to use SetRenderMethodDelegate() to make
this happen.
Unfortunately I can't seem to get this to work.
BindingItem.ControlInstance.SetRenderMethodDelegate( new
Rende... more >>
asp:fileupload within Atlas Update Panel
Posted by yorksc at 5/26/2006 12:13:01 PM
I am having problems retireving the file information when you place an
asp:fileupload control inside an Atlas UPdate Panel.
Has any body got a solution to this problem?... more >>
Nested controls: possible workaround for limitation?
Posted by Stef at 5/26/2006 6:17:35 AM
I everyone,
I have created User controls (ascx) that are display in an
hierarchical way.
Let me explain a bit what I've done so far:
Let's say a customer make a request, this request will contain at least
one result. This result will have list of different member class.
Within each list w... more >>
calender control
Posted by Jessica Weiner at 5/25/2006 10:01:49 PM
I have an ASP .NET web application and I am using the calender control to
display the month view and some events that are scheduled to happen during
the month. Whenever the user selects a month, the page re-loads to show the
update calender view. I would like to make it as seamless as possible so... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CustomControl - how to populate Controls collection
Posted by Bob at 5/25/2006 9:21:01 AM
Hi,
I am writing a custom control with the Render method. I am writing 5 html
input radio buttons in a group. I don't want postbacks but I need to add the
Isvalid support (Inherits WebControl.BaseValidator). Should I render these
htmlinput controls another way other then writing the tags... more >>
Date
Posted by Aubyone at 5/24/2006 10:56:02 PM
I am using the .net calander control and it return the date in MM/DD/YY.
Where the server is setup DD/MM/YY.
Can am one tell me why date would come out diiferent to the server regional
seting?
Where does the it get the date format from and how can I force it to be
DD/MM/YY format?
... more >>
LoadControlState Event Not Firing?
Posted by seraphimrhapsody NO[at]SPAM gmail.com at 5/23/2006 8:08:45 AM
Hello all,
I've created a custom control that inherits CompositeControl for the
purpose of extending the gridview and using dynamically created
dropdowns to filter that gridview.
My main problem is persisting the dropdowns' values across postbacks,
so I thought that control state would be p... more >>
need help on user controls
Posted by AVL at 5/23/2006 4:20:02 AM
hi,
I've a problem in accessing user controls when I deploy the application in
the production server..
I'm receiving the following error...
Ambiguous match found.
Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="false"
Codebehind="CommViewEvents.ascx.cs"
Inherits="HydP... more >>
Extending System.Web.UI.Page with new properties
Posted by Christophe Peillet at 5/23/2006 12:09:02 AM
I am trying to extend the Page class with a new BasePage class containing
common elements required by all of our web pages. By itself this is a very
simply task, but whenever I add properties to the BasePage class they appear
in the Intellisense tool on the code-behind but not on the property... more >>
Data Bound Templated Control - design time problem
Posted by Manu at 5/22/2006 6:55:13 AM
I have a templated databound control that works fine in run time.
However, in design mode, I'm having a cosmetic problem.
In my control designer I overrided the TemplateGroups property to allow
editing the templates graphically. I also set the SupportsDataBinding =
true in all the template... more >>
need some advice
Posted by Ben at 5/20/2006 5:15:54 PM
Hi,
I come from classic asp and i need some advice for this application.
It's about a computer reservation system in a school. I want a page where a
student can see his own made reservations, the number and the date of each
reservation, and where he can check a checkbox beside each reservation... more >>
interface alteration
Posted by nate at 5/19/2006 9:19:02 AM
In Dino Esp... book he talks about how user controls are the way to replace
the old file include method. Then he goes on to say that if it is a large
site it becomes a problem because every time that you change the interface of
that control you will have to recompile all the pages that referen... more >>
get the output of the render event on the server
Posted by mr. dropdown at 5/19/2006 1:36:32 AM
Hello,
Is it possible, after the control finishes all the rendering part, to get
the html that i just created before moving to the client, on the code behind
for example?
Thanks.
... more >>
user controls: design-time vs. programmatic behavior
Posted by matt.delvecchio NO[at]SPAM shell.com at 5/18/2006 5:23:13 PM
hello,
ive got a usercontrol that has some textboxes, a button, and a handler
routine for its button_click. when this usercontrol is dropped into a
page via the designer, it functions as expected -- when the button is
clicked its event handler loads up the routine and i do db stuff.
however... more >>
programmatic usercontrol woes
Posted by matt.delvecchio NO[at]SPAM shell.com at 5/18/2006 4:33:50 PM
hello,
i have a user control that works great, when its used as a design-time
controls. however, when i try to use it as a programmtic control, im
running into troubles.
the control is pretty simple: it has a textbox, and a grid. in my
webform, on button_click i call one of its methods to d... more >>
anyone built a listview
Posted by kurtn at 5/17/2006 5:51:02 PM
is there any way to build something like a listview control for an asp.net
web page?? I really like the functionality that a listview has. Anybody
know how to do something like that?
thanks... more >>
nested controls
Posted by mr. App at 5/17/2006 1:02:35 PM
I'm trying to do the following:
<ctl:Control1 id=a1 runat=server>
<ctl:Control2 id=a2 runat=server Text="temp" />
</ctl:Control1>
Both controls are simple custom web controls. The problem is that the inner
control is not being rendered. I read in MSDN that I have to add
[PersistChildre... more >>
need help on ppt files
Posted by AVL at 5/17/2006 2:26:02 AM
Hi,
I've a requirement in which I need to show a powerpointf file in a web
page...
How can I acheive this? How can we show word documents or powerpoint files
in web pages in asp.net?... more >>
Can I control existing HTML by using a custom control?
Posted by mr. App at 5/16/2006 12:52:16 PM
Hi,
I would like to know if it's possible to do something like the following:
<ctl:PermissionControl UserName="johndoe">
<table>
<tr>
<td>Hello John!!!</td>
</tr>
</table>
</ctl:PermissionControl>
I would like to check the UserName property on the ser... more >>
Howto add eventhandler to web custom usercontrol?
Posted by jimmy.liang NO[at]SPAM gmail.com at 5/16/2006 1:25:24 AM
hi,
Is there any way to add eventhandler to custom usercontrol and could
set it at webForm?
i can add eventhandler on code, such as at Page_Load, add:
MyControl1.SelectedIndexChanged = this.OnSelectedIndexChange;
but, if i want to add eventhandler at webForm, like:
<uc1:MyControl ... more >>
view state question
Posted by mr. App at 5/16/2006 12:00:00 AM
In many custom controls examples I see the following code:
public string Text
{
get
{
return (string)ViewState["Text"];
}
set
{
ViewState["Text"] = value;
}
}
... more >>
get control properties after postback
Posted by mr. App at 5/14/2006 4:15:18 PM
I know how to create a custom control by using the Render method. the
question is, if I have 2 properties, for example:
protected override void Render(HtmlTextWriter output)
{
output.Write("<input type=text name=" + this.UniqueID + " ");
output.Write("value=" + this.value + " text=" + ... more >>
Loading Combo's (dropdownlist) and java script
Posted by Hero41Day at 5/11/2006 10:00:24 PM
Hi,
I have a very weird problem with a control that I'm trying to build
now.
I'm having two dropdownlists controls (ASP.NET) where the primary one
hold the categories and is populated when the page is loaded, and the
second one is populated depend on the value selected in the first one.
To... more >>
Bidning control
Posted by Anton at 5/10/2006 8:00:13 AM
I create simple control.
namespace DatePick
{
[DefaultProperty("Text")]
[ToolboxData("<{0}:DatePick runat=server></{0}:DatePick>")]
public class DatePick : TextBox
{
[Bindable(true)]
[Category("Appearance")]
[DefaultValue("")]
[Localizable(true)]
public string Text
{
g... more >>
Dynamically adding a stylesheet
Posted by Nathan Sokalski at 5/8/2006 6:06:21 PM
I want to dynamically add a stylesheet using <style type="text/css"></style>
tags. The code that will use this stylesheet will be shared, so I will not
have control over what the user does as far as stuff like adding
runat="server" and id="someid" attributes to the <head> tag of their .aspx
... more >>
Persisting collection data of a webcontrol when leaving the collection editor in VS2005
Posted by mehdi.mousavi NO[at]SPAM gmail.com at 5/6/2006 4:55:56 AM
Hi folks,
I'm developing a WebControl, that has got a property that's supposed to
return a collection of data. Whenever I try to populate the mentioned
collection under the visual designer, the items I add to the collection
are not displayed in the .aspx file.
Here's what I would like to have... more >>
context is null in my TypeConverter.ConvertFrom() method
Posted by lucianoluke NO[at]SPAM bol.com.br at 5/5/2006 6:09:18 AM
Hi all,
I am trying to have a collection serialized to a property of the parent
control in HTML.
The collection items are controls found in the page. When the designer
is being loaded, My TypeConverter.ConvertFrom is called. The problem is
that ITypeDescriptorContext context is null.
... more >>
Limiting Choises
Posted by Msdn at 5/4/2006 12:00:00 AM
I would like to develop a Web User Control where the user can type som text
eg. e-mail, number or plain text.
I would like a public property where the user can choose which kind of input
the control contains.
How do i limit the choises when the control is inserted on a page, that
means i... more >>
Parent String on Web User Control
Posted by Msdn at 5/3/2006 2:20:46 PM
I have a web usercontrol which contains a Text box and a Custom Validation
Control
On a page i have a Public String ErrStr
When i perform validation i would like to add the validation result to the
Public String ErrStr on my parent page.
How do i do that ?
Regards Keld Jakobsen
... more >>
Losing Delegate On Postback
Posted by Chris A. at 5/3/2006 11:01:02 AM
I have authored a webcontrol that contains a SimpleCellCollection of
SimpleCell objects. Both have custom typeconverters that handle viewstate
de/serialization. When I click a SimpleCell in the browser, I get a postback
event but I never sink the ImageClickEventHandler delegate. I have seen po... more >>
Default Values for Control Properties
Posted by dolfandon NO[at]SPAM gmail.com at 5/3/2006 9:57:41 AM
I have a custom control that has a bunch of properties on it. I added
the DefaultValue attribute to it and it all seems to work fine with
showing up in the desiger and all. My question is, how do I get at that
default value at run time? If the user does not enter anything in the
designer then th... more >>
Asp.net2 Menu control dynamic display based on User Role!!!Help please!!!
Posted by Sri Reddy at 5/2/2006 9:30:08 AM
Hi
I want to create a horizontal menu on my website being built using
asp.net2 with menu items based on the "role" of the user who logged into
the system.Role iformation will be read from database...
For ex:
for a user with "Admin" role, i would like to show "Menu Item1", "Menu
Item2", ... more >>
Cascading Style Sheet Is Such A Hazard To Your Privacy |||||
Posted by Radium at 5/1/2006 8:50:25 AM
Cascading Style Sheet [.css] is such a hazard to your privacy. It
allows others on the internet to see your monitor and files. It allows
them to copy images on your monitor to their computers. It also allows
them to copy files from your computer to their computers. It is
dangerous. Avoid at all ... more >>
|