|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello,
I'm having same problems converting the following VB.Net code to C#: sub Page_Load () dim au dim str set au = server.createobject("Persits.AspUser") str = au.getusername end sub Using vb.net, the code works great. I tried the following using C#: public int Page_Load() { string userName; object au = server.createobject("Persits.AspUser"); userName = au.GetUserName(); } When I use the C# version of this, I get the following error: Compiler Error Message: CS0117: 'object' does not contain a definition for 'GetUserName' Any suggestions? Could you please show me how should I do. Please send some tutorial to me I am forward to hearing from you. please help me! Thank you so much Lam |
|
#2
|
|||
|
|||
|
Try the asp/vb forum
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How to use Server.CreateObject in C#? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|