|
Any code or article? Thanks.
|
|
|
|
|
There are numerous ways to do it. You'll have to use your brain
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I'm going to be in a situation soon where I need to serve up downloads greater then 2 gigs, which won't happen through http. I'm trying to look into what my options are... We'd like it to be clientless, as it will be cross browser/system. I like the idea of using bittorrent, but we want to avoid the client hassle. Does anyone know of a java applet that will act as a bittorrent client? Is it possible to implement a .net bittorrent client through the web browser? Is there a better option that I'm completly missing? Is ftp a viable option to look at? I would need a way to present them a download link from a web site, and I'd like to hide as much of the backside as possible. Thanks for the help!
- Dave Hurt
|
|
|
|
|
LancelowDowell wrote: I like the idea of using bittorrent, but we want to avoid the client hassle.
Last i checked, there were bittorrent clients available for... just about everything. Opera even has one built in.
LancelowDowell wrote: Does anyone know of a java applet that will act as a bittorrent client?
Sure...[^]
LancelowDowell wrote: Is ftp a viable option to look at?
If your server can handle the load, then sure. Of course, you'll run into the same problem as HTTP: most deployed browsers don't do a good job of resuming downloads if there's a network issue.
|
|
|
|
|
That was my argument as well, but it was requested that we try to make this clientless.
What was the link? Pulls up a page cannot be found message. Thanks for the response!
- Dave
|
|
|
|
|
Hi,
I want to copy files from local machine to a remote machine using VBScript.
Both machines are directly connected.
OS installed: Windows XP
Thanks
|
|
|
|
|
I have a TD (one TD per TR) with four child elements; two TextBox server controls and two text spans to label them. How do I make the last TextBox stretch to fill up to the end of the TD, and thus the end of the row?
I'm trying to move away from using tables as a layout mechanism, so I thought I'd begin weaning myself off them by first doing away with columns, then rows, so now I'm just using rows for vertical positioning, and am trying to explore other means for horizontal positioning.
|
|
|
|
|
Brady Kelly wrote: I'm trying to move away from using tables as a layout mechanism
Do you have some reason to believe that HTML/CSS supports what you describe without using tables?
led mike
|
|
|
|
|
Yes, it does sort of have at least one, absolute positioning, but the reason I was asking is because I don't know.
|
|
|
|
|
|
You can give each of them a percentage width. Or actually, you can't give the spans a percentage width, but you can enclose them in a DIV that does have one.
Frankly, tables tend to work pretty well for forms-heavy pages. Because, unlike most normal pages, you often actually do want a rigid grid layout that isn't affected much by the default sizes of individual components. And yeah, most forms controls have some pretty bizarre defaults (well, not really - they tend to match those of similar controls on whatever platform the browser runs on... but that doesn't make it any less weird when you're just trying to set up a webpage).
|
|
|
|
|
Thanks Shog9 and Mike, I now have a useful suggestion and some luck.
So, tables aren't as evil as Zen Garden type people would have us believe?
|
|
|
|
|
Brady Kelly wrote: So, tables aren't as evil as Zen Garden type people would have us believe?
Well...
Look, here's the problem. Prior to proper implementations of CSS, tables were often the only way to get the layout you wanted. That said, they're not a very good layout mechanism for non-tabular data. There were (and sadly, still are) many sites with layouts built using deep nested tables - these tended to be large, hard to parse, hard to edit, and generally difficult to work with.
That said, tables are just fine for what they were intended for - tabular data.
|
|
|
|
|
Shog9 wrote: That said, tables are just fine for what they were intended for - tabular data.
Like a table of controls?
|
|
|
|
|
If that's actually what you're going for, then sure.
|
|
|
|
|
Not really, but it's serving me nicely with a prototype today. The quicker I can get the screenshots/prototype out, the more time I have for actually thinking things through.
|
|
|
|
|
I am trying to encrypt and decrypt the password in ASP.NEt2.0 application with Rijndael
algo.
I am able to encrypt the password but not able to decrypt it.
Can anybody tell me what is the problem with my code,
I am pasting it here
public static string Encrypt(string StringToEncrypt, string Key)
{
Rijndael _encryptionservice = new RijndaelManaged();
ICryptoTransform _encryptor;
byte[] _bytesdata;
byte[] _byteskey;
string _encryptedstring;
Key = Key.ToLower();
_bytesdata = Encoding.ASCII.GetBytes(StringToEncrypt.PadRight(16));
_byteskey = Encoding.ASCII.GetBytes(Key.PadRight(32).Substring(0, 32));
_encryptionservice.Mode = CipherMode.CBC;
_encryptionservice.Key = _byteskey;
//_encryptionservice.IV = Encoding.ASCII.GetBytes("VIMSuitEncoding");
_encryptor = _encryptionservice.CreateEncryptor();
MemoryStream _memstreamencrypteddata = new MemoryStream();
CryptoStream encStream = new CryptoStream(_memstreamencrypteddata, _encryptor, CryptoStreamMode.Write);
try
{
encStream.Write(_bytesdata, 0, _bytesdata.Length);
}
catch (Exception ex)
{
throw new Exception("Error while writing encrypted data to the stream", ex);
}
encStream.FlushFinalBlock();
encStream.Close();
_encryptedstring = Convert.ToBase64String(_memstreamencrypteddata.ToArray());
return _encryptedstring;
}
public static string Decrypt(string StringToDecrypt, string Key)
{
Rijndael _encryptionservice = new RijndaelManaged();
byte[] _bytesdata;
byte[] _byteskey;
string _encryptedstring;
ICryptoTransform _decryptor;
int _decryptedstringlength;
Key = Key.ToLower();
_bytesdata = Convert.FromBase64String(StringToDecrypt);
_byteskey = Encoding.ASCII.GetBytes(Key.PadRight(32).Substring(0, 32));
_encryptionservice.Mode =CipherMode.CBC;
_encryptionservice.Key = _byteskey;
//_encryptionservice.IV = Encoding.ASCII.GetBytes("VIMSuitEncoding");
_decryptor = _encryptionservice.CreateDecryptor();
MemoryStream _memstreamencrypteddata = new MemoryStream(_bytesdata);
CryptoStream encStream = new CryptoStream(_memstreamencrypteddata, _decryptor, CryptoStreamMode.Read);
//_bytesdata = new byte[_bytesdata.Length];
try
{
_decryptedstringlength = encStream.Read(_bytesdata, 0, _bytesdata.Length);
}
catch (Exception ex)
{
throw new Exception("Error while writing encrypted data to the stream", ex);
}
encStream.Close();
//_encryptedstring = Convert.ToString(Encoding.ASCII.GetChars(_memstreamencrypteddata.ToArray())).Substring(0, _decryptedstringlength);
try
{
_encryptedstring = Convert.ToString(Encoding.ASCII.GetChars(_memstreamencrypteddata.ToArray())).Substring(0, _decryptedstringlength);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
return _encryptedstring.Trim();
}
}
|
|
|
|
|
Are you following a book or tutorial or example?
led mike
|
|
|
|
|
I am following just an example....
and it was a VB code which I had converted to C#
|
|
|
|
|
Perhaps if you told what the symptoms are... Do you get any error message?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I'm to build a small web site that allows employees to submit complaints, suggestions, compliments etc. It should also provide this data to members of a committee who will compile reports based on the employee feedback, and publish them on the site. The client has specified a frames based approach[1], with title and quick links frame(s) across the top of each page, a navigation frame containing a treeview down the left, a quick poll and newsflash frame containing a poll and or news items, down the right, and a context specific content frame in the middle.
I would like some general advice on how to best go about this, mostly using ASP.NET, but with client scripting as well. At present our company is implementing the extJS library for our large amount of client side processing, so I may be able to leverage off my colleague's experiences with that. I'm also thinking along the lines of web parts, master pages, etc. but would just like some expert advice from the CPians on what components would fit my requirements best.
[1] I've heard IFrames are evil, but I can't see why. We have just converted our main application from whole page loads back to IFrames, with a huge speed improvement. Are IFrames evil, or have people just abused them too much?
|
|
|
|
|
Brady Kelly wrote: The client has specified a frames based approach
Brady Kelly wrote: I would like some general advice on how to best go about this
Most important, try to explain that Frames are out in favor of other more modern designs. Doing that in Frames will limit usability and add complexity to the development.
Brady Kelly wrote: what components would fit my requirements best.
As always, IMHO the component that fits all requirements best is a thorough understanding of the technologies being used to develop the solution. Using third party controls to fill knowledge gaps is like squeezing a balloon.
led mike
|
|
|
|
|
led mike wrote:
As always, IMHO the component that fits all requirements best is a thorough understanding of the technologies being used to develop the solution. Using third party controls to fill knowledge gaps is like squeezing a balloon.
I have quite a solid understanding of ASP.NET, but I don't have the luxury of exploring each of the components it offers before embarking on a project. I could easily hand-code everything, but I would like to rather delegate the 'plumbing' to the people who designed ASP.NET. I would just like some feedback on best possible uses of built-in components, e.g. web parts vs. user controls etc.
The one third party library I mentioned, extJS, is not intended to fill knowledge gaps but to save time coding. We are already implementing it to great effect on other projects.
|
|
|
|
|
|
I want to have one page on a website I am creating to show any information I have. I want everyone who visits the site to see the page, but to modify it from the site itself, I want to use a login page with username/password fields to do this. You enter username and password, you see the page and can edit information on it. You don't know username/password, you can only see page, but not modify information on it.
I want this to be similar to a blog page that way, but I don't want to create a blog for this as I only want to post information to this one page and do this from anywhere as long as I have username and password. Any ideas?
In the end we're all just the same
|
|
|
|
|