|
Hi,
I have two textboxes and one label. In textboxes I am entering numbers. To those textboxes I assigned on javascript function which will calculate the difference of those numbers and display in the label. I have one radio button. I need to disable the radio button if the difference is negative.
How to diable the radio button based on label value. I am assigning the difference to label in javascript function.
Thanks
|
|
|
|
|
If you are already using Javascript to assign the label, then it should be easy set the radio button appropriately.
if(value < 0)
radiobtn.checked = false
only two letters away from being an asset
|
|
|
|
|
Hi interested,
I have 2 small web pages using ASP.Net under VB.Net code, the first containing DropDownList containing countries filtering into it, when I select one of the countries it should filter cities of this selected Country into other DropDownList in the Second web page, I need to know How to do this, Plz some Help using just few codes no need to wizard.
Mr.Wonderful
Programmer
modified on Thursday, January 03, 2008 12:13:41 PM
|
|
|
|
|
Hi to all. I've been trying to find a way of resolving a problem I have and I can't quite figure it out how to do it.
I would like to achieve the following: I want to be able to list the directories (and subdirectories) of the hard drive of an user local machine, when he access a web page, displayed in a treeview, like a kind of XP File Explorer.
Is this possible, at all? If it is, how can I achieve this? Can I make this using "regular" asp.net, or "hell no!"? I'm asking this because I really can't seem to understand how I could list the folders of the client hardrive. For example, I can't run a command like this
Dim drives As String() = Directory.GetLogicalDrives()
in a way that it lists the drives of the PC of the client that is accessing the webpage, can I?
If this can't be done by "regular" code, how could I do it? ActiveX? Ajax? I haven't worked with any of these technologies so I'm really just wondering here...
At this point I don't even care if I can already put the directories in a treeview or not... I would just be happy to know a way to just print the list of directories.
I would appreciate if somebody could please direct me to a direction, an article or something that would enlighten me on what and how to do this.
Thanks in advance.
TechnoSpike
modified on Thursday, January 03, 2008 12:25:09 PM
|
|
|
|
|
TechnoSpike wrote: Is this possible, at all? If it is, how can I achieve this? Can I make this using "regular" asp.net, or "hell no!"?
You would need to create some kind of ActiveX control. The user would then need to install it, which means they would have to trust you.
TechnoSpike wrote: For example, I can't run a command like this
Dim drives As String() = Directory.GetLogicalDrives()
in a way that it lists the drives of the PC of the client that is accessing the webpage, can I?
That isn't possible. It will return the details of the server drives, not the client drives. (Hopefully, for the obvious reason that it is running on the server)
TechnoSpike wrote: If this can't be done by "regular" code, how could I do it? ActiveX? Ajax? I haven't worked with any of these technologies so I'm really just wondering here...
It depends what you mean by "reglar" code. You create an ActiveX control in "regular" code - There is nothing all that special to it. Did you mean ".NET" code?
Ajax runs in a sandbox in order to protect the computer it is running on, so it would not have access to such information.
ActiveX doesn't have a good security model so it can access that kind of information. Although you still have to persuade the user to install the ActiveX controls in the first place.
TechnoSpike wrote: I would appreciate if somebody could please direct me to a direction, an article or something that would enlighten me on what and how to do this.
Unfortunately I can't. It has been about 10 years since I last created an ActiveX control (in C++).
|
|
|
|
|
Colin Angus Mackay wrote: It depends what you mean by "reglar" code. You create an ActiveX control in "regular" code - There is nothing all that special to it. Did you mean ".NET" code?
When I said "regular" code I was trying to say a a way to achieve what I want in an identical way as I would do it if I wanted to list the directories of the server (just plain asp.net, not using ActiveX or other thing).
Colin Angus Mackay wrote: Ajax runs in a sandbox in order to protect the computer it is running on, so it would not have access to such information.
So, Ajax is the same boat as Javascript, then (so to speak)? Meaning, there's no way I can list the directories of the hard drive of the machine the client is using to access my webpage using Ajax or Javascript, or anything else?
The only way of listing the contents of the client harddrive will be to have something that has to be installed in his machine to execute that command, is that it?
|
|
|
|
|
TechnoSpike wrote: So, Ajax is the same boat as Javascript, then (so to speak)?
Well, yes. The J in Ajax stands for Javascript.
TechnoSpike wrote: The only way of listing the contents of the client harddrive will be to have something that has to be installed in his machine to execute that command, is that it?
Yes, it needs to be able to get out of the sandbox. There isn't much that can do that becase it can compromise the security of the machine so it is generally frowned upon.
|
|
|
|
|
Colin Angus Mackay wrote: Yes, it needs to be able to get out of the sandbox. There isn't much that can do that becase it can compromise the security of the machine so it is generally frowned upon.
When you are saying this, does it mean that there's some other thing that can achieve this besides ActiveX? Or, you are just saying that there's a number of ways to achieve this but all of them using ActiveX?
I'm trying to understand which way/technology should I point my efforts (and time) on looking for the solution...
|
|
|
|
|
TechnoSpike wrote: When you are saying this, does it mean that there's some other thing that can achieve this besides ActiveX? Or, you are just saying that there's a number of ways to achieve this but all of them using ActiveX?
As far as I'm aware they all use ActiveX. There may be non-ActiveX solutions that I don't know about.
TechnoSpike wrote: I'm trying to understand which way/technology should I point my efforts (and time) on looking for the solution...
Just remember, users will get pissed off if they think you are trying to compromise their system. ActiveX controls bring up lots of security warnings when they are first encountered and installed to give the user the option of denying it access to their system. Obviously, if they deny your ActiveX control access to their system there isn't a lot you can do.
|
|
|
|
|
I am developing a web project (ASP.net 2.0) on my pc and everything is working fine. When I copy over to ftp the site doesn't function properly when it is trying to access a separate database class to connect to the .mdb database. However, if i move the connect code in the same class as which is calling it works fine. What is missing? Why is it not able to access the static class?
|
|
|
|
|
Civic06 wrote: However, if i move the connect code in the same class as which is calling it works fine. What is missing? Why is it not able to access the static class?
No idea. What differences are there in the code?
|
|
|
|
|
No difference...its the exact same (copy and paste)
|
|
|
|
|
Civic06 wrote: No difference...its the exact same (copy and paste)
Yes, there is a difference. It is in a different class for a start (that counts as a difference in the code). Do you use static initialisers in the static class that are not used in the other class? Are the method signatures the same? Where does the code get the connection string from? Was the static class compiled into a different assembly?
In short, from what you've so far described it should work. But there is some difference (possibly a subtle one) that is changing the behaviour.
|
|
|
|
|
Hi
Check This Tool that had been poasted by me
NetSpy: Your NetworkSpy[^]
I want to add one functionality with that Tool , that with the changing of file i want to retrive the user name of that file means who is acceesing, or changing or deleting.
Any kind of Idea !!!
|
|
|
|
|
Abhijit Jana wrote: I want to add one functionality with that Tool , that with the changing of file i want to retrive the user name of that file means who is acceesing, or changing or deleting.
I'm sure that it can't be done in ASP.NET.
|
|
|
|
|
hi all,
i have one big problem in my web application when using search engines like google, basically in my application we used frames, In google we searched one key word of my application, its showing my web site, when i click that link its openning frame less i mean only that page will opened, actually i need to show with all frames, i used meta tags keywords and description in the frame set page. but no use... plz check and give a solution for this..
thanks
Mani
|
|
|
|
|
rompicherlasubramnayam wrote: when i click that link its openning frame less i mean only that page will opened, actually i need to show with all frames
You can have a simple .JS include in the pages which checks whether the page is being loaded within appropriate frameset and if there is a direct page load, you can appropriately load the top frameset page.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I have developed a web application where the user is able to download files from server.
The problem is, when the download process is going on I am not able to access other pages from that page.When the download process is completed,then only i am able to goto(access) other page.
file size >75 MB
satyaki mishra
|
|
|
|
|
becuase this is taking too much time to download file. You should use AJAX to do this.
|
|
|
|
|
Abhijit Jana wrote: AJAX
AJAX XmlHttp?
But after reading the non-HTML content in xmlHttp Object's response Text, how are you intending to write to the client web browser system?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
iam having a date in the datatable in the string format like this
"12/12/2007 12:00" like this now how i can convert this to dd/mm/yyyy
with put date
|
|
|
|
|
public string ChangeDateFormat(string t)
{
string dat = "";
DateTime datformat;
if (DateTime.TryParse(t, out datformat))
{
dat = datformat.ToString("dd/MM/yyyy");
return dat;
}
return dat;
}
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
hi sonia
can u give this in vb.net code
|
|
|
|
|
try this..
string.Format("{0 }","12/12/2007 12:00")
In stead of smiley use colon than after small d
|
|
|
|
|
CODE UNDER ROW COMMAND IN GRIDVIEW
Button b = (Button)e.Row.FindControl("update");
if (b != null)
{
string str = ChangeDateFormat(DataBinder.Eval(e.Row.DataItem, "indate").ToString());
b.Attributes.Add("onclick", "return abc(" + str.ToString() + ");");
}
CODE IN THE JAVA SCRIPT FUNCTION
function abc(s)
{
alert(s);
return false;
}
Function Defenition
public string ChangeDateFormat(string t)
{
string dat = "";
DateTime datformat;
if (DateTime.TryParse(t, out datformat))
{
dat = datformat.ToString("dd/MM/yyyy");
return dat;
}
return dat;
}
now when i click at the upDATE BUTTON TO CHECK THE VALUE IT GIVES
.6576576575757657657
I HAVED DEBUGGED THE CODE .IT IS SENDIG THE ACCURATE DATE.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|