|
How can I change the position of a Textbox via javascript.
Any help regarding this .
Thankx in advance.
|
|
|
|
|
You'd change the style of the textbox in order to move it, by changing it's padding, or floating it, etc.
Basically, you move it using CSS.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank u very much, Can u give me an example.
|
|
|
|
|
var t=0;
function controlMover(obj)
{
;
obj=(typeof obj=="object")?obj:document.getElementById(obj);
var _top=parseInt(obj.style.top)+1;
var _left=parseInt(obj.style.left)+1;
obj.style.top=_top+"px";
obj.style.left=_left+"px";
if(_left==500)
{
clearTimeout(t);
}
else
{
t= setTimeout("controlMover('"+obj.id+"')",10);
}
}
CHECK THIS OUT
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Thank u very much its realy helpful.
|
|
|
|
|
Hi forum,
I am looking to create a secure login to my application.
I was wondering if anyone could advise me on the best way of dealing with this
I was considering setting up a users table within my mysql database and let the asp pass the parameters to a stored procedure, but i obviously need to ensure that the data is encrpyted.
So i need to build a DAL somehow....
any help appreciated
boyindie
asp virgin
|
|
|
|
|
boyindie wrote: So i need to build a DAL somehow....
A DAL does nothing to prove that data is encrypted, or anything else, really.
Most people worry about super secure logins on pages no-one is every going to try and hack. The main advice I'd give is, write a proc that takes a username and password and returns a bit, do not write a function that returns a password and compare it in memory.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
HOw would i write that procedure
would it be it take two input parameters and pass these parameters into a select command and if these parameters match the login value will return a 1 or 0, valid or invalid?
|
|
|
|
|
Yep, thats basically how it works
only two letters away from being an asset
|
|
|
|
|
Don't store or pass the password, store a salted hash of the password, then when the user logs in, salt and hash the password then pass that to the database to compare.
A good article on storing passwords[^].
|
|
|
|
|
Cool, will have a look into that looks good never heard of a salted hash in my life, is it difficult to code?
|
|
|
|
|
boyindie wrote: never heard of a salted hash in my life, is it difficult to code?
Then do have a good read of that article )
There's plenty of built in .net functionality for encryption and hashing.
Bear in mind that if you do this you will never be able to retrieve the user's password if they forget it (hashing is one way) - you will have to generate a new password for them.
|
|
|
|
|
Thats not a problem, as can get them to enter registered mail and can get bit of code to generate a random password for them or set it to a default and return it to there mail?
|
|
|
|
|
I am doing an application in which i have some textboxes and 2 dropdown listes
when connecting to database and retrieving values everything works fine...
but when i click the gridview(say a row particularly,) the values in the row should populate to the corresponding textboxes..
all the values comes to textboxes... but the values to be populated to dropdownlist holds only the text of the cell content....
i need the value to be in the dropdownlist as forever till i wish to get that away...
i used the code like this...
DropDownList1.Text = GridView2.SelectedRow.Cells[1].Text.ToString();
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
Once Try this.........
DropDownList1.SelectedIndex=DropDownList1.items.indexof(DropDownList1.items.findbyText( GridView2.SelectedRow.Cells[1].Text.ToString()));
|
|
|
|
|
thanks very much honey..
this works...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
|
Hi,
I had a usercontrol in masterpage of root project.I had a page in subproject which inherits this masterpage. how can i redirect to rootproject pages and subproject pages.For the rootproject pages i had given href in usercontrol which is present in rootproject.Then how can i call the pages that are present in subproject and from there how can i redirect to rootproject pages.Can anyone help me in this.
|
|
|
|
|
When we user a user control, we normally create ascx file, and load it using Page.LoadControl("xxx.ascx").
My question is : if I put the ascx file in the database. how I can use the UserControl? I tried to user Page.ParseControl, It doest not work.
Qun
|
|
|
|
|
what is the purpose of storing user control?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Just for easy management of ascx files,especially when a user control has many skins!
Qun
|
|
|
|
|
Hi,
How to upload files from client machine to server machine using FTP in C# ASP.net.
kamalnath
|
|
|
|
|
U can use various FTP softwares to upload ur files.Eg: CuteFTP,Filezilla etc. submit ur Host Name,UserID and password and click Connect. Then drag and drop your asp.net webapplication files(including aspx and aspx.cs) to the WebServer.
Sunil Nair
|
|
|
|
|
I need to implement Upload files option using FTP from my application with out using FTP softwares.Is there any C# classes are there to perform this task.
kamalnath
|
|
|
|
|
I think webclient class can upload files as u want.
|
|
|
|