|
This will solve your problem to some extent:
<asp:TextBox ID="TextBox1" runat="server" onkeypress="return dWd(this);" onkeyup="return dWd2(this);" onkeydown="return dWd2(this);" Width="20"></asp:TextBox>
<script language="javascript">
function dWd(e)
{
var wt=parseInt(e.style.width);
wt+=10;
e.style.width=wt + "px";
}
function dWd2(e)
{
if(event.keyCode==8)
{
if(parseInt(e.style.width)>20)
{
var wt=parseInt(e.style.width);
wt-=10;
e.style.width=wt + "px";
}
}
}
</script>
CC26
|
|
|
|
|
|
Why to repost same question??????????????????????????????
himanshu
|
|
|
|
|
Please Don't Cross Post
|
|
|
|
|
I need to implement address verification system to my customer portal.
How can i implement it? I am new to it.... do we need some third party control? :
|
|
|
|
|
You'll need to buy third party software (or create a database with every possible address yourself but I doubt you'll want to do that. QAS is a popular product but it isn't cheap IIRC.
|
|
|
|
|
Inderjeet Kaur wrote: I need to implement address verification system to my customer portal.
How can i implement it? I am new to it.... do we need some third party control? :
You have came up with a bigger view of your problem ? What AVS will do ? What is the details requirements ? Did you tried anything ?
|
|
|
|
|
No abhijit, i was learning what AVS is? I have complete database with user credentials.
So, shall we implement it on our end?
What i learnt abt AVS is it returns some code by
checking all the numeric values from the address.....So can we do the implementation at our end?
Any help will be appreciated
modified on Friday, June 19, 2009 12:00 AM
|
|
|
|
|
hi,
i am creating a site which has a paypal integration in it....
i am bit confused in selecting a paypal product.what i want to do is, when a user clicks a pay now button, a particular amount should pass to paypal for transaction and come back to my website again.
I went through paypal documents then i got PDT(Payment Data Transfer) but here they have not shown me how to send a particular amount.
As i am new to the paypal, i am bit confused.....plz help me.
coolsatty
|
|
|
|
|
Could you not try getting in contact with paypal tech support? I'm sure they'll be able to tell you the best option.
|
|
|
|
|
Hello All,
I want to get all System IP address Which is running from a DNS Server.
Thanks
|
|
|
|
|
Please Google first before you post , there are plenty examples
IP list, Check an IP number against a list in C#[^]
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
public static string GetClientIP()<br />
{<br />
string ip;<br />
string[] temp;<br />
bool isErr = false;<br />
if (System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_ForWARDED_For"] == null)<br />
ip = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString();<br />
else<br />
ip = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_ForWARDED_For"].ToString();<br />
if (ip.Length > 15)<br />
isErr = true;<br />
else<br />
{<br />
temp = ip.Split('.');<br />
if (temp.Length == 4)<br />
{<br />
for (int i = 0; i < temp.Length; i++)<br />
{<br />
if (temp[i].Length > 3) isErr = true;<br />
}<br />
}<br />
else<br />
isErr = true;<br />
}<br />
if (isErr)<br />
return "1.1.1.1";<br />
else<br />
return ip;<br />
}<br />
living none stoping.
|
|
|
|
|
Hi there..
I am a new user of .net and don't know much about it.I wanna make a application when i upload a video file it should be split into chunks and get uploaded simultaneously (means all the chunks get uploaded at the same time)but don't know how to split the single file into chunks and integrate it at the receiving end is well.
I hope you will help me as soon as possible.
Thanks In Advance
Thanks & Regards
Naved Mohammad
|
|
|
|
|
Only using HTML in client side cant do this. You need flash objects for this.
HTML Input type=file can only send files up in continuous stream.
|
|
|
|
|
Hi abhishek,
Thanks for replying man.I don't have any idea about flash objects,even i never ever heared about it is well,so Will you help or guide me to acheive this.
Hope you will reply as soon as possible. Smile
Thanks & Regards
Naved Mohammad
|
|
|
|
|
hai all,
am using the following code for encryption and decryption for a password field.
But when am testing this with TamperIE for web security,there the password is showing in plian text,so any hacker can do anything,
My code is
Private Function Decrypt(ByVal myString As String) As String
cryptDES3.Key = cryptMD5Hash.ComputeHash(ASCIIEncoding.ASCII.GetBytes(Session("salt")))
cryptDES3.Mode = CipherMode.ECB
Dim desdencrypt As ICryptoTransform = cryptDES3.CreateDecryptor()
Dim buff() As Byte = Convert.FromBase64String(myString)
Decrypt = ASCIIEncoding.ASCII.GetString(desdencrypt.TransformFinalBlock(buff, 0, buff.Length))
End Function
Private Function Encrypt(ByVal myString As String) As String
cryptDES3.Key = cryptMD5Hash.ComputeHash(ASCIIEncoding.ASCII.GetBytes(session("salt")))
cryptDES3.Mode = CipherMode.ECB
Dim desdencrypt As ICryptoTransform = cryptDES3.CreateEncryptor()
Dim MyASCIIEncoding = New ASCIIEncoding
Dim buff() As Byte = ASCIIEncoding.ASCII.GetBytes(myString)
Encrypt = Convert.ToBase64String(desdencrypt.TransformFinalBlock(buff, 0, buff.Length))
End Function
The above code is am calling on pageload like
txt_password.text=encrypt(txt_password.text)
str=decrypt(txt_password.text)
It is working perfectly.
But if i tested with TamperIE it is showing plian text.Then how to do this?What i have to use,so that it should not show in plain text for the end user???
Sorry if i disturb u,please let me now the answer
kissy
|
|
|
|
|
Kissy16 wrote: am using the following code for encryption and decryption for a password field.
Password fields should be stored as a one-way salted hash value (e.g. SHA256). That way you (or a hacker) can never get them back. When you want to check that a password matches then you create a salted hash of what the user typed and compare the two hashed values.
Kissy16 wrote: But if i tested with TamperIE it is showing plian text
At what point is it showing plain text. What the user types in will be in plain text until you encrypt it.
|
|
|
|
|
ya.
Actually i am using plain text passwords in the back end.
when i use salted hash on the new password field,then while changing password,it will become the hashed password getting updated which i want to store as plain text.
So this is my question ki how to do that?storing the changed password as plain text and not the hashed one.
kissy
|
|
|
|
|
|
Actually, I read some advice recently that suggested that it is better to move authentication over to a dedicated service that can implement it better than you can. I've since started using OpenID as the authentication mechanism for my websites so I never have to store passwords again.
You might want to look into OpenID frameworks for .NET.
|
|
|
|
|
Hi All,
I want to open everytime only one window when i click on link. Suppose my page like this -
1) One
2) Two
3) Three
These all three link. On these link i written below javascript -
var popupWindow = window.open( "myPage.aspx", 'testPopup','width=405,height=220,scrollbars=no ,toolbars=no,titlebar=no,menubar=no,status=no,resizable=1');
popupWindow.focus();
My requirement is - When some one click on above links then only one window open everytime, for this requirement my code work.
Problem is - when i click first time on "Two" link then page load event fire on myPage.aspx but when i clicked again on "Two" link then page load event no firing. If i click on "One" link then page load event will fire but second or third time click then page load event no fire on myPage.aspx.
Means if you have clicked once on any link then second time load event will not fire.
And i want every time page load event on every link click. Please help.
Have some one any idea.
Thanks,
Jaydev Jangid
Do hard work, you will get your result sure !
|
|
|
|
|
your question is not clear. Well, if you reload a page completely using window.open, it will call Page_load in the server side.
If you want to have any server side event to occur even if the page is not loaded, means the user tries to click on the link twice, use handler or Callback to execute server side event.
Use of ICallbackEventHandler will help you in this.
If this is not what you want, just make your question clear first.
|
|
|
|
|
you must colsed opened windows
.
fire second link;
living none stoping.
|
|
|
|
|
Hi, I have a treeview control.On Page Load I am populating this Treeview through code.
The TreeView contains one parent node and this parent node contains several child nodes.
My problem is that on Treeview_SelectedNodeChanged event Whenever I am selecting a child node,it automatically selects the first child node only.
I am after this for last 2 days.I have worked with TreeView several times, but never faced such problem.
if I change the treeivew populating program it works.But with my existing populating program it gives such problem.
Please Help.
My treeview populating program is given below :
public void PopXml()
{
TreeView1.Nodes.Clear();
com = new OracleCommand();
con = new OracleConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
com.Connection = con;
com.CommandText = "select a.meeting_no,a.meeting_no ||'-->' || a.meeting_desc comb,b.meet_no from tpc_meetings a,tpc_meets b where a.meeting_no=b.meeting_no and a.status='LIV' and b.status='LIV' order by a.meeting_no,b.meet_no";
da = new OracleDataAdapter();
ds = new DataSet();
da.SelectCommand = com;
da.Fill(ds, "Meets");
object[] marr = GetDistinct(ds.Tables["Meets"], "meeting_no");
foreach (object mval in marr)
{
string mcomb = ds.Tables["Meets"].Select("meeting_no='" + mval.ToString() + "'")[0]["comb"].ToString();
TreeNode meetingnode = new TreeNode(mcomb, mcomb);
meetingnode.SelectAction = TreeNodeSelectAction.None;
TreeView1.Nodes.Add(meetingnode);
DataRow[] children = ds.Tables["Meets"].Select("meeting_no='" + mval.ToString() + "'");
foreach (DataRow drow in children)
{
TreeNode meetnode = new TreeNode(drow["meet_no"].ToString(), mval.ToString());
meetnode.SelectAction = TreeNodeSelectAction.Select;
meetingnode.ChildNodes.Add(meetnode);
}
}
}
CC26
|
|
|
|