b

16/08/2006 6:14 PM

how can I insert a C# function in an HTML tag?

Help!


i had created a function in C#...how can i use this function or call
this function in an innerhtml?


I have this function in C#

void test()
{
// some codes in here
}


and i need it to be call from here:

Me.divItems.InnerHtml += "<td class=""style2"" width=150
align=center><<img src=""/images/gotest.png"" width=""120""
height=""14"" border=0/></td>"


The logic is that once the image is clicked, it will do some
testing....


please help...

thanks a lot


This topic has 8 replies

Rr

"RicodJour"

in reply to [email protected] on 16/08/2006 6:14 PM

17/08/2006 5:53 AM

Puckdropper wrote:
> Murray Peterson <[email protected]> wrote in
> news:[email protected]:
>
> > Dave Balderstone <dave@N_O_T_T_H_I_Sbalderstone.ca> wrote in
> > news:160820062003076966%dave@N_O_T_T_H_I_Sbalderstone.ca:
> >
> >> You need a C-function jig. I'd probably use Baltic Birch to build it,
> >> and finish with a couple of spit coats of blonde shellac and some
> >> paste wax.
> >
> > Don't forget to hold it in place with a properly sized C-clamp.
> >
>
> You guys obviously don't understand C and C#... What he needs is an
> appropriately sized F-style clamp. Like C, but with some revisions and
> additions. ;-)

G, I think you're being a little sharp and whistling out of tune. If
it was mi, I'd go so fa as to do a la-rge mockup to make sure it would
B flat.

R

p

in reply to [email protected] on 16/08/2006 6:14 PM

17/08/2006 6:16 AM


[email protected] wrote:
> Help!
>
>
> i had created a function in C#...how can i use this function or call
> this function in an innerhtml?
>
>
> I have this function in C#
>
> void test()
> {
> // some codes in here
> }
>
>
> and i need it to be call from here:
>
> Me.divItems.InnerHtml += "<td class=""style2"" width=150
> align=center><<img src=""/images/gotest.png"" width=""120""
> height=""14"" border=0/></td>"
>
>
> The logic is that once the image is clicked, it will do some
> testing....
>
>
> please help...
>
> thanks a lot

Not to encourage you but you should lookinto asp:imagebutton.

That being said, don't you find it odd that the name of this group is
"rec.woodworking"? Why would you post programming questions here?

Tom P.

DB

Dave Balderstone

in reply to [email protected] on 16/08/2006 6:14 PM

16/08/2006 8:03 PM

In article <[email protected]>,
<[email protected]> wrote:

> Help!
>
>
> i had created a function in C#...how can i use this function or call
> this function in an innerhtml?
>
>
> I have this function in C#
>
> void test()
> {
> // some codes in here
> }
>
>
> and i need it to be call from here:
>
> Me.divItems.InnerHtml += "<td class=""style2"" width=150
> align=center><<img src=""/images/gotest.png"" width=""120""
> height=""14"" border=0/></td>"
>
>
> The logic is that once the image is clicked, it will do some
> testing....
>
>
> please help...
>
> thanks a lot

You need a C-function jig. I'd probably use Baltic Birch to build it,
and finish with a couple of spit coats of blonde shellac and some paste
wax.

Pp

Puckdropper

in reply to [email protected] on 16/08/2006 6:14 PM

17/08/2006 7:44 AM

Murray Peterson <[email protected]> wrote in
news:[email protected]:

> Dave Balderstone <dave@N_O_T_T_H_I_Sbalderstone.ca> wrote in
> news:160820062003076966%dave@N_O_T_T_H_I_Sbalderstone.ca:
>
>> You need a C-function jig. I'd probably use Baltic Birch to build it,
>> and finish with a couple of spit coats of blonde shellac and some
>> paste wax.
>
> Don't forget to hold it in place with a properly sized C-clamp.
>

You guys obviously don't understand C and C#... What he needs is an
appropriately sized F-style clamp. Like C, but with some revisions and
additions. ;-)

Puckdropper
--
Wise is the man who attempts to answer his question before asking it.

To email me directly, send a message to puckdropper (at) fastmail.fm

MP

Murray Peterson

in reply to [email protected] on 16/08/2006 6:14 PM

17/08/2006 3:21 AM

Dave Balderstone <dave@N_O_T_T_H_I_Sbalderstone.ca> wrote in
news:160820062003076966%dave@N_O_T_T_H_I_Sbalderstone.ca:

> You need a C-function jig. I'd probably use Baltic Birch to build it,
> and finish with a couple of spit coats of blonde shellac and some paste
> wax.

Don't forget to hold it in place with a properly sized C-clamp.

dd

darkon

in reply to [email protected] on 16/08/2006 6:14 PM

18/08/2006 6:59 PM

Dave Balderstone <dave@N_O_T_T_H_I_Sbalderstone.ca> wrote:

> In article
> <[email protected]>,
><[email protected]> wrote:
>
>> Help!
>>
>>
>> i had created a function in C#...how can i use this function or
>> call this function in an innerhtml?
>>
[snip]
>
> You need a C-function jig. I'd probably use Baltic Birch to
> build it, and finish with a couple of spit coats of blonde
> shellac and some paste wax.

Forwarded to alt.humor.best-of-usenet, along with a comment that
choosing the proper newsgroup is important. :-)

RC

"Richard Clements"

in reply to [email protected] on 16/08/2006 6:14 PM

17/08/2006 9:33 AM

On Wed, 16 Aug 2006 20:03:07 -0600, Dave Balderstone =

<dave@N_O_T_T_H_I_Sbalderstone.ca> wrote:

> In article <[email protected]>,
> <[email protected]> wrote:
>
>> Help!
>>
>>
>> i had created a function in C#...how can i use this function or call
>> this function in an innerhtml?
>>
>>
>> I have this function in C#
>>
>> void test()
>> {
>> // some codes in here
>> }
>>
>>
>> and i need it to be call from here:
>>
>> Me.divItems.InnerHtml +=3D "<td class=3D""style2"" width=3D150
>> align=3Dcenter><<img src=3D""/images/gotest.png"" width=3D""120""
>> height=3D""14"" border=3D0/></td>"
>>
>>
>> The logic is that once the image is clicked, it will do some
>> testing....
>>
>>
>> please help...
>>
>> thanks a lot
>
> You need a C-function jig. I'd probably use Baltic Birch to build it,
> and finish with a couple of spit coats of blonde shellac and some past=
e
> wax.

it's C# there methods not functions, and I would use Masonite, it's =

lighter, more than strong enough
and a lot cheaper






-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

RC

"Richard Clements"

in reply to [email protected] on 16/08/2006 6:14 PM

17/08/2006 9:41 AM

On Thu, 17 Aug 2006 07:16:16 -0600, <[email protected]> wrote:

>
> [email protected] wrote:
>> Help!
>>
>>
>> i had created a function in C#...how can i use this function or call
>> this function in an innerhtml?
>>
>>
>> I have this function in C#
>>
>> void test()
>> {
>> // some codes in here
>> }
>>
>>
>> and i need it to be call from here:
>>
>> Me.divItems.InnerHtml +=3D "<td class=3D""style2"" width=3D150
>> align=3Dcenter><<img src=3D""/images/gotest.png"" width=3D""120""
>> height=3D""14"" border=3D0/></td>"
>>
>>
>> The logic is that once the image is clicked, it will do some
>> testing....
>>
>>
>> please help...
>>
>> thanks a lot
>
> Not to encourage you but you should lookinto asp:imagebutton.
>
> That being said, don't you find it odd that the name of this group is
> "rec.woodworking"? Why would you post programming questions here?
>
> Tom P.
>

by the way he's attempting to code he has no clue what he's doing

1: WHERE IS YOUR CODE BEHIND PAGE!!!! this isn't ASP! it's ASP.NET
2: Get a book, on C#, that covers web controls, not a Wrox, or a Sams, a=
=

Real BOOK maybe something like O'Reilly
3: Read the book
4: and last GOOGLE it!
=



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


You’ve reached the end of replies