|
Take a look at www.javascriptkit.com
Gautham
|
|
|
|
|
Hi Friends,
I am working on ASP.NET 1.1 with C# Domain..
I want to use my project using Visual Source Safe (VSS)...
i have Visual Studio (4 Cd's Pack)..I have 5 PC's , Which i want to connect in such a manner like.. i will keep my project on server and configure through VSS, so that other programmers can able to use it...
so plzzz can any body tell me how to install it on server and client pc...??
Thanks & Regards
Ahuja
-- modified at 2:57 Monday 2nd April, 2007
|
|
|
|
|
I have a user control embedded into a multiview on a page. The page works like a kind of step by step configuration process. Anyway the user control has a datalist within it and that is bound directly to an sqldatasource control. This control has a session paramter hard coded to it.
The user control loads fine and the session variable (set in previous view of multiview) is accepted and finds values. The Values are shown. If you go back in the process of the configuration you can reselect and alter the session value to one that doesn't find results. If you do this and then return and set it back to the original value that did find a value it fails to show the same results as before. I'm guessing the problem is that some part of the sqldatasource is not running because it has no values. Or the datalist is doing this.
I have tried using findcontrol to search the user control for both the datalist and the sql datasource and then performing their databind methods but this fails to get the values back. I know the session value is working and gets set correctly because I have it displayed in the page.
Any ideas?
THANKS
|
|
|
|
|
Hi,
I have newly installed .net2005 in my system and i am not getting assemblyinfo file.please somebody tell me how i can get that file.
Thanks & Regards
Mishra
|
|
|
|
|
But what problem if so?
<< >>
|
|
|
|
|
Hi Developers
Well I have downloaded a URLRewriter from http://msdn2.microsoft.com/en-us/library/ms972974.aspx[^].
Its working all right But the Code is in C# and I used to work using VB.net. I gooogled a lot to find this in VB.net but couldn't find one.
Please let me know if anyone of you have URLRewriter in VB.net. Thanks
Lets work it Out.........!
|
|
|
|
|
You can take help from here[^] . It converts the code but you may have to check the code after conversion.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks Apurva. Previously I was using a converter by kamalpatel but some times it gives errors while processing. Hopefully this converter will rock...
Lets work it Out.........!
|
|
|
|
|
Hi i want encryption codes and decryption codes....,
Plz help me
Magi
|
|
|
|
|
Give me ur Email Address.I will send u
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Please send post code even I want...
|
|
|
|
|
U can send it to email also....,
See below one link email is there..,
Plz send in that way........,
It will be hlpfull for me...,
Or,If u post it in discussion board itself,
It will be hlpfull for all.........,
regards,
Magi
|
|
|
|
|
Here` how u can encrypt and decrypt strings..
First add a refrence to Capicom in COM tab.
Add a namespace using CAPICOM;
To encrypt:
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 = PlainTexttxt.Text;
strencrypteddata = encryptdata.Encrypt(CAPICOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);
EncryptedText.Text=strencrypteddata;
To decrypt:
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(EncryptedText.Text);
Response.Write(encryptdata1.Content);
Make an aim with a pain,your efforts won`t go in vain
|
|
|
|
|
Hey whats that capicam in my reference(com tab)its not there....,
Magi
|
|
|
|
|
using System.Security.Cryptography;<br />
using System.IO;<br />
using System.Text;<br />
<br />
public class dataencryption{<br />
private Byte[] KEY_64 ={ 42, 16, 93, 156, 78, 4, 218, 32 };<br />
private Byte[] VAL_64 ={ 55, 103, 246, 79, 36, 99, 167, 3 };<br />
<br />
public dataencryption() {<br />
}<br />
<br />
public string Encryption(string value) {<br />
DESCryptoServiceProvider CryptoProvider=new DESCryptoServiceProvider();<br />
MemoryStream ms = new MemoryStream();<br />
CryptoStream cs = new CryptoStream(ms, CryptoProvider.CreateEncryptor(KEY_64, VAL_64), CryptoStreamMode.Write);<br />
StreamWriter sw = new StreamWriter(cs);<br />
sw.Write(value);<br />
sw.Flush();<br />
cs.FlushFinalBlock();<br />
ms.Flush();<br />
return Convert.ToBase64String(ms.GetBuffer(), 0,Convert.ToInt16(ms.Length));<br />
}<br />
<br />
public string Decryption(string value) {<br />
DESCryptoServiceProvider CryptoProvider = new DESCryptoServiceProvider();<br />
Byte[] buffer=Convert.FromBase64String(value);<br />
MemoryStream ms = new MemoryStream(buffer);<br />
CryptoStream cs = new CryptoStream(ms, CryptoProvider.CreateDecryptor(KEY_64, VAL_64), CryptoStreamMode.Read);<br />
StreamReader sr = new StreamReader(cs);<br />
return sr.ReadToEnd();<br />
}<br />
}
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi,
An easy encryption and decryption method.
<br />
public static string Encrypt(string valueToEncrypt)<br />
{<br />
byte []b;<br />
b = ASCIIEncoding.ASCII.GetBytes(valueToEncrypt);<br />
return Convert.ToBase64String(b);<br />
}<br />
<br />
public static string Decrypt(string valueToDecrypt)<br />
{<br />
byte []b;<br />
b = Convert.FromBase64String(valueToDecrypt);<br />
return ASCIIEncoding.ASCII.GetString(b);<br />
}
Mehedi Hasan
|
|
|
|
|
Please could someone help me with this code? The problem appears to be a simple one, but i'm not html or ASP literate and need to modify the below code to add 2 things.
First a bit about the website: It's a news website, which has talkback, where the public register to post comments. One of the options in the comments is for the commentator to leave an email icon, if they want private emails from other readers. The initial email is sent through a form, When someone clicks a link they are taken to this form below, which is a form on a commenting website, where they can send a blind email to the commentator.
Blind email means that they are sending an email to the person's username, and at the same time their own email which will be shown to whomever gets the email. The form's "Name" is where the email will be sent, and the "Name" field has the email in the database, only the "Name" is shown in public (which is the username)
The form has a Name, Subject and Comment section, which they fill in, and then once clicked, the email is sent.
I want to add the following 2 things
1. I want a blind carbon copy of the email sent to "admin@myweb.com" . I have tried the bcc. but can't get it right, don't know where to put it.
2. I also want to add a signature at the bottom of the email, so that it shows it came from my website. Something simple like a few lines of
"You are receiving this email from the talkback at mywebsite.com. It is a response to your talkback message. Thank you for using our talkback"
Could someone tell me what to include and where exactly? I am not familiar with html or ASP. Thank you in advance.
[COLOR="Navy"]
<% Dim ID, RS, SQL, NAME, EMAIL, COMMENT, sDATE, IO, M_ID, SUBJECT, CITY, COUNTRY, ALLOW_E, AID, NEXT_ID, C_NAME, C_EMAIL, MESSAGE, _
blDONE, blLOGGED_IN
ID = Trim(Request.QueryString("ID"))
AID = Trim(Request.QueryString("AID"))
IF IS_VALID_ID(ID) = False OR IS_VALID_ID(AID) = False THEN Response.END
MODE = Request.Form("mode")
IF Trim(Session("PMMS_IN")) = "True" THEN blLOGGED_IN = True
IF MODE = "send" THEN
NAME = Request.Form("name")
EMAIL = Request.Form("email")
CONTENT = Request.Form("content")
Call GET_DETAILS()
IF NAME = "" OR IsNull(NAME) THEN MESSAGE = MESSAGE & "Please enter your name. "
IF EMAIL = "" OR IsNull(EMAIL) THEN MESSAGE = MESSAGE & "Please enter your email address. "
IF CONTENT = "" OR IsNull(CONTENT) THEN MESSAGE = MESSAGE & "Please enter your message. "
IF MESSAGE = "" THEN
Call SEND_EMAIL_OUT(CONTENT, "RE:" & SUBJECT, C_EMAIL, EMAIL, "smtp.mywebsite.com")
blDONE = True
'Response.Redirect "_comment_view.asp?ID=" & ID & "&AID=" & AID
'Response.END
END IF
ELSE
Call GET_DETAILS()
NAME = Session("PMMS_NAME")
EMAIL = Session("PMMS_EMAIL")
END IF
SUB GET_DETAILS()
SQL = "SELECT fldNAME, fldEMAIL, fldCOMMENT, fldDATE, fldIP, fldM_ID, fldSUBJECT, fldCITY, fldCOUNTRY, fldALLOW FROM nm_tbl_comment WHERE ID = " & ID
Call OPEN_DB()
Set RS = Server.CreateObject("ADODB.Recordset")
RS.LockType = 1
RS.CursorType = 0
RS.Open SQL, MyConn
IF NOT RS.EOF THEN
C_NAME = trim(RS("fldNAME"))
C_EMAIL = trim(RS("fldEMAIL"))
SUBJECT = trim(RS("fldSUBJECT"))
ALLOW_E = trim(RS("fldALLOW"))
END IF
RS.Close
Set RS = Nothing
MyConn.Close
Set MyConn = Nothing
END SUB
%>
<%IF blDONE = True THEN%>
Thank you. Your email has been sent.
|
<%Response.END%>
<%END IF%>
<%IF NOT MESSAGE = "" THEN%>
<%END IF%>
Send email to: <%=C_NAME%>; | Your Name: | | Your Email: | | <%=CONTENT%> |
|
[/COLOR]
|
|
|
|
|
I have two Radiobutton
if (RadioButton1.Checked==true)
{
RadioButton2.Checked=false;
}
else if(RadioButton2.Checked==true)
{
RadioButton1.Checked=false;
}
when i run this pgm both the radiobutton is checked...I need to check it optionally....Please do needfull...
With Regards,
Samson
|
|
|
|
|
Here u are missing somecode..
samsonx wrote: have two Radiobutton
if (RadioButton1.Checked==true)
{
RadioButton2.Checked=false;
}
else if(RadioButton2.Checked==true)
{
RadioButton1.Checked=false;
}
write this
on RadioButton1's click event write.
RadioButton2.Checked=false;
And on RadioButton2's click event write.
RadioButton1.Checked=false;
hope it will help.
Thanks,
Sun Rays
|
|
|
|
|
no need to write the code just set the same group name for both the radio buttons.
Best Regards,
Apurva Kaushal
|
|
|
|
|
i am using 2 dropdown controls, if the first dropdown's selected index changed time call a method and bind the values in client side, it is displaying fine in the second dropdown control, but while save click i am not getting the selected value from the second dropdown control,
how can i solve the problem,
also what is the property AutoPostBack will do in the dropdown control
Thanks in Advance
-
|
|
|
|
|
Use a hidden field on form and in client script code put value into it (dropdown client onSelectedChanged event)
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
if i put the hiddenfield means when the user changes the second dropdown i am not getting the value
-
|
|
|
|
|
Nope..I think he means that when the seecond dropdown value changed, you have to get the changed value and put it into hidden field
<< >>
|
|
|
|
|
Autopost back means that the page will be posted back to the server on selection change event of the drop down list and probably that would be the cause of your problem also.
Best Regards,
Apurva Kaushal
|
|
|
|
|