
Diesel
Avatar/Signature-
Posts
682 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Diesel
-
"Could not create an instance of OLE DB provider 'MSDAORA"
Diesel replied to lorena's topic in Database / XML / Reporting
Interesting situation. I would count out security and mdac as the errors since you have the linked server working and are using windows auth. http://support.microsoft.com/kb/280106 Message 3 is the error you received. The registry change may work. -
Links relevant to the ADO.Net 3.5 exam. http://mattdelisle.net/?p=10
-
Hi, I wanted to post in this category since I assume this is the most read discussion category, and the appropriate category for this thread is rarely read. The .Net 3.5 Beta Exams for ADO.Net and ASP.Net are open to the public! http://blogs.msdn.com/gerryo/archive/2008/04/02/asp-net-and-ado-net-beta-exams-extended.aspx Sgn up now, they are free! Also, the more test data they have, the higher the quality of the released tests and (hopefully) the higher the quality of developers who are certified.
-
Hi, Some thoughts: If you edit the web.config file for the website, the app pool gets restarted...i don't know if that's the settings you are talking about. Im assuming a post-behind is using the XmlHttpRequest object or equivalent. A post-behind in essense should be an asynchronous request, therefore it spawns a thread implicity and you have no need to spawn another one. If this is not the case, you need to be more specific in the post-behind process you are using. As for the locking errors, I would assume that errors would come up if the user navigates to a seperate page and the spawned thread is still running.
-
Oh, your right, vb doesn't have anonymous functions. Oh well, it would have only been a minor improvement in the code. Lookin' good.
-
Im pretty sure that little tray icon your talking about means VS starting it's built in web server.... Make sure when you create the website, the location type is Http, in the dropdown box next to the name. When you run the website, it should not pop up a tray icon, and should just pop up the default browser. The address should not have a port number, it should be a localhost child directory; http://localhost/WebSite3/Default.aspx. You can open your own browser window and type in that (your website) address. Everytime you build the solution, the files that changed will be recompiled.
-
This code should work, when converted: private bool ValidateXML(XmlDocument xmldoc) { xmldoc.Schemas.Add("http://me.com", "XSD/AddEmployee.xsd"); xmldoc.Validate(new System.Xml.Schema.ValidationEventHandler(xmlVal_ValidationEventHandler)); return _isValid; } void xmlVal_ValidationEventHandler(object sender, System.Xml.Schema.ValidationEventArgs e) { if (e.Severity == System.Xml.Schema.XmlSeverityType.Error) _isValid = false; } And now that Im older and more experienced, I would add these comments... The xml namespace and location of the XSD should be stored in a seperate resource file and not as literals... And you could use an anonymous function for the ValidationHander to move the processing logic closer to the source call.
-
You have to associate the Xml document with the schema. The code you use to add a schema to a validating reader is saying "If you find this namespace, use this contract to verify it"...but the validator never found the namespace. Add the namespace to the root node: <Employees xmlns="urn:pleaseWork"> Fyi, you may just want to change the namespace to pleaseWork or something along the lines of http://*/pleaseWork. Also, you should take out the standalone attribute in the xml header...the standalone attribute is designed specifically to tell the xml reader that nothing outside of this document will affect how it is processed...ie, there is no dtd to validate against. Although most readers will validate anyway, they shouldn't. Also, the XmlValidatingReader instance is redundant, as the XmlDocument has a validate function that performs exactly the same procedure.
-
It's not as complicated as you think, IIS is really just a medium between external requests and ASP.Net. Reinstalling it won't matter. So, here are the assumptions Im making; the OS's are the same, and the version of IIS is the same, you want to work with .Net 2.0. So, you didn't specify whether .Net 2.0 framework was installed...installing it on both machines would be the first step. ASP.Net should register itself, and you can run multiple versions of ASP.Net on the same puter, so the 1.0 app is fine. If ASP.Net does not register itself correctly, run the command line tool aspnet_regiis: http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx After that, good ol' VS2005 takes care of creating the virtual directories for you. Just create a new web site, and change the location from "File System" to "Http" and then specify something based on the localhost, ie. http://localhost/TestSite1. That's it.
-
<span><%= str1Err %></span> Make sure the variable scope is protected (Friend in vb?)
-
http://www.4guysfromrolla.com/webtech/111500-1.shtml Maybe?
-
I liked the direction it was headed at first: I would prefer to apply filters to my web site rather than have the ****ing government do it.
-
The onload event of the window object (or body tag) is specifically fired when the page finishes loading by the browser. The entire HTML page is loaded into a document object model (DOM) and the DOM has certain events that it calls during the lifetime of the page. In the second code example, you have attached a property to a random div tag called onload. The browser will not do anything with this property. The DOM just sees it as a normal div tag. You can still use the onload event of the body tag to call the function, but I recommend using a seperate javascript function to add function calls to the onload event. Adding an event to the onload event inline overwrites any other functions calls to that event, and if you are using third party libraries, this can be an issue. Anyway, here is a popular javascript function that you can use to chain function calls to the onload event... function addLoadEvent(func) { 2 var oldonload = window.onload; 3 if (typeof window.onload != 'function') { 4 window.onload = func; 5 } else { 6 window.onload = function() { 7 if (oldonload) { 8 oldonload(); 9 } 10 func(); 11 } 12 } 13 } 14 15 addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
-
Yeh, if you want a more specific answer, you need to specify the type of data container (dataset, list). It would make a difference in implementation if the dropdowns were databound. If the dropdowns are not databound and you are using a simple list structure, you need to relate the lists in dropdown A with the list that would be shown in dropdown B and use an event to load dropdown B, such as SelectedIndexChanged.
-
Ick bein. Ok..ok...it's bubble sort...cept...it's not sorting. A faster way could be the following... Create a new list. Loop through the source list (just once). Check to see if the new list contains the item your adding, if it does, don't add it. And listen...If your throwing away fruit, I'll take the extras.
-
Let me inject some reality into this situation. First of all, no one interested in professional game programming would use vb.net. Secondly...I briefly looked at some of the tutorials on your site, and they use outdated design and naming conventions. Any real publisher would have their own programmer look over the draft code and you would be given a big thumbs down. Thirdly...there's no original snippet or app on the site, it's all been done before and countless books have been written on each of the techniques. Fourthly...where are the other 3 quarters of the book coming? Do you have some ingenious original content that no one has ever seen before...let me answer that for you...no. Fifthly...who the hell are you? Let me recap the situation...In order to sell a programming book you need: Originality Solid Examples Reputation None of which you have. In a best case scenario, you'll write the book, get some third world publisher to sell the book and it'll end up in the bargain rack of MicroCenter. Good Luck.
-
Why would the cursor jump to the end? The only thing I can take think is that when you populate the textboxes, focus is given to that textbox and then back to the textarea when the user starts typing. Instead of textboxes try using spans or divs to show the info.
-
I'm not sure what information asp.net saves in the header...but... 1. how about splitting up the questions into different pages? 2. shutting off viewstate? what kind of controls are you using? how about using just client side controls?
-
Forum Is ALWAYS messed Up!!!!!!!!!!!!!!!
Diesel replied to kurf's topic in Suggestions, Bugs, and Comments
just put the code windows in a div with overflow and a fixed width. -
I really need help here... You are my only hope. :(
Diesel replied to EFileTahi-A's topic in General
this might help..haven't looked at it http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp -
Your teacher is a moron, like most. The hault in performance comes from throwing errors. http://72.14.203.104/search?q=cache:yfQlWIpJtlcJ:www.codeproject.com/dotnet/ExceptionPerformance.asp+.net+throw+error+performance&hl=en&gl=us&ct=clnk&cd=1 http://blogs.msdn.com/kcwalina/archive/2005/03/16/396787.aspx Exceptions are a beautiful thing. They allow programmers to cover their asses.
-
What about going back causes the app to fail? Is it that the fields are empty? Saving viewstate would solve this. Also, put some validation on each form. Is it a database constraint? Such as creating a record with same primary key. In that case, using a sequence field as the primary key would work. If you really don't want the user to travel backwards, you can consolidate all of the pages into one, with one form, and use div's to hide and show each step.
-
How to: Use similiar Php $_POST[''] array functionality in ASP.NET.
Diesel replied to jorgebucaran's topic in ASP.NET
just create html elements with the data you want... <form id="form1" name="form1" method="post" action="this.aspx" style="display:none"> <input type="hidden" id="data1" name="data1" /> <input type="hidden" id="data2" name="data2" /> </form> document.getElementById("form1").submit(); you can create dynamic elements also... var data3 = document.createElement("input"); data3.type = "hidden"; data3.value = "something"; document.getElementById("form1").appendChild(data3); -
Ajax rings a bell.