Re: VB vs C# question (trying to switch languages)



thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


"Patrice" wrote:

A lightning striked me while going back to work. The event you are using is
just not handled automatically by the autoeventwireup attribute.

So you'll have to explicitely add this handler as shown in the article I
mentionned earlier...

---
Patrice

"WebBuilder451" <WebBuilder451@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de news: 5568BA8D-6CFB-41AE-8D46-B6F2647A5124@xxxxxxxxxxxxxxxx
very appreciated!! thank you
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


"Patrice" wrote:

Historical reasons maybe. They 'll probably catch up in the future ?

So for now you could perhaps try to programmaticaly check if the event
handler is wired ? Try also perhaps to start a new project just to see if
you have the same behavior... Is this a page in the same dir than other
VB.NET pages etc...

Note also Juan response. This is actually supported despite a caveat....

Good luck and please let us know...

---
Patrice



"WebBuilder451" <WebBuilder451@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de news: DEF3F084-87F0-47CE-BE85-F4B7E0BAA15F@xxxxxxxxxxxxxxxx
it was set to true. so this is odd, unless it's a mixed code issue.
i did notice from the article you referencd that "Note: C# doesn't make
the
dropdown list of events available when editing a code-beside file, but
the
dropdown is available when writing in-line code. "

Why is that?, i'd think it would code seperation would be encourged es
in
C#! I'd hate to think i'll need to use in-line code sections to get the
tools
available in VS.


--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


"Patrice" wrote:

AFAIK using both languages in the same web application is not
supported
(IMO
may work, may not work depending on the deployment option etc you are
using).

In your case it's likely a problme with the AutoEventWriteUp attribute
that
is false for VB.NET and true in C# projects. You may want to set this
valeu
to true...

See http://odetocode.com/Blogs/scott/archive/2006/02/16/2914.aspx for
details.

---
Patrice

"WebBuilder451" <WebBuilder451@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans
le
message de news: 8329B69B-F054-4098-B2E7-1454AD5FB780@xxxxxxxxxxxxxxxx
I'm trying to make the jump from VB to C#. Aside from the syntax
issues
i'm
running into some execution differences i think
1. I created a C# page in an existing VB.net website
2. I added a gridview with a footer row
3. i attempted to change the value of a label in the footer row on
row
databound using:
protected void gv_catalog_RowDataBound(object sender,
System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if ((e.Row.RowType == DataControlRowType.Footer))
{
Label lbl =
(Label)this.gv_catalog.FooterRow.FindControl("lbl_OrderTotal");
lbl.Text = "total go here";
lbl.Font.Bold = true;
}
}
Note: I can get it to change in the page_load, but my point is it
does
not
appear that the gv_catalog_RowDataBound event is firing.

Questions:
1. Is there something else i need to do to get this even to fire?
2. I noticed that Intelesense does not work, i see items grayed out,
but
not
selectable.

--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes









.



Relevant Pages

  • Re: VB vs C# question (trying to switch languages)
    ... some day i''m gona pay this forum back for all the help i''m getting ... "Patrice" wrote: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: find height of a datagrid
    ... some day i''m gona pay this forum back for all the help i''m getting ... And i need to resize the panel to the specific height of the gridview. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: question on sqldatareaders
    ... some day i''m gona pay this forum back for all the help i''m getting ... If you do not explicitly close your reader ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: dataadapter update problem, (please help!)
    ... > What value does the HasErrors property on the DataTable have after you run ... >> some day i''m gona pay this forum back for all the help i''m getting ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: dataadapter update problem, (please help!)
    ... when i check for dataset changes i ... > Private Sub lbtnUpdate_Click(ByVal sender As System.Object, ... > some day i''m gona pay this forum back for all the help i''m getting ...
    (microsoft.public.dotnet.framework.adonet)