|
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.
|
|
|
|
|
string strencrypteddata="";
EncryptedData encryptdata = new EncryptedDataClass();
encryptdata.Algorithm.Name = CAPICOM.CAPICOM_ENCRYPTION_ALGORITHM.CAPICOM_ENCRYPTION_ALGORITHM_3DES;
encryptdata.Algorithm.KeyLength = CAPICOM.CAPICOM_ENCRYPTION_KEY_LENGTH.CAPICOM_ENCRYPTION_KEY_LENGTH_MAXIMUM;
encryptdata.SetSecret("dasdsads",CAPICOM.CAPICOM_SECRET_TYPE.CAPICOM_SECRET_PASSWORD);
encryptdata.Content = "hello";
strencrypteddata = encryptdata.Encrypt(CAPICOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);
decryption ::::
string strencrypteddata1;
EncryptedData encryptdata1 = new EncryptedDataClass();
encryptdata1.Algorithm.Name = CAPICOM.CAPICOM_ENCRYPTION_ALGORITHM.CAPICOM_ENCRYPTION_ALGORITHM_3DES;
encryptdata1.Algorithm.KeyLength = CAPICOM.CAPICOM_ENCRYPTION_KEY_LENGTH.CAPICOM_ENCRYPTION_KEY_LENGTH_MAXIMUM;
encryptdata1.SetSecret("dasdsads",CAPICOM.CAPICOM_SECRET_TYPE.CAPICOM_SECRET_PASSWORD);
encryptdata1.decrypt(strencrypteddata );
Response.Write(encryptdata1.Content);
|
|
|
|
|
Hi
sorry for the disturbance..
how can i declare this
EncryptedData encryptdata = new EncryptedDataClass();
i coudn't able to
is there specific name space is needed
i added
using System.Security.Cryptography;
but still problem
pls help me
alex
|
|
|
|
|
I had written in the first mail itself to add a reference to Capicom in ur solution and then write using Capicom and then u will b able to use this code
|
|
|
|
|
sorry i am confucing,
From where i will add reference to my project...i mean Capicom..
alex
|
|
|
|
|
I suppose u have ur solution opened in front of u , You will be able to see a references folder , right click , add reference . Click on the COM tab and there look for Capicom. select the same and then it will appear in the references folder in ur solution. Now in ur page add the line using Capicom.
Is it ok now
|
|
|
|
|
Hello
I didn't found anything in the com tag named Capicom
i am using .net 2.0 ...sorry for the disturbance.
alex.
|
|
|
|
|
Please follow this link and register the Capicom.dll in your system32 . this link gives u a download of the same
<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=860ee43a-a843-462f-abb5-ff88ea5896f6&DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=860ee43a-a843-462f-abb5-ff88ea5896f6&DisplayLang=en</a>[<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=860ee43a-a843-462f-abb5-ff88ea5896f6&DisplayLang=en" target="_blank" title="New Window">^</a>]
|
|
|
|
|
How i can display all the countries and based on each country that particular states in two comboboxes.instead of saving all states in database any built in class is there?
|
|
|
|
|
hi anujose,
if you want to fetch any data then you have to read any database or file...
here you dont want to fetch data from database thenyou can fetch data from XML file..
prepare some structure in XML like..
<country>
<countryname>INDIA
<countrycode>IN
<state>St1
<state>St2
.
.
.
and then read this XML and bind that datatable with your controls...
Bye have a nice day...
Chirag Patel
|
|
|
|