|
I think you want to set up an image map so you can tell if a user clicked in a certain area, and hten log them in. This is, of course, insecure, as someone can stumble on it. However, that's how you'd do it, create an image map and mark off an area as being the area you want to respond to, if it's clicked.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
In my webpage i m using a gridview and in that gridview one column has checkbox and another has asp:textbox.now i want to do that when any one click any testbox in any row the checkbox of the same row should be checked automatically.plz help.how it can be possible.
Thanx in advance
|
|
|
|
|
This would require some javascript on your part, to find the right control and check it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
thanx for the response.
can you plz give me some code examples.
|
|
|
|
|
Nishant's idea is a good one. If you can make it so that the click event calls a js method and accepts the client side id of the checkbox, that would be ideal. Then it's just something like
function checkit(id)
{
var check = document.getElementById(id);
if (check)
check.Checked = true;
}
Something like that. you make need to do something fancy in the onitemdatabound event to get the ClientID property of your checkbox tho.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
but i cant find any onClick event of the text box in the grid view.So how to caal the javascript from the cilent side.
|
|
|
|
|
That's a JS event. Try OnClientClick which ASP.NET will render as OnClick .
|
|
|
|
|
Well, actually, as onclick. And, the big difference is that if you use OnClientClick, you need to return a bool, returning false mean the OnClick is never called.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Better use JavaScript for this ......
In RowDataBind event of Grid in Code Behind
Add the Attribute for the Textbox to call a JavaScript function in
OnFocus event of the textBox and pass parameter as "this.ID"
In JavaScript when u get the ID of TextBox of a paricular row ,u can easily retrieve id of Checkbox ,
Use that Id to check or Uncheck the checkbox
|
|
|
|
|
thanx for the response.
the textbox do not show any onfocus event can you plz give me some code of example.
|
|
|
|
|
|
Hai all,
How to fetch the date using calendar control??
Im not using the scripting..
Help me..
|
|
|
|
|
Are you using the build in calendar control, or a third party one ? What do you mean by 'fetch the date' ? I assume you're saying you're not using any javascript ? If you can be clear, perhaps we can help.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Im just a beginner.. im using the build in ctrl.If i select the date frm ctrl It would be displayed in the text box.. And also the page is refreshed when i select the date and the contents are vanished wat to do...
Help me..
|
|
|
|
|
The built in one totally sucks, but there are examples on MSDN if you want to know how to use it. I took one look at it and decided it was crap, I have never used it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
What are the best approaches to generate random password for User ?
Is their any class available in .net 2.0 ?
which approach would be best ? and proffessional way to do this?
please direct me in right direction .
Best Regards
Rameez
|
|
|
|
|
Oh, I see. You're retarded. I'm sorry about that. Get one of your minders, the ones who help you go to the toilet, to read the answer I gave you last time and explain it to you. There is no other answer. There's no class available, and no other way to do it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you very much for good answer .
iam new to .net thatswhy i want to confirm from those who has idea of that. else thanks for answering .
Again thanks
best regards
Rameez
|
|
|
|
|
If you're new to .NET, why are you writing a password system for someone ? Oh, because you're cheap.
I don't mind that outsourcing happens, but I am offended at how many completely unqualified people are taking part in it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You can use Guid to generate random password. Find it on msdn...
|
|
|
|
|
I don't know what is Best, but i can suggest you one which may help you
Random objRan = new Random();
int ran1 = objRan.Next(10000000,99999999);
int ran2 = objRan.Next(1000, 9999);
string strRandom = ran1.ToString() + ran2.ToString() + DateTime.Now.Millisecond.ToString();
you can try this or can even generate your own algo for same.
I think it will assist you to generate a Random number everytime
|
|
|
|
|
Thanks for reply
what about Guid (Global Unique ID) class may i use this for genrating random Password.?
OR
i will use Random object for creating random password ?
which one approach is best ?
Best Regards
Rmaeez
|
|
|
|
|