This is just code to bind event handlers. VB does this by itself. I believe the way to do it would be to use: Handles Page.Load Handles dgRegion.ItemCreated Handles dgRegion.ItemDataBound for the respective methods.
jjrdk
Posts
-
Convert C# to VB code -
NDoc for .NET v.2.0D'oh. Thanks to Colin.
-
Custom control loose value on postbackThere is not need for hidden fields or things like that. Make sure that your control implements the IPostBackDataHandler and then in the LoadPostData method you assign the control the value from the valuecollection, e.g. this.Value = postCollection.Item(this.UniqueID). jjrdk
-
NDoc for .NET v.2.0I wasn't quite sure which forum this should go under, so I put it here. I, like many others I'm sure, use NDoc to create documentation for my code. This is one great product, but it has one slight drawback. It doesn't document v.2.0 code. The team is working on it. In the meanwhile I use this little workaround to make NDoc document my V.2.0 projects: Create a file named NDocGui.exe.config and place it in the NDoc folder (e.g. C:\Program Files\NDoc 1.3\bin\net\1.1). In this config file you just type: and now NDoc will process the v.2.0 projects. (Supported Runtime Version number should of course be changed to reflect the actual version on your system.) There is even more good news for VB.Net developers. XML documentation is now supported for v.2.0 projects. Just use ''' (instead of /// for C# projects). This also works with NDoc. jjrdk
-
Google Maps with ASP.NET - simple and dirtyI'll write up an article about it. In the meanwhile I suggest reading Bill Pierce's articles. http://www.codeproject.com/aspnet/LatLaysFlat-Part1.asp http://www.codeproject.com/useritems/LatLaysFlat-Part2.asp His implementation is a more serverside oriented approach. Mine simply makes use of the clientside features and make the data visible in the serverside controls. I've been made aware that there may be some problems wieving the pages with IE. I use Frefox and simply assumed that if it displayed there it would be standard compliant. Anyone have any problems in this regard? JJRDK
-
Google Maps with ASP.NET - simple and dirtyI have written up a script that makes it easy to use many of the functions in Google Maps and makes it possible to access the values from ASP.NET controls through the clientside.registerstartupscript method. Check: http://www.legad.org/tech/text.aspx - for a description of the script. http://www.legad.org/tech/map.aspx - for a map demo.
-
Basic use of Google Maps with ASP.NETI run a website which runs ASP.NET and I wanted to implement Google Maps. But since there were no real .Net APIs I had to fall back on using Google's AJAX syntax. Since I am not much of a javascript programmer I decided to just make a basic implementation and then pass the variables by XML or when I render the map through the RegisterStartupScript. By making use of the RegisterStartupScript I am able to call the javascript from the code behind page. I thought I would share it since it has taken care of a lot of headaches for me. Go to http://www.legad.org/tech/map. aspx to see how it works. Go to http://www.legad.org/tech/text .aspx to see the underlying script. JJRDK http://www.legad.org/
-
Insert, Update and Delete Problem. Need Help. Thanks.Instead of the lines: ..." .Add(New OleDbParameter("@title_ptPT", "Test INSERT - title PT"))" try to use: ".Add("@title_ptPT", "Test INSERT - title PT") As far as I know there is no need to declare a new OleDbParameter in this statement. Hope it helps. JJRDK