|
i can disable all keys except start button..... would u plz help me what to do...
|
|
|
|
|
|
I do not dispute that you might be able to get the necessary answers on Google... but seriously, do you even look at the search results of the links that you post?
For instance, which link in the search result pages gives the answer to the OP's query?
|
|
|
|
|
Why would you want to do that anyway??
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Double post although the first one was super-duper URGENT.
Blog link to be reinstated at a later date.
|
|
|
|
|
Disable all controls on that page. simple solution
Venky
|
|
|
|
|
Hi All,
i am developping a web application.
in some pages only mouse should work. key board should not work at all...
i can not able disable start key??
please any body suggest me what to do..........
|
|
|
|
|
|
Disable all controls on that page. simple solution
Venky
|
|
|
|
|
you may want to do the bellow. There only enable 0 to 9 and the backspace.
you may do your own coding
private void ToolStripTextBox_CurrentRow_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48) || (e.KeyChar > 57))
e.Handled = true;
if (e.KeyChar == 8)
e.Handled = false;
}
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
hello friends plz help me in getting code for to disable a key board....
|
|
|
|
|
subrat12345 wrote: hello friends plz help me in getting code for to disable a key board....
Just remove the keyboard connection from PC..
Seriously, consider reading the forum posting guidelines before you post questions. Read this[^]
|
|
|
|
|
Sounds like a virus to me. Disable the keyboard from a web page. Nasty.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
This guy has an URGENT problem! Stop your work! Leave your jobs!
Blog link to be reinstated at a later date.
|
|
|
|
|
My Paranoid Hubby wrote: This guy has an URGENT problem! Stop your work! Leave your jobs!
I am sorry, I am in a meeting. Is it ok to leave after 30mins?
|
|
|
|
|
Hi all,
I need a help on Asp.Net checbox and Asp.NetCheckBoxList
I have a page with 3 controls viz.,
1) A CheckBox -> which has a text "ALL"
2) A CheckboxList -> which has a couple of checkbox items
3) A Submit button which when clicked get the data from the database.
On selecting / deselecting "All" checkbox, all the items in the checkBoxList gets selected / deselected respectively. However, this functionality is achieved using Javascript. After this, I click on the search button, which brings the data perfectly, but the Viewstate of that CheckBoxList is not maintained. The "All" checkbox is shown selected, but all the checkBox items of the checkboxlist is not shown as selected on PostBack.
How can I sort out this issue??
Would be thankul if anybody has come across such strange issue and can help me for the same.
Thanking you all in Advance
Regards
Pratik Shah
|
|
|
|
|
Hi pratik
you can use a hidden variable to store the status of the check box list, (Probably in CSV Format)
Then use window.onload event to rebind the state of the checkboxes
this should work
Rgards
Pete
|
|
|
|
|
Hi Prasanna,
thank u very much for your immediate reply(just 6 mins)
By this do u mean that I need to store the selected values in a CSV format in a hidden variable and then during Postback, trap the window.onload event and set the selection accordingly. If yes, then in that case can u help me with the ready code (if you have one.Please accept my sincere apology for asking the same from you), since i have an immediate urgency to solve this.
Thanking you all in Advance
Regards
Pratik Shah
|
|
|
|
|
HI
i do not have a readi code for the above requirement. but you can achive it easily
following would be the psedocode
Assumption:
1. Hidden variable name : hidSelValues
Code
var obj=document.getElementById("hidSelValues);
var arrSelValues = new Array();
//Split the checkbox ids to store them in a array
arrSelValues = obj.value.split(",");
for(var i=0;i<arrselvalues.length;i++){>
document.getElementById(arrSelValues[i]).checked=true;
}
Try the baove code
All the best
Regards
Pete
|
|
|
|
|
How do i process a german cultured Excel file. My code is able to handle en-US
Technology used ASP.Net C# .Net 2.0
Thanks in Advance
Pete
|
|
|
|
|
|
dbnair wrote: i tried the code given in \
http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_114a.html[^]
Well, contact the author then - or try someone else's code. A novel idea, try writing your own!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i want to trap the ip addresses of the remote pcs who have visited my web page.
|
|
|
|
|
HttpContext.Current.Request.UserHostAddress;
or
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
To get the IP address of the machine and not the proxy use the following code
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
- first page result from google.
|
|
|
|
|
thanx for ur response.
i have already used the following code
"HttpContext.Current.Request.UserHostAddress"
but it gives wrong ip.
and in "HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]"
it gives an error
can u give me one example with code how to use it.
|
|
|
|