|
I´m developing a web application in ASP using Visual Studio .NET (VB code). I´ve enabled page.smartnavigation to alleviate postback flashing and scroll repositioning, but it doesn´t seem to make a difference. The feature only works in debug mode on my development machine. Even then, it only works until I invoke the server.transfer method. I´ve found very little documentation on this matter. I agree that server controls allow quicker overall deployment, but the side effects of the postback event are barely worth it. I´m hoping someone has a solution other than reauthoring the app in java.
|
|
|
|
|
It only works for IE5 and up. Other than that I haven't seen much on it either. My book only has a short paragraph about it.
Todd Smith
|
|
|
|
|
Need help on using ActiveX COM object in ASP.NET
on AAAA.aspx file:
<object id="test" runat="server" classid="clsid:55CCD719-8676-431E-9B6E-787281D914D0" viewastext="">
on AAAA.aspx.cs file, defined the following:
using System.Runtime.InteropServices;
[ComImport, Guid("55CCD719-8676-431E-9B6E-787281D914D0")]
class ActiveXctrl {}
private void Page_Load(object sender, System.EventArgs e)
{
ActiveXctrl test = new ActiveXctrl();
}
At runtime, encountered the following error:
Parser Error Message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
|
|
|
|
|
This partly goes to chris, but anyone with good (or bad) ideas is welcome to response.
The pages at code samples are called directly (e.x. <a href="http://www.codeproject.com/directx/killtux.asp">http://www.codeproject.com/directx/killtux.asp</a>) but each one has a fixed footer and a header, (CP-logo, banners, links, side-menus, etc). How did you do that? Do you call some code in RequestStart() and RequestEnd()?
What i generally do is using a single page and pass to it the filename or the ID of the page (ex \page.aspx?PageID=54 ) but i have also use the application.cfm and OnEngRequest.cfm files (which i think is equevelant to RequestStart() and RequestEnd() of ASP).
Both of those ways have their adv/disadv but in general are working the same. It's good for sites with simple structured site-tree.
But soon you will find a page which doesn't contain just text but it's an index for another databasetable. You will find that this new page is similar to page.aspx and you end up with urls like: \page.aspx?PageID=56&Category=4
And can go on like: \page.aspx?PageID=56&Category=4&Letter=B
Something is wrong here, it sould work the other way.
Here is what i though:
We assume that all pages contain XML code. tranditional html can be placed in <htmlcode>CDATA[[ ]]</htmlcode> sections.
1) In the Application_OnReguestStart() we get the path of the executed script.
2) we check in the same path for a similar file ending in .xsl and perform the translation.
3) we open the file enginc.xml (or whatever...) that contains a list of aspx files, we execute those files and add the reasults to the response. then from the same file (enginc.xml) we get a list of .xsl files and perform the transformations to the response.
4) we move one folder closer to the root, and repeat step 3 till we reach the root.
This is just a draff and it's sure that it will get more complex, i just wonted to know what you think, and if you have done anything like that before.
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
I am sorry for this short and not very precise description, but the problem is not mine (yet ), so i haven't seen the source code.
I have been involved in a project that looks like this: A JSP application that delivers HTML and JavaScript to client browsers.
After passing way over the deadline they finally succeeded reeding (spelling?) out the worst bugs, but then: release of the IE 6!.
Now rows in tables disappear at random for no reason.
Though our customers have only paid for compatibility with IE 5, it was considered a better solution to clean up this mess. But now the HTML is 100% pure according to W3C, but still rows are disappearing (yes, they DO figure in the source HTML).
Do anybody know if this is a known bug, and i really would appreciate a workaround.
"It could have been worse, it could have been ME!"
|
|
|
|
|
Hmm, interesting, I haven't found such problem not on IE6 nor on other browser/version. But really have to look at the code to say what is going on. Also code can be 100% W3C verified but still have problems For example if you'll put <tr style="display:none>" - it is still right and has no errors, but the row won't be displayed, rofl. Of course this is simple example you could have more complex problem. But try first to take the result HTML code and look at it more closely... or post it here
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Just wondering if anyone has heard of plans by Microsoft to make htmlinputfile upload any faster, or perhaps there is a way to optimise this process for large files which I am not aware of. I can only move 42K per second over a LAN, and need to routinely move files about 20 MB for a graphics application I am working on. I could try third-party components, which I have used in the past, but I was really hoping to go strictly .Net.
Any thoughts would be very welcome.
Jeff A. Moore
|
|
|
|
|
I noticed the same thing on my local machine. I think part of the problem is browser performance. I have a similar script written in perl and it performs slow also.
I think you're best bet speed-wise is to setup an anonymous ftp and trigger an upload via your web page.
Todd Smith
|
|
|
|
|
I cannot get an HtmlInputFile control to upload files larger than 4MB without getting a "The page cannot be displayed" error in IE. How are you getting larger files to even upload?
|
|
|
|
|
Set maxRequestLength in web.config. Mine is set to 81920 (~80MB).
Todd Smith
|
|
|
|
|
Just realized I had started this topic and never came back with the solution I found with a little help from Microsoft. It seems my error occured only when I was connecting to the server using its ip address. MS tech support said I was describing an issue that applied when running the server on the dev machine and connecting to localhost, so my situation actually expanded something they were already working on. I set up a hosts file and used a host name to connect and the upload speed was very acceptable. With this knowledge in mind, I considered the issue resolved although MS decided to keep the incident open while they worked on a solution to it.
|
|
|
|
|
Can some PLEASE tell me how to programatically create a Virtual Directory in PWS for Windows 9x? With IIS 5.0 under 2000 it's a snap with the Administrative scripts given to you, but they don't appear to be a part of PWS (IIS 4) and I can't seem to figure it out. Any 'ol hack will do. Please help!
|
|
|
|
|
I spent yesterday banging together a website for my Kiwanis club and sent the link to several members for critique. One member today at lunch told me the page froze her computer. She's the only one using a Mac. Does anyone know of any peculiarities of the Mac browser that could cause this? There is nothing on the site but straight HTML, by the way. Not even a style sheet, nor a frameset, or any other modern techniques. I think she's daft, but I can't confirm it.
|
|
|
|
|
We have had problems with web apps on Macs. The browser hangs or slows when users start other memory intensive apps like Photoshop, or when saving a file.
The opinion the development staff is that Macs are peices of crap. How can you have a modern OS that can't multitask.
|
|
|
|
|
I think I'd agree with your staff. The only thing I can imagine that might be causing the problem is the image used for a background. But it's not all that large (100K) and should be easily rendered. Weird.
|
|
|
|
|
I put my company's purchase order system on our intranet as an asp application. We have both Macs and PCs. I've seen many times where the Macs could not display the page as intended if there was a single tag left unclosed, or some other issue that didn't bother the PCs at all. They can be really buggy, but I doubt the page froze the Mac. Our Macs crash much more than the PCs, and Mac users as a whole tend to know very little about computers. They often use old browsers because they don't know how to upgrade. When they start crashing, I run Norton Disk Doctor and it usually finds and corrects hard drive errors. But back to the browser issues: I have customers use their browsers as ftp clients since most don't know about or have ftp clients on their systems, and strange enough, Netscape on Mac works fine but IE on the Mac will not allow uploads as an ftp client, though it will show the contents of an ftp site. In conclusion to this long-winded post of mine, I do believe they're some strange differences. I just tell everyone to upgrade to the latest versions of their software... Good luck!
Jeff A. Moore
|
|
|
|
|
I suspect that this user has another problem. This is trivial HTML, and there are no unclosed tags other than the P tag, which shouldn't need a closing tag. Your assessment of the computer skills of Mac users matches my own experience, and I know this Mac is old. I'll recommend a software upgrade and leave it at that
Thanks...
|
|
|
|
|
Maybe on Mac even P needs a closing tag?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
It could be! I built a blank web page last night using Interdev, then ran it through a syntax checker. There are 17 errors! Maybe I should go back to using Notepad and the HTML spec...
|
|
|
|
|
Syntax checker? You mean W3C HTML Validator? I'm using Interdev also and my pages with no errors. Err.... actually I'm using Interdev like a simple Notepad, just typing all the code by myself, lol.
But yes, I saw that there is not align="center" in Interdev for TD tag. It places "middle" instead, and this is not right according to W3C. I had a headache battling with it, LMAO
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Interdev sucks, but it still saves me a little bit of time. I can rough out the page quickly, but then I have to manually edit and tweak it in the Source editor to make anything work correctly. I tried some of the design-time controls, but they just make matters worse. I'd be willing to bet that nothing at microsoft.com was built using it
|
|
|
|
|
Heh, never used all those design-time things. What for? I'm always using Source editor to make pages, thus they are cleaner. But in ASP development I didn't find better tool. I tried Dreamweather (or whatever it called) and it was really sucks, too many unuseful features with less usefull. And had a headache to setup it so I can view my ASP files, lol
So still using Interdev for ASP development. If I need to make a quick layout - so FrontPage makes it easy
Maybe you can tell me some good tool for ASP development? I would like to test some, maybe I'll find better
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
I haven't tried any .asp yet. This stuff is straight HTML. Nice to know there's something that Interdev does well - it sure isn't any good for making simple web pages! I think the program you're referring to is DreamWeaver - I've seen really mixed reviews of it, too. I'm still looking for a tool that actually works, though
|
|
|
|
|
So I think I’ve discovered a bug in the JScript.Net compiler. It has to do with the VBArray object and it’s use in derived class' constructor; specifically when initializing the base class. I’ve taken a brief look into the compilers’ source code, but the problem isn’t just popping out at me, so further exploration into this will be necessary.
The following code demonstrates the bug.
class BaseClass {
private var a_ : Array;
public function BaseClass ( a : Array ) {
this.a_ = a;
}
}
class DerivedClass extends BaseClass {
public function DerivedClass ( a : VBArray ) {
super ( a.toArray () );
}
}
Here's a dump of the error, if anyone's interested. It looks like it got a problem with creating a local variable (why?), but that's just a guess at this point.
***INTERNAL COMPILER ERROR***
Microsoft.Vsa.VsaException: InternalCompilerError (0x80133021): System.ArgumentNullException: Value cannot be null.
Parameter name: local
at System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, LocalBuilder local)
at Microsoft.JScript.Member.TranslateToLateBinding(ILGenerator il, Boolean speculativeEarlyBindingsExist)
at Microsoft.JScript.Binding.TranslateToIL(ILGenerator il, Type rtype, Boolean preSet, Boolean preSetPlusGet, Boolean calledFromDelete)
at Microsoft.JScript.Binding.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.Member.TranslateToILWithDupOfThisOb(ILGenerator il)
at Microsoft.JScript.Binding.TranslateToILCall(ILGenerator il, Type rtype, ASTList argList, Boolean construct, Boolean brackets)
at Microsoft.JScript.Call.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.Class.EmitInitialCalls(ILGenerator il, MethodBase supcons, ParameterInfo[] pars, ASTList argAST, Int32 callerParameterCount)
at Microsoft.JScript.FunctionObject.TranslateToIL(CompilerGlobals compilerGlobals)
at Microsoft.JScript.FunctionDeclaration.TranslateToILInitializer(ILGenerator il)
at Microsoft.JScript.Block.TranslateToILInstanceInitializers(ILGenerator il)
at Microsoft.JScript.Class.TranslateToCOMPlusClass()
at Microsoft.JScript.Class.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.Block.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.ScriptBlock.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.ScriptBlock.TranslateToILClass(CompilerGlobals compilerGlobals)
at Microsoft.JScript.VsaStaticCode.TranslateToIL()
at Microsoft.JScript.Vsa.VsaEngine.DoCompile()
at Microsoft.Vsa.BaseVsaEngine.Compile()
cheers,
-Ben
|
|
|
|
|
you ever figure this one out?
|
|
|
|