Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:516201
More Search Options
RSS Available
Matching Posts
Conversion help
Hi all, Can someone give me a hand converting this PHP code to VB.NET? I'm completely bamboozled by it all! Basically there is a large string which stores some event data and a timestamp. The timestamp is split into 4 strings, which are converted to an unsigned integer (to make the timestamp) and then converted to a string representation of the date. $eventline = "008100146055074000000000028025045070000002020005" ; $n = sscanf($eventline, '%3u%3u%3u%3u%3u' , $ event , $time0
Posted to
Migrating from PHP to ASP.NET
(Forum)
by
lmayne
on 6/23/2009
Re: Conversion help
Well, I've managed to emulate exactly what the PHP developer was doing, which means it's a bit hacky: Dim intEvent As Integer = CInt (strCurrentEvent.Substring(0, 3)) Dim intTime0 As Integer = CInt (strCurrentEvent.Substring(3, 3)) Dim intTime1 As Integer = CInt (strCurrentEvent.Substring(6, 3)) Dim intTime2 As Integer = CInt (strCurrentEvent.Substring(9, 3)) Dim intTime3 As Integer = CInt (strCurrentEvent.Substring(12, 3)) Dim datDate As DateTime = New Date (1970, 1, 1, 1, 0, 0).AddSeconds
Posted to
Migrating from PHP to ASP.NET
(Forum)
by
lmayne
on 6/23/2009
Re: Anonymous type exception when binding LINQ query to gridview
Same problem. Also tried changing the linq query to alias it: Select DateCreated = n.DateCreated.ToString( "dd/MM/yyyy" ), u.Name, n.Details And changed to: < asp:Label ID= "Label1" runat= "server" Text= ' <%# Eval("DateCreated") %> ' ></ asp:Label > Which still had the same problem. Oh wait! I just noticed that there is a very similar gridview on the page using a similar linq query, and the databinding had square brackets round the
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 11/19/2008
Anonymous type exception when binding LINQ query to gridview
Hello, I have a gridview which is populated from the results of a LINQ query between two collections: Me .gvwNotes.DataSource = From u In colUsers _ Join n In colNotes _ On u.UserId Equals n.UserId _ Order By n.DateCreated _ Select n.DateCreated, u.Name, n.Details Me .gvwNotes.DataBind() However, sometimes this throws an exception (not all the time??): DataBinding: 'VB$AnonymousType_7`3[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 11/19/2008
Autopostback error for list control as a trigger
I've run into a problem when using an autopostback list control (in this case a radiobuttonlist) as the trigger for an update panel. If I do it without any AJAX at all then it works fine: < asp : RadioButtonList ID ="radItems" runat ="server" AutoPostBack ="true"> < asp : ListItem Text ="Item 1" Value ="1" Selected ="true" /> < asp : ListItem Text ="Item 2" Value ="2" /> < asp : ListItem Text
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
lmayne
on 8/4/2008
Re: GridView column
You should be able to use Row.DataItem in your above function and pull out the contents of status column like Row.DataItem("status").
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 4/23/2008
Re: Dynamically adding rows to a databound GridView
It seems the only change required is to disable viewstate for the gridview and repopulate it on every page load (and repopulate it again after RowCommand) which is a bit inefficient but seems to be the only way to get it to work.
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 4/23/2008
Dynamically adding rows to a databound GridView
I did post this on the newsgroups but I thought I'd post here as well just in case. I have a gridview which is being populated from a generic list of business objects. I have a TemplateField which contains an image button with its CommandArgument set to the Id of the business object. I want to add subheadings in the gridview, which I've achieved by adding an event handler for the gridview's RowDataBound event, which checks to see if a subheading needs to be added, and then adds a row
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 4/22/2008
Filed under: gridview RowDataBound subheading
Re: GridView RowCommand firing twice
Yup. ASPX file: 1 <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Style/Primary.Master" CodeBehind="EditSafetyPolicy.aspx.vb" Inherits="Ganymede.EditSafetyPolicy" 2 title="Untitled Page" %> 3 < asp:Content ID= "Content1" ContentPlaceHolderID= "PageBody" runat= "server" > 4 5 < asp:GridView ID= "GridView1" runat= "server" AutoGenerateColumns= "False"
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 3/18/2008
GridView RowCommand firing twice
I have a gridview with a databound title column, and then three additional buttonfield columns (move up, move down, delete) and am using manual binding in my page load event to a business object. When I click on one of the button fields the RowCommand event appears to fire twice with e.CommandName set to the same command (e.g. 'moveup') which is causing problems. Does anyone know why this is happening?
Posted to
Data Presentation Controls
(Forum)
by
lmayne
on 3/18/2008
Page 1 of 4 (36 items) 1
2
3
4
Next >
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
TechNet Edge:
Windows 7 XP Mode User Experience
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online