|
how can I be happy isf i don;t know how to make an inbox and i need it because i need to recive an inportant message and if I don't get it I will not be able to play in moshie monters and I aleady made a monster
Yelmy alvarez
|
|
|
|
|
well you know that not every one is smart you doo doo head
|
|
|
|
|
hi,
in my asp.net application i have one Vb.Net Class library. and I want to make one Dll which contains vb.net class library. now I want to use c# class files in my vb.net class library. So how to do that?
I want to use c# class's methods in my vb.net class.
Please advice.
Thank,
Sun Rays
|
|
|
|
|
OK the question is you have DLL having language VB.Net
then you want to use that dll in your application which is in C# or vice cersa
YES you can do that as DLL contains IL code which is not language specific
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Add the reference and import the namespace then use the functions
Thomas
|
|
|
|
|
Sun Rays wrote: I want to use c# class files in my vb.net class library. So how to do that?
You need to add reference to that dll in c# project. And call the methods as you do like in c#. NET uses common language runtime So it doesn't matter your code is in c# or vb.net
|
|
|
|
|
thanks for reply.
I am adding reference in my vb.net class library, reference is showing in reference window but can't give reference in my vb.net class.
imports myC#Namespace
it's missing it rather it is in reference but nothing in that. no namespaces in Dll.
-- modified at 3:51 Wednesday 14th March, 2007
Thanks,
Sun Rays
|
|
|
|
|
can i put c# class file and vb.net class file together in Vb.Net class library ?
if yes then
how can use c# class methods in vb.net class?
-- modified at 3:50 Wednesday 14th March, 2007
Thanks,
Sun Rays
|
|
|
|
|
Sun Rays wrote: reference is showing in reference window but can't give reference in my vb.net class.
I am not clear. What is happening ? What error you are getting ?
|
|
|
|
|
hi,
there is one class library named as VBClassLib made up in Vb.Net.
in this library i have 2 vb.net classes.
and another class library is C#ClassLib made up in C#.Net.
there are 2 classes in this class library.
now i am making Dll of C#ClassLib and giving reference in VBClassLib to use methods of C#ClassLib in VBClassLib.
when giving reference that Dll is showing in VBClassLib's references.
But when i am importing C#ClassLib DLL's namespace in VBClassLib's class,
like Imports C#ClassLib.Method
it's giving error that "namespace or type is in the C#ClassLib.Method doesnpt contain ant public member........."
but it's not so. I have made public class in C#ClassLib.
Thanks,
Sun Rays
|
|
|
|
|
DooDooo wrote: You need to add reference to that dll in c# project. And call the methods as you do like in c#. NET uses common language runtime So it doesn't matter your code is in c# or vb.net
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hello
Can you please help me with the code after the user selected the date for the calender,the date will be displayed in the DateText-Box.I want the week number to be displyed automatically in the week-numberTextbox,after the user selected the date in the calender.....
You send me this code ,and when I try it doesn't work,please help me,with the code,and if possible can you please explain it to me.
In the Calendar1_SelectionChanged event use the following....
System.Globalization.Calendar cal=System.Globalization.CultureInfo.InvariantCulture.Calendar;
WeekTxt.Text= (cal.GetWeekOfYear(Calendar1.SelectedDate, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday)).ToString();
Thank you.
oga m
|
|
|
|
|
|
hi can anybody give me the link where i can find the new features included in asp.net 2005. Till asp.net 2005 is wrapped inside a black box.
dharmender
|
|
|
|
|
Hello Dharmender,
ASP.NET 2.0 has lots to offer (like extensibility and simplicity) as far ASP.NET 1.1 is concerned. Here is the link for a nice article from Jon Flanders which discusses 10 new features in ASP.NET 2005 in detail:
http://www.theserverside.net/tt/articles/showarticle.tss?id=WhatsNewASPNET
Let me know if you are unsure about any new feature in ASP.NET 2005
Regards,
Amit Pal
|
|
|
|
|
gvishu wrote: Till asp.net 2005 is wrapped inside a black box.
Its not the case you have unlimited resources on web
please check this URLS but the best is MSDN 2005
http://www.codeproject.com/books/net2_cs2_newfeatures.asp[^]
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
thx guys the information seems valuable.
dharmender
|
|
|
|
|
Hi i have 2 drop downlist box,
in that one i can select year another one month,
if i select the month,that month all dates want to be display in datagrid,
how to do that
regards,
Magi
|
|
|
|
|
u can do that using below code
Dim i As Integer = DateTime.DaysInMonth(2005, 1)
it will give u total no of days of month January and year 2005.
and then display it from 1 to i.
Thank,
Sun Rays
|
|
|
|
|
Hello,
Hello friends i need your help.in my project i want to encrypt login details
can anybody help me to solve this....
Regards
Alex.
|
|
|
|
|
Hello Alex,
It is always good to encrypt these login details): You can implement this in different ways. Here is a small code snippet which does exactly the same thing using JavaScript:
I have taken a look on this javascript earlier at http://www.webteacher.com/. This is a small example but it should get you started on encrypting these login details.
Regards,
Amit Pal
|
|
|
|
|
Thanks amit,
But i need the code for encryption and decryption ,if possible using c#
alex.
|
|
|
|
|
OK you want the code in C# means encryption at server side
Why you want to Encrypt the value at the server side do you want to store that value in database something like that
Best way is to have own algorithm to encrypt and decrypt the data
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Dim d As New EncryptedData
d.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM.CAPICOM_ENCRYPTION_ALGORITHM_3DES
d.Content = "hello"
d.SetSecret("23456", CAPICOM_SECRET_TYPE.CAPICOM_SECRET_PASSWORD)
Dim textenc As String = d.Encrypt(CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64)
Response.Write(textenc)
Dim d1 As New EncryptedData
d.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM.CAPICOM_ENCRYPTION_ALGORITHM_3DES
d.SetSecret("23456", CAPICOM_SECRET_TYPE.CAPICOM_SECRET_PASSWORD)
d.Decrypt(textenc)
Dim textdec As String = d.Content()
Response.Write(textdec)
Try the above , the value given as string in the function SetSecret is the key I am using , u can use anything. Add a reference to Capicom in ur project and then implement the same
|
|
|
|
|
Hi thanks,
I couldn't able to implement this in asp.net c# can you help me.
alex.
|
|
|
|