error in converting VB to C#

Posted by Oswaldlily under ASP.NET on 2/15/2012 | Points: 10 | Views : 876 | Status : [Member] | Replies : 4
Dim name= Mapper.functionname(Me.Name)

How to convert this into C#?

var name = Mapper.functionname(this.Name);



public tablename functionname(string onj)
{

}


Error:Does nt contain a definition for 'Name'
red mark under 'this.name'
what error there?




Responses

Posted by: Naidulaxmi on: 2/15/2012 [Member] Starter | Points: 25

Up
0
Down
hi,


this is convert to c# "dynamic name = Mapper.functionname(this.Name);"
and
this is also convert into c#
var name = Mapper.functionname(this.Name);
public tablename functionname(string onj)
{

}

Thanks,

appalanaidu

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/15/2012 [Member] Starter | Points: 25

Up
0
Down
@Naidulaxmi
this.name not accepting in C#.. while using dynamic and var


Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/15/2012 [Member] Starter | Points: 25

Up
0
Down
Using this.name to get existing filename of any asp codebehind page
eg) this.name="loginpage.cs"

consider i has 3 file login page.asp,home page.asp,order page.asp
I have common function for all three
public string functionname(string filename)
{

}
if i executing login page,filename shd be login.cs
if i take home page,filename shd pass home.cs
if i execut order page,filename shd be order.cs



Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Daisywhite on: 2/24/2012 [Member] Starter | Points: 25

Up
0
Down
Sorry for that , but a PDF-417 Generator for C#.NET - Generation Guide might be helpful.http://www.keepautomation.com/csharp_barcode/pdf_417.html

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response