all groups > asp.net building controls > october 2006
Binding a single object to a control
Posted by paul.hester NO[at]SPAM gmail.com at 10/31/2006 8:25:59 PM
Hi all,
This probably sounds like a stupid question, but what is generally the
recommended way to display a business object in the aspx file for an
object fetched in the code behind file?
Normally I've been fetching the object in the code behind and exposing
the object's properties that I n... more >>
Custom Control problem.
Posted by David at 10/29/2006 10:27:58 AM
Hi all,
I am not quite sure how to phrase the subject, so apologies.
I am writing a custom control. It is using a textbox. I create the text box,
but cannot read the contents of it later.
Here is my code...
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sy... more >>
Two question about ASP.NET Custom Controls [Newbie]
Posted by DaBrain at 10/27/2006 4:49:09 PM
1) I am developing custom controls and was wondering how I can
implement the URL ~ deal.
~/page/page.aspx
How do I translate ~ to the web root? I must be overlooking something
very simple here?
2) How do have something like this
<aaa:control runat="server">STUFF HERE</aaa:control>
... more >>
Render Data By Group
Posted by senfo at 10/27/2006 11:35:40 AM
I've been trying to come up with a way to use the built in ASP.NET
controls to design something that displays the results of a database
query by group like is possible in an Access report to, for example,
display a list of managers and all of their employees. For example:
Type 1
Column ... more >>
[Atlas Beta1] how to manually trigger an async postback
Posted by Patrick Ruzand at 10/27/2006 9:45:01 AM
Hello,
I have developed a custom ASP.NET WebControl and I am now testing a possible
Atlas integration, to take advantage of the UpdatePanel partial refresh.
My WebControl subclass consists on a simple control that renders itself as
an <img> tag with an associated <imagemap>, the imagemap... more >>
Can a repeater's ItemTemplate instantiate derived classes?
Posted by Big Daddy at 10/27/2006 8:47:17 AM
I posted this in a different group yesterday with no responses, so I'll
try here.
I would like to have a repeater class like this:
<asp:Repeater ID="CriteriaRepeater" runat="server" >
<ItemTemplate>
<uc1:BaseControl ID="BaseControl1" BindData='<%#
Container.DataIt... more >>
usercontrol with include file
Posted by Shailesh Patel at 10/26/2006 1:14:31 PM
Hi,
I put include file in usercontrol and use this UC in another aspx page.
However, aspx file writes <!-- #include virtual="/fres/fues.htm" --> in aspx
file but did not display content of include file.
I would like to know how to do this?
Thank you.
Shailesh
... more >>
Wrapping mouse over help icon up Web User Control
Posted by steve_barker333 NO[at]SPAM hotmail.com at 10/25/2006 1:44:46 PM
Hi guys!
I have some pretty neat code that shows a floating help box over the
top of an ASP.NET screen when an image is mouse-overed.
I've included the code for this at the end of this post...
I was wondering if there'd be any way to wrap this all up as an ASP.NET
Web User Control that ca... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
URL Picker in VS 2005 Property Window
Posted by steve_barker333 NO[at]SPAM hotmail.com at 10/25/2006 1:04:08 PM
Hi guys!
I'm sure this is an easy question to answer, and I'm equally sure that
the solution involves designer attributes, but I can't seem to find the
correct attribute to use!
Here goes...
You know the Image control in ASP.NET? When you draw an instance on a
web form, and click in Imag... more >>
How to display a property of a custom control with a dropdown styl
Posted by Kay at 10/25/2006 2:35:02 AM
Hello,
I have written my own custom control and I want one of its properties to
display as a dropdown list when clicked, so the user can select from the
list, it would be similar to the asp textbox control which has a ‘TextMode’
property and when clicked on, displays as a dropdown list ... more >>
How to establish connection of DataGridView Control to Stock Excha
Posted by Jeet Disuja at 10/25/2006 1:07:02 AM
Dear Sir,
I m develop a application in vb.net which update a live prices of stocks by
a website named (www.nseindia.com)
i m using datagridview control for this.
Please give ur suggestion how can i bind my datagridview control to
www.nseindia.com website for live updation of stocks.
... more >>
Custom Composite Control inherited from TextBox
Posted by dan_williams NO[at]SPAM newcross-nursing.com at 10/24/2006 5:59:50 AM
Hi,
I'm trying to create my own custom control based on the textbox, but
with additional properties to specify whether or not the textbox is a
required field, and if its needs to be validated against a regular
expression. I'd also like it to change its backcolor and be focused on
if it's inva... more >>
Suppress ServerValidate on Page?
Posted by philaphan80 NO[at]SPAM yahoo.com at 10/23/2006 1:39:29 PM
This may or may not be possible, so please let me know either way. I'm
just attempting to do something fancy and I haven't been able to find
any documentation on this specific issue anywhere.
I have a custom validator which runs only on the server side. It
"attaches" itself to a label to dis... more >>
Accessing the Field of a Bind Expression at runtime.
Posted by dotNetProfessional at 10/21/2006 3:39:01 AM
Greetings
I'm currently attempting to write a control that will extend functionality
of databound controls (ie TextBox etc). However, while I can access the
DataSource the control is bound to. I cant seem to identify which property
of the DataSource the control has been bound to.
For ex... more >>
getting Font in my WebControl
Posted by GaryDean at 10/18/2006 6:02:51 PM
I writing a webcontrol that I inherited from WebControl. In the control,
me.font is a FontInfo object. I'm producing a crystal report from my
control and to set the font for the report, using Crystal's Applyfont
method, for that, I must have a System.Drawing.Font object. Is there anyway
... more >>
Problem persisting asp.net 2.0 property in design-time
Posted by JesperA at 10/17/2006 8:13:19 PM
Hi!
I have a asp.net 2.0 webcontrol with a property called TestProp (type:
string), if i change value in the property-window in vs.net manually
everything works fine. The value is persisted to the HTML-source.
But if I connect a designer and change the value in code (opening the
desigen fr... more >>
Newbie, connection timing out problem
Posted by verci at 10/16/2006 9:59:33 PM
Hi, sorry if this seems stupid :(
I'm running WindowsXP, Asp.net 1.1 and Sql Server 2000 , the problem is the
my pages are timing randomly, I use a ODBC connection to the database in
the global.asa file (below), the problem is that my pages some times work
right and some times the... more >>
ITemplate
Posted by Ben Schumacher at 10/13/2006 2:01:00 PM
Ok smart guys and gals ...
I have a GridView control with a dynamically created checkbox column. The
checkbox is created using ITemplate interface. In my class that implements
the ITemplate interface I set the AutoPostBack property of the checkbox to
True. When the checkbox is clicked, I wa... more >>
CompositeControl & CompositeDataBoundControl question
Posted by Griff at 10/11/2006 11:43:52 AM
Hi
I want to create an n-tier custom server control.
The idea is that the control will determine [at run-time] which "view" will
be used. By this I mean User A may want the data displayed as a tree-view,
User B as a datagrid etc, etc.
So, I can envisage that in some circumstances it is... more >>
Control Problem
Posted by shapper at 10/10/2006 3:25:38 PM
Hi,
I created my first custom control.
I don't get any error when I use it but it doesn't show anything.
Could someone tell me if I am doing something wrong in my custom
control?
I am sure is something simple which I don't know.
Thanks,
Miguel
Here is my custom control code:
' -- [I... more >>
passing a token from pageA.aspx to pageB.aspx
Posted by Jay at 10/10/2006 11:34:02 AM
I am trying to get pageA.aspx gridView to pass a key (say deptID) to
pageB.aspx which will use the value passed as a filter in it's own griView
query.
On pageA gridView I have a hyperlinkField with navigateURL property =
~/pageB.aspx?deptID={0} and it is bound to deptID (which is another colu... more >>
Change the tag prefix of a custom control
Posted by shapper at 10/10/2006 10:59:24 AM
Hello,
How can I change the tag prefix of a custom control.
My Asp.Net 2.0 custom control tag prefix is cc1.
Thanks,
Miguel
... more >>
Composite control not appearing in toolbar...
Posted by Griff at 10/9/2006 4:53:11 PM
Hi - I'm just experimenting and following the example in:
http://msdn2.microsoft.com/en-us/library/ms379565.aspx
I have a solution that has my controls project and a "test" web project.
When I build the controls project, the control that inherits from
"WebControls" appears fine in the tool... more >>
Building Controls advice
Posted by Griff at 10/9/2006 4:23:43 PM
I'm after a book that is the "must have" book on developing composite server
controls.
One person recommended the following book:
Developing ASP.NET Server Controls and Components (Paperback)
by Nikhil/Datye, V. Kothari (Author), Nikhil Kothari (Author),
Vandana Datye (Aut... more >>
Control deployment question
Posted by Griff at 10/9/2006 3:17:12 PM
Hi - complete newbie question, so please bear with me...
With classic ASP, I could have a folder containing "common code" that was
accessed by ALL the different websites on my server. As the "common code"
was improved, I would create a new folder for each upgrade (v1.0, v2.0, v3.0
etc) and... more >>
Detecting the browser once IE7 comes out
Posted by Nathan Sokalski at 10/9/2006 1:26:43 AM
I want to make sure I am doing a browser detection that will work once IE7
is released. My current detection statement (written using VB.NET) is:
If Me.Request.Browser.Browser.ToUpper() = "IE" Then
'Code to use for Internet Explorer browsers
Else
'Code to use for browsers other tha... more >>
Force Compiler Error/Warning Within Custom Control
Posted by philaphan80 NO[at]SPAM yahoo.com at 10/6/2006 1:31:26 PM
I assume there's a way to do this since I've seen third-party
components act the same way.
How do I force the compiler to throw an error or warning message during
compile or build? For instance, if a certain property of my custom
component isn't set, how can I force my compile to fail -- and ... more >>
Loading a user control during runtime
Posted by ukeu at 10/5/2006 9:36:37 AM
Hi All,
I wish to load some user controls on a web page dynamically.
I could use the LoadControl method, but there is a catch - the user
control needs to be dynamically built and then loaded at runtime. The
controls will not part of the initial project so they won't be
pre-compiled.
Is t... more >>
That assembly does not allow partially trusted callers
Posted by Chris Davoli at 10/5/2006 7:41:03 AM
Anybody know how to fix this?
Found some stuff on google about this. Says to enable jitDebugging="true" in
web config. Not sure if that will work
ee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ****... more >>
Object Delayed loading dynamically into Placeholder
Posted by MattKlepeis NO[at]SPAM gmail.com at 10/5/2006 7:28:51 AM
I have a placeholder and I have a section of code that will load a
question into the placeholder depending on what is selected in a group
of dropdownlists.
The problem that I am running into is that the questions that are
loading are for the previously selected request. The questions are not
... more >>
Javascript alert message problem
Posted by Tony Girgenti at 10/4/2006 5:35:57 PM
Hello.
I'm developing and testing a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
computer. I'm using a web form.
Using this line of code works great. It displays a little message box with
the alert message in it.
Me.b... more >>
ListItemCollection[index].Selected property not updating
Posted by studen771 at 10/4/2006 12:54:02 PM
Thanks in advance to anyone who can help :)
I have a custom control that includesa ListItemCollection property that
allows clients using it to dynamically add/remove/etc items just as you would
a normal ListBox.
However, my control uses the HtmlTextWriter to render an html <select> which ... more >>
Change ErrorMessage Text Dynamically
Posted by jdp at 10/3/2006 10:13:11 AM
Is there a way to set/change the ErrorMessage and/or Text property of
validationcontrols without making a trip to the server? What I have so
far is a usercontrol that inherits from BaseValidator and overrides the
Pre_Render event in which I have javascript code to do validation. I
also overrid... more >>
Custom CustomValidator: Properties Window Problems
Posted by philaphan80 NO[at]SPAM yahoo.com at 10/1/2006 7:05:50 PM
Hello. I'm still rather new to building custom controls, so please be
gentle. ;)
What I'd like to be able to do, when validating, is drop my
CustomServerValidator (see below) and a generic Label control onto the
page. Then, all I'd have to do is set two properties:
ControlToValidate and my... more >>
|