🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.vcl.components.using.dotnet
3 messages
3 total messages Started by Philip Bairstow Sat, 31 Dec 2005 11:19
Asp.NET
#59
Author: Philip Bairstow
Date: Sat, 31 Dec 2005 11:19
27 lines
2233 bytes
I am using BDS2006 with Update 1. I am trying to create a ASP.NET project, 
when I drop a calendar component on the form I can double click on Selection 
Changed event in the object inspector a event handler is created and I can 
write code that is executed when this event occurs.

When I drop a HTML button on to the form, give it a name and try clicking on 
any of the event in the object inspector nothing happens, how do you assign 
events to HTML buttons  ?

I am new to both ASP.NET, BDS 2006 but when BDS2006 arrived I installed it 
(without update1) and created a ASP.NET project. I placed two Text Boxes and 
a HTML Button on the form, clicking on the HTML button a event handler would 
be created and I could write some code.

How do I connect to a SQL server using ASP.NET ? I have tried using a 
SQLConnection (System.Data.Dll), filled in all my server details and run the 
application but I can not open the connection without an exception being 
raised.
I know my SQL server details are correct as my ISP (1and1) provide a web 
version of enterprise manager for there customers and it lists all the 
server details.

Any help would be appreciated.

Regards

Philip 
Re: Asp.NET
#60
Author: Bob Swart
Date: Sat, 31 Dec 2005 13:07
36 lines
2249 bytes
Hi Philip,

> When I drop a HTML button on to the form, give it a name and try clicking on
> any of the event in the object inspector nothing happens, how do you assign
> events to HTML buttons  ?

HTML controls are what the name says: pure HTML controls, and no ASP.NET
controls. You need to drop a Button from the "Web Controls" category in
order to write code for the click event.
 
> I am new to both ASP.NET, BDS 2006 but when BDS2006 arrived I installed it
> (without update1) and created a ASP.NET project. I placed two Text Boxes and
> a HTML Button on the form, clicking on the HTML button a event handler would
> be created and I could write some code.

Close the HTML Controls category, and use the Web Controls catgeory
instead ;-)

See also http://bdn.borland.com/article/0,1410,33279,00.html

> How do I connect to a SQL server using ASP.NET ? I have tried using a
> SQLConnection (System.Data.Dll), filled in all my server details and run the
> application but I can not open the connection without an exception being
> raised.

See http://www.drbob42.com/aspnet/ for some articles like the one I
mentioned above.

> Philip

Groetjes,
          Bob Swart (aka Dr.Bob - www.DrBob42.com)

-- 
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
Re: Asp.NET
#61
Author: Philip Bairstow
Date: Sat, 31 Dec 2005 13:51
55 lines
2803 bytes
Hi Bob,

Thank you for taking the time to look at and answer my questions.
As always its easy when you know how :)

Have a happy 2006.

Regards

Philip

"Bob Swart" <b.swart@chello.nl> wrote in message 
news:43B6828F.63B94857@chello.nl...
> Hi Philip,
>
>> When I drop a HTML button on to the form, give it a name and try clicking 
>> on
>> any of the event in the object inspector nothing happens, how do you 
>> assign
>> events to HTML buttons  ?
>
> HTML controls are what the name says: pure HTML controls, and no ASP.NET
> controls. You need to drop a Button from the "Web Controls" category in
> order to write code for the click event.
>
>> I am new to both ASP.NET, BDS 2006 but when BDS2006 arrived I installed 
>> it
>> (without update1) and created a ASP.NET project. I placed two Text Boxes 
>> and
>> a HTML Button on the form, clicking on the HTML button a event handler 
>> would
>> be created and I could write some code.
>
> Close the HTML Controls category, and use the Web Controls catgeory
> instead ;-)
>
> See also http://bdn.borland.com/article/0,1410,33279,00.html
>
>> How do I connect to a SQL server using ASP.NET ? I have tried using a
>> SQLConnection (System.Data.Dll), filled in all my server details and run 
>> the
>> application but I can not open the connection without an exception being
>> raised.
>
> See http://www.drbob42.com/aspnet/ for some articles like the one I
> mentioned above.
>
>> Philip
>
> Groetjes,
>          Bob Swart (aka Dr.Bob - www.DrBob42.com)
>
> -- 
> Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
> Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads