|
In general the communication can be summarised as follows. The upper teir (UI on top, then Business, then Data on the bottom) can call into the teir below. If the lower teir below needs to communicate upwards then use events so that the coupling between layers is reduced. i.e. the lower teir exposes a number of events which it fires and the upper teir subscribes to those events. For a good example look at the way events are used in the UI layer so that Microsoft don't need to know anything about your code in order for their UI code to invoke your methods.
Daniel Fowler wrote:
I don't want to rely on exceptions as it slows down execution
What is an exception for? It is for when something exceptional happens. If you expect that the database isn't going to be there then you should test for that in advance. If a missing database is really a very rare and totally exceptional thing to happen then you should use exceptions. Don't use the tired argument that exceptions are slow to avoid them. Yes, exceptions are slow - but then the circumstances in which they are thrown are exceptional and should not happen often. If your code is throwning many exceptions a second then I would say that your code is wrong. If it throws an exception only occasionally then it sounds as if it is going great (assuming that you are catching and handling the exception).
Daniel Fowler wrote:
In the past I've created a class that holds the information from the query to the DB, which has an error object, which will tell you if the operation was succesfull.
And how did the database communicate a failure? Most likely it threw an exception. In which case just let up bubble up to where it can be handled most efficiently.
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
Hi Colin
Thanks for the input, much appreaciated.
Dan F
|
|
|
|
|
I have a problem with sizing tables on a web page. I need to make the table height = 100% so that the bottom row always appears on the bottom edge of the page. However, if I use the attribute is ignored.
If I use it renders correctly both in IE and firefox. But according to the w3.org validator this is not valid HTML (there is no attribute "HEIGHT").
|
|
|
|
|
|
Ah, finally figured it out. The problem in with standards complient mode the page doesn't fill 100% of the window, so you need to do this in the style sheet:
body {
height:100%;
}
html{
height:100%;
}
|
|
|
|
|
hai
I draw the curve and line using vml & javascript and implemented in IE 6.0.
In my program I have a textbox and command button.suppose I want to draw a curve,write "curve" in textbox and javascript draws a curve using vmltags.
first I gave the input in textbox "curve",the figure appeared.then second I gave "line",but in this time,the line appeared with the curve.I need
line only.problem is refreshing...I don't know how to refresh?
help me
|
|
|
|
|
Ganesh:
I would have to see your code to figure out how to do what you want, but it doesn't sound like a huge problem. You can post the code here (in this thread) or email to me if you like.
--Retired Alchemist
|
|
|
|
|
Hello,
Can anyone give me some ideas on doing a web service project. It is for my degree and l have no idea of what to do. If anyone can give me some interesting ideas on what type of web service to build l will be very grateful.
Thanks in advance,
Steve
|
|
|
|
|
I have been asked to make a webpage (that is running fine on IE and Mozilla) to run on Safari. Is it a problem with the code? what should I change or add on my code to make the webpage run on any browser?
the page runs fine on various browsers such as IE or Mozilla but not on Safari. What is the problem and how can I solve it?
Please any help would be appreciated.
Thanks
McBel
|
|
|
|
|
The problem is that Safari is crapola. The issue will be with it treating specific HTML tags differently. Do a google for what tags are treated differently by Safari, then find where you use them, and either change to something else, or detect Safari and have a seperate Safari rendering layer.
Yuck, yuck, yuck.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
HI, is anyone get a class to handle a encoded URL . When I get a encoded URL I don't know how to decode it , and if that URL is a local full part , I need to get the some info.
I 'm so lazzzzzy to write a class . If some one already got it , please send it to me. lnmtuan@yahoo.com.
|
|
|
|
|
|
I 'm so lazzzzzy to write a class ?????
|
|
|
|
|
Active Server Pages error 'ASP 0223'
TypeLib Not Found
METADATA tag contains a Type Library specification that does not match any Registry entry
amalan simon
|
|
|
|
|
|
Thanx alot and its really helps alot...
amalan simon
|
|
|
|
|
hai
i don't know how to draw a curve with axis in javascript?
help me.
thanx
|
|
|
|
|
I'm not sure what you mean by "draw a curve with axis", but it sounds like you want to do some graphing/charting/plotting on a web page.
If you need to do this only in Internet Explorer, VML (vector markup language) might be the simplest way to implement graphing. There are also some obscure javascript methods by various web developers that might do the job (though I don't recall at the moment where I saw them--and Googling on this subject brings up too many links).
Could you describe your need in more detail?
--Assistant_Alchemist
|
|
|
|
|
hai
I want to implement in Internet Explorer.
actually my task is get the input from textbox,input is string,it may be slightly increase or slightly decrease .Draw a curve according to the input and implement in IE.
help me to draw a curve using vml or javascript in IE 6.0
thanx
|
|
|
|
|
Ganesh:
I would be glad to help, with the understanding that I am by no means expert in either Javascript or vml. However, I have implemented several scientific graphic projects using vml and may be able to point you in the right direction.
To get a basic understanding of vml, check out the following links:
http://msdn.microsoft.com/workshop/author/vml/default.asp
http://www.w3.org/TR/NOTE-VML
http://www.steema.com/downloads/dwn_tch_office.html
About 1998 (I think) Microsoft and others submitted vml to the W3 crowd in an attempt to obtain recognition of their markup language as a web standard. However, Adobe and others also submitted a similar language to W3 at about the same time. W3 accepted neither, instead deciding to merge ideas from both and come up with yet another graphics language, SVG or scaleable vector graphics. SVG is now a web standard.
Microsoft's motive was this: they already had planned to bring out vml anyway as a means of exporting web graphics in Office 2000. If you check out one of the programs in the Office suite, say Excel, you will see the vml code when you export to html. The Microsoft output is, however, a mess: too verb verbose and opaque for understanding vml coding. You will obtain much simpler code from using Tchart Office (third link above, Steema software). This program is a free download.
Try out the Tchart program, adjusting the chart dimensions and other parameters with data you may already have. Export the graph to VML and examine the resulting code. This may be sufficient to get you started, if you already know html and javascript, and have read a bit from the first two links above.
If not, let me know. I am willing to post some code that may help you implement your project.
--Retired Alchemist
|
|
|
|
|
Ha! Pardon me if I reply to my own post. I just noticed that our own Simon Stewart has an article on VML:
http://www.codeproject.com/html/vml101.asp
|
|
|
|
|
Hi
I am using html server controls with vb.net.
I used sqlDataAdapter and Dataset to connect to tables.
I am using sqlCommand to insert records in to database.
If there is a better way to insert or update custom fields please tell me.
Error: System.FormatException: Input string was not in a correct format
Error Code:
If Not Text4.Value.Empty Then SqlInsertCommand1.Parameters("@Date_Reg_RI").Value = Text4.Value
Date_Reg_RI is a dateTime field in Database sql server2000 and i want to keep it blank.
Any quick help is welcome.
Regards
Varun
|
|
|
|
|
|
Datetime doesn't except null values (that is usually how it is set up), so if you want to insert a blank value I believe you can just insert "' '".
Let me know if it works.
Scott Stocker
|
|
|
|
|
Hi
I am using html server controls with vb.net.
I used sqlDataAdapter and Dataset to connect to tables.
I am using sqlCommand to insert records in to database.
If there is a better way to insert or update custom fields please tell me.
Error: System.FormatException: Input string was not in a correct format
Error Code:
If Not Text4.Value.Empty Then SqlInsertCommand1.Parameters("@Date_Reg_RI").Value = Text4.Value
Date_Reg_RI is a dateTime field in Database sql server2000 and i want to keep it blank.
Any quick help is welcome.
Regards
Varun
|
|
|
|