|
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.
|
|
|
|
|
|
can anyone tell me how i add a custom property(userdefined) to an existing asp.net control.
For example,
Radio button has Groupname property but Checkbox doesn't have that property. I want to define the property to the Checkbox which is similar behaviour like radio button.
Hope understood.
Thanks in advance.
|
|
|
|
|
Dear,
I currently create project for intranet,
I want to send email to employee in company but don't want to use email server,
Can I send without using email server?
Socheat
|
|
|
|
|
Then in which account you want to send the mail ? Are you going to send mail to id like GMAIL, Yahoo, MSN , Rediff or you want to send it to other account ?
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
I have my own email server already, but I don want to log in and send email, because I just only use my project only in intranet.
So can I?
Socheat
|
|
|
|
|
if you want to send and read mail in intranet or internet, you alwasys need a mail server and mailclient. you can send mail from your application and if your server allows you to read then you can read mail from your application.
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
Anyway, I must to use mail server?
have any solution?
Socheat
|
|
|
|
|
then install an email server in the web server.
|
|
|
|
|
it's a better to use CSMTPConnection ----
Kaushik Rabadiya
|
|
|
|
|
Can you give me a full example?
Socheat
|
|
|
|
|
|
Thank for your kindly
Socheat
|
|
|
|