all groups > asp.net building controls > august 2004
Filter by week: 1 2 3 4 5
Help: RTF Control for Web Page
Posted by windsurfing_stew NO[at]SPAM yahoo.com.au at 8/30/2004 12:04:50 AM
Hi All,
Hoping someone has done something like this in the past. I'm trying
to work out the best way to add an RTF control to my web page and save
it's contents as html back to a database.
Currently I have a page with a textbox. The user enters plain text
and hits save. The text is store... more >>
Double-qoutes problem in CreateChildControls()
Posted by chris at 8/29/2004 1:09:04 AM
In my CreateChildControls() function, I am adding onClick code to a HyperLink
control. The OnClick makes a call to a javascript function and looks like
this:
_hlDisplay.Attributes.Add("OnClick", "javascript:showPopup(document.all." +
this.ClientID + "_" + textBox.ID + ", " + "\"test string\... more >>
Build a dynamic menu for asp.net page
Posted by zorhel at 8/25/2004 10:09:13 AM
Hi.
I will do a dynamic menu for a asp.net app.. I don't know yet if how I will
get the data for populate this menu: from a sql server database, xml file or
what, but I know it will be dynamic any probably encapsulated in a control
(user or custom).
Someone have any logic code, samples, li... more >>
How to add an event handler at run time?
Posted by Jeff at 8/24/2004 10:25:04 AM
I have created an array of buttons at run time and need to associate them a
click event. I have added the following routine as the event:
public void UpdateClick(Object sender, EventArgs e)
{
lblError.Visible=true;
lblError.Text="It worked";
}
Below I have included the line of ... more >>
validating a file's digital signature
Posted by Dimitris Papadimitriou at 8/23/2004 10:19:27 AM
Is there a way to validate the digital signature of a file (the one show in
it's properties window of windows explorer) using code (preferable vb code)?
dimitris
... more >>
Regex question
Posted by Hailstorm at 8/20/2004 9:20:11 AM
How can I control if "a textbox is empty or not" with regex validation? I
don't want to use required field validator because I have a masked textbox
control and it has "ValidationExpress" property.
For example, if I want to control if it's a time value, I use
"(([0-1][0-9])|([2][0-3]))[:]([0-5][... more >>
Templated Data-Bound Control Sample
Posted by news.microsoft.com at 8/20/2004 9:05:18 AM
I have been attempting to create a templated data-bound control, using the
sample as a guide
(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpcontemplatedd
ataboundcontrolsample.htm). The problem that I'm running into is that child
controls in the template, such as labels, lose th... more >>
System.ComponentModel.Design.ArrayEditor - How to
Posted by Peter Ehli at 8/19/2004 9:59:36 AM
I have a custom control which is a set of tab images like in hotmail. In my control I have a hard coded array that sets the string
value of the tabs.
private String[] tabCaptions = { "Home", "Tab 1", "Tab 2", "Tab 3" };
I would like these tab captions set by the user of my control via the pro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HELP!!HELP!! - Import XMl into SQl using ASp
Posted by Michael Persaud at 8/17/2004 10:09:40 AM
HI,
I have a xml file and would like to import its contents into a table in
SQl2000
can some one say how? it has to insert multiple records
Thanks MP
... more >>
Properties, JavaScript and Viewstate
Posted by Daniel Buchholz at 8/16/2004 2:14:36 PM
Hi all!
I´m trying to build a custom panel control that has the ability to
expand or collapse at runtime without postback. I switch the visibility
property of a DIV to do this.
But what is the proper way of persisting the state of the panel through
a postback cycle. Currently whenever a ... more >>
use UrlEditor in Component Editor forms
Posted by Kevin Marshall at 8/16/2004 11:11:08 AM
Hello everyone,
I have built a server control and managed almost everything I wished to
achieve with it using the book MsPress book on developing server controls, I
do have one problem. I have made a component editor (property builder) form
and its working perfectly apart from my URL propertie... more >>
Styles and CustomControls
Posted by Reiner Max at 8/15/2004 1:46:36 PM
Hello
I need to format my Custom Controls with Styles.
Now if I use the css features from .NET then the styles are renders
direct in the control tag and produce a lot of code.
To prevent this and add my own css file and modify
this with my custom control and design time.
What is th... more >>
Custom attributes/properties at design time (serialization?)
Posted by GoogleGroups NO[at]SPAM WALDOLand.com at 8/15/2004 12:52:02 PM
OK. here's what I want to do.
I have a text editor control that I created. I also have a seriedsof
palette controls that I have created for use with the text editor. The
Idea I want is that the page developer can slap any number of editors
on a webform and any number of palettes on the same we... more >>
Accessing ControlDesigner from control?
Posted by elora_c NO[at]SPAM yahoo.com at 8/14/2004 7:07:58 PM
I'm trying to do the following:
public class MyControlDesigner : System.Web.UI.Design.ControlDesigner
{
private string m_html = "";
public string Html
{
get { return m_html; }
set { m_html = value; }
}
public override string GetDesignTimeHtml()
{
... more >>
How to expose WebCustomControl event
Posted by Mehdi at 8/14/2004 3:22:48 PM
Hi,
I have been working on this for more than a day, with no joy and I was
wondering if someone could help me with this:
I am trying to create a WCC (WebCustomControl) that contains a LinkButton
(server side). I have compiled this WCC, added it to my VS toolbox and it
is working ok, except... more >>
How to duplicate a control?
Posted by Neo at 8/14/2004 3:20:57 PM
Hi,
I want to place two buttons on the page. These two button are identical.Is
there a way to duplicate a button? or I have to assign all properties of one
button to another.
Thanks in advance.
Neo
... more >>
how to add class attribute to html code?
Posted by Neo at 8/13/2004 9:23:44 PM
Hi,
I have a control that has a property. The property is a class type. I have
made it expandable in property grid like fontinfo class.
But I set a property of that class, the property is not written to the
control as an inline attribute.
For example: if you set size property of font in lab... more >>
select a url at design time
Posted by Neo at 8/13/2004 8:50:45 PM
Hi all,
I have the following code from MSDN.But when I click a button in property
grid at design time, an error is popup:" Object refrence not set to an
instance of an object". Is there anything I missed?
<EditorAttribute(GetType(System.Web.UI.Design.ImageUrlEditor),
GetType(UITypeEditor)... more >>
DataSources from Session??
Posted by Chad McCune at 8/12/2004 9:18:22 AM
I have some server controls I've built that store their properties in the
ViewState like good little controls :) However, When I set my "DataSource"
property of the controls to a DataSet or DataTable etc thats in the session,
it copies it into the ViewState. The DataGrid control doesnt seem to ... more >>
Custom Control design time access to SQLConnection on Web Page
Posted by Robin Shaw at 8/12/2004 8:56:20 AM
Hi
I'm developing a server web control and it requires a SQLConnection object.
Is there a way at design time to display a list of available SQLConnection
objects that have been dropped on the page as a property of my custom
control?
Thanks in Advance
... more >>
"Error Creating Control" and "Cast from String"
Posted by lisa NO[at]SPAM starways.net at 8/12/2004 6:58:59 AM
I'm creating a custom date control. In appearance, it's just a
textbox and a button. It has three custom properties: CalDate,
CalDateType and Required. Required is just a boolean, and CalDate is
the contents of the textbox. CalDateType is an enum with four values:
CalDate, Today, Jan_01_1900... more >>
Does .NET provide any mechanism to replace ActiveX controls on web???
Posted by shoeib NO[at]SPAM gmail.com at 8/11/2004 10:29:45 PM
Hi,
Is there any mechanism in .NET Framework which can help me to replace
activex controls on my web page??
As activex controls need to be downloaded on the client machine, and
my clients are not interested in downloading any such binaries to
their machines for a bunch of reasons, including... more >>
Clearing viewstate for dynamic user controls
Posted by Perecli Manole at 8/11/2004 2:41:40 PM
I have a form that dynamicaly loads user controls based on user
postbacks. Everything works well except that the framework seems to
want to match the viewstate data from my previous control to the new
control on post back even through the IDs are all different. Is
there a way to selectively clea... more >>
How do I dynamically add a user control to a web page?
Posted by SteveS at 8/11/2004 9:38:17 AM
I have a user control which I created that does not work when I add it
dynamically to a web page. My code looks like this.
For x = 0 to max
'Instantiate a new conrol
Dim ctrlMyNewControl as new MyNewControl
'Assign the application Id
ctrlMyNewControl.ApplicationId = x
'... more >>
extend Regular expression validator control
Posted by shiv at 8/10/2004 8:51:49 AM
Hi all,
I would like to extend Regular expression validator control
to read from a config file, the custom expressions to
validate.
basically would like to increase the number of validation
expression a default control has.
can anybody throw some light on this?
thanks
shiv... more >>
Implementing IPostBackDataHandler in a custom web control with VB.NET
Posted by adawson NO[at]SPAM ufcw.org at 8/9/2004 1:41:54 PM
I have created a custom class with Visual Basic that inherits from the
drop down list web control. In order to update the value properly, I
have tried to implement IPostBackDataHandler, but receive the
following error message:
Interface 'System.Web.UI.IPostBackDataHandler' is already implemen... more >>
Inherited Web Label doesnt properly initialize "Text" property
Posted by Aaron Abdis at 8/9/2004 9:38:36 AM
Hello!
I have a control i wrote which inherits from the built in Label control in
ASP.NET. I wrote this control to add the "for" attribute of a 'real' web
label. It worked fine and normal. I just recently reworked it so that the
FOR property has a drop down in the property grid which lists all... more >>
How to add images in a DataGrid
Posted by SamuelSudhakarJ at 8/9/2004 2:31:04 AM
Hi Friends,
I have a database having all the country names and some geogrphical details
of the countries. I am displaying it in a DataGrid. I want to add Flag of
each and every country.
My customer is breaking my head.
Can anyone guide me?
Please!!!
--
ThankZZZ,
SamuelSudhakarJ... more >>
Custom Webcontrols, VS EDI support and intellisense?
Posted by Peter Lykkegaard at 8/8/2004 10:41:02 PM
Hi All
I have been working on some custom webcontrols. Among other things I
have extended the datagrid with a few things
Everything is working perfectly nice and smooth
But how on earth do I add xsd schemas for intellisense etc?
My webcontrols is in the namespace: Project.Web.UI.WebContro... more >>
Multiple dependent dropdownlists in whidbey
Posted by geoff_neil_taylor NO[at]SPAM yahoo.com at 8/6/2004 11:48:48 AM
Hi,
I'm trying to get 3 DropDownLists in an ASP.NET 2.0 page working
together so that the value selected in DropDownList1 is used as a
parameter which tells DropDownList2 how to populate itself. Equally,
the value selected in DropDownList2 should tell DropDownList3 how to
populate itself. The... more >>
Events in a custom template control
Posted by Matthew Judd at 8/6/2004 11:11:02 AM
I have written a template control which contains a button. I have added a
public event to the control which I raise on the button's Click event. In the
main page that contains an instance of this template control I have code in
the codebehind page to handle this event. My problem is that this ... more >>
Capture the file path
Posted by Caio at 8/5/2004 4:32:47 PM
Hi,
I need to capture a file path in the user machine. I'm trying to show a Open
Dialog without success... any ideas?
[]'s
Caio
... more >>
Calling IsValid in a web control
Posted by Simon Harvey at 8/5/2004 10:40:30 AM
Hi All
Is there anyway to check the IsValid property in a user control?
I've made a user control that holds a number of validators. There are also
event handlers in the control that handle button presses. The problem is
that the IsValid property is defined on the page and isn't available in ... more >>
Controls Problem
Posted by Stephen at 8/5/2004 8:34:22 AM
Hi,
I have a question. I have created an application using VS.NET and the
application runs fine on IE, (I mean all the image buttons, textboxes etc.)
I understand that validation control features dont work on Netscape, but why
does'nt imagebuttons and buttons work on Netscape.
How do I solve ... more >>
Tricky problem with WebControl vs. Panel
Posted by Ovidiu Birladeanu via .NET 247 at 8/5/2004 5:06:31 AM
I have built a class derived from WebControl, and added some=
specific functionality to it=2E=2EThen I built a set of web controls=
based on that class=2E=2E=2EEverything works fine, until i needed a=
panel like functionality and all my stuff=2E=2EAll I could do is=
create a web control deri... more >>
data repeater question
Posted by Stephen at 8/2/2004 1:12:37 PM
Hi,
I have a quick question. I am displaying all the orders that are active. I
am making use of a datarepeater with checkboxes to display data and a submit
button to insert into the database.
suppose i want to make the orders inactive using the checkboxes and click on
the submit button shou... more >>
Custom CheckBoxList "Length cannot be less than zero" error
Posted by MBaskey2002 NO[at]SPAM yahoo.co.uk at 8/2/2004 7:33:01 AM
Hello I have a custom CheckBoxList control so I can add attributes to
listitems....
All works fine and I have a RadioButtonList that does the same, but
for this when postingback multiple times and then changing the
selected option I get the error
Length cannot be less than zero. Parameter nam... more >>
|