5,277 Posted Topics
Re: Stored procedures and functions seem to be similar and they can be but they are generally used for different reasons. purposes. You can use user defined functions to process input and return output, very similar to a typical program. Stored procedures are created when you need more processing. Updating records, … | |
Re: @charlesvijay - hello and welcome...it appears that you are a new member. One thing to point is that you may want to consider starting your own thread when you have a question rather than hijaking someone else's thread. It can get confusing for others that arrive at this thread to … | |
Re: What difficulty are you having? All you did was post code without an explanation of the problem. | |
Re: As long as you comply with Google's terms and conditions you won't be banned. You can find that information and links in your Adsense account management page. | |
I seem to be having an issue pasting code in my responses. This has happened to me in the past, but I think i'm able to reproduce the issue now. When I try to submit the post, it just hangs... Here is a thread where I tried, but was unable … | |
Re: Your return @default is not within your if..else block so it always executes. You can use begin..end if needed in your else block. if (@decission = 1) BEGIN --some code END ELSE BEGIN --some code END | |
Re: Looks like the issue is that you are trying to sum the values after the formatting change. You may need to change the logic a bit to store the values and maintain a running total, then use that total, format it and display it in the third input box. | |
Re: Do you have any certification's at this moment? For example since you metioned asp.net/c#, Microsoft has a certification program for developers: [MCSD: Web Applications Solutions Developer](http://www.microsoft.com/learning/en-us/mcsd-web-apps-certification.aspx) All of these certifications (microsoft and others) are not as valuable (in my opinion) as they were back around the years 1999-2005 when everyone … | |
Re: Are you sure its not an overheating problem? you mention that the fan is inconsistent...maybe it stays powered on because during that time, the fan is working, but then other times, it stops, then overheats and when you try to start it up again, it doesnt stay powered very long. … | |
Re: Try this conditional statement...  Also, change the event from onkeypress to onkeyup. `onkeyup="return isNumberKey(event)";` sorry for the screen pic instead of the text code, this editor would not allow me to paste the code. | |
Re: Rather than trying to mimic the click of a button, why not load the function using window.onload? The following example executes the foo fuction when the onload event is triggerd. <script> function foo() { document.write("Hello World"); } window.onload=function() { foo() }; </script> You can resuse the same foo function to … | |
Re: Styling is not really an option (no punn intended) for the option element. Except for background-color and color I beleive..., style settings applied for the option element are ignored. Similar discussion recently.. http://www.daniweb.com/web-development/web-design-html-and-css/threads/464295/how-to-define-the-font-for-selected-option-in-dropdown | |
Re: Because of the spans between the words, you will need to use quotes. Try cd "program files" | |
Re: I'm thinking based on your description that you should use OnCommand instead of Onclick. With OnCommand use CommandName so you can retreive the category name so you can complete the processing. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.oncommand.aspx <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="Button" OnComand="Remove" CommandName="<% Eval("Category") %>" /> | |
Re: such as what? you didnt finish your thought. what kind of information or guidance are you looking for with regard to Web Development? ![]() | |
Re: You aren't required to use the label element. That's up to you. If you want to apply a color to the text, you can using CSS. For example, in your style sheet... label { color: red } | |
Re: Say you created a class called abc.cs and you have a static method within that class called method1(). This method1() returns a boolean value. So in your code behind from within your project, you call it this way.. bool result = abc.method1(param); In this example, you are sending the method … | |
Re: You could always set up an internal Certificate server on your network to issue internal certificates for testing. Also, if you are running the website on IIS 7.5, that version supports IIS creating self-signed certificates that is very useful for testing/validation purposes. | |
Re: To expand on minitauros' example, i think a bit more logic is needed. Rather than just showing the value that was selected, for a "voting" type function, you need to maintain a record of each option that is selected as well as total selections so that you can keep a … | |
Re: It does seem to be flowing around the hand at this moment. The image itself is a rectagle so you'd have to break the text into multiple elements and position them as best as you can to mimic flowing around a non-rectangle object. | |
Re: Yes, SQL does allow you to perform these types of caculations in the query, assuming the data types you have in your table. So you can easily test this in SQL even without running the query against a table. ` select 2 * 5.25 as [total]` This query produces a … | |
Re: Please clarify what your objective is... | |
Re: Is this only one site you visit? Sounds like they have a bug in their javascript code. | |
Re: >I find it amazing how this is the only forum that allows users to disable ads. Dani had explained the reason why on another thread.. I cant seem to find it at the moment but it had to do with increasing the percentage of views vs clicks. For example, if … | |
Re: Looks like you are running this from Visual Studio (website and browser)? Once you host this web on a server and browse to it from a remote system, you'll be able to pull in the source computer's IP address. As Ketsuekiame indicates the ::1 you are seeing is because you … | |
Re: I see that you are developing in asp.net. I dont want to steer you in another direction if you are trying to do this client side, but you may consider handling the cookies server side? Also, setting your login hyperlink stuff will be easy as well. I'm only suggesting this … | |
Re: Your format problem is because you misspelled the selector in your style block... .foramt { ... } Should be "format" | |
Re: What's the error or problem? Seems like its working, but I did have to change the months for the isXmas var. Looks like you had copied/pasted isHalloween. Update the months to 10 and 11. you have 9 and 10 for Xmas at the moment. After fixing that, I tested your … | |
Re: Connection pooling is a good thing. Before discussing connection pooling, think about what it takes for a web server to make a connection to a database server. If you know a bit about networking, you realize that there is overhead in creating the TCP connection, handshakes, etc.. Rather than opening … | |
Re: There are some errors that are generated prior to the asp.net engine getting involved in the process so you wont be able to handle them all using the web.config custom errors section. You can handle those types of errors by customizing the error pages that IIS manages. Are you trying … | |
Re: >The thing that s bothering me that i ve always "hated" microsoft and the proffesors and high school encouragde me to move to open source Are you sure about this..sounds like you actually like C# very much, and you may have simply allowed yourself to be influenced by others... > … | |
Re: I'd suggest you do this client side, but if you want to handle this server-side... ## aspx ## <form id="form1" runat="server"> <div> <asp:CheckBoxList runat="server" ID="chkitems" Font-Names="Tahoma" Font-Size="Smaller" RepeatColumns="3" RepeatDirection="Horizontal"> <asp:ListItem Value="1">Item 1</asp:ListItem> <asp:ListItem Value="2">Item 2</asp:ListItem> <asp:ListItem Value="3">Item 3</asp:ListItem> <asp:ListItem Value="4">Item 4</asp:ListItem> <asp:ListItem Value="5">Item 5</asp:ListItem> </asp:CheckBoxList> <asp:Button Text="Select Items" runat="server" ID="cmdSelectedItems" … | |
Re: So yes, minitauros is correct. you can use that approach. Your code would look something like this.. function changeLoginMenuText() { if (isLogedIn == false) { document.getElementById("loginstate").innerHTML = "Create Account"; document.getElementById('loginstate').setAttribute('href', 'login.html'); } else if (isLogedIn == false) { document.getElementById("loginstate").innerHTML = "Logout"; document.getElementById('loginstate').setAttribute('href', 'logout.html'); } } | |
Re: To auto close the modal popup after 5 seconds, just add a function that will be used to hide it, and use the setTimeOut method. <script type='text/javascript'> $(function () { var overlay = $('<div id="overlay"></div>'); overlay.show(); overlay.appendTo(document.body); $('.popup').show(); $('.close').click(function () { $('.popup').hide(); overlay.appendTo(document.body).remove(); return false; }); $('.x').click(function () { $('.popup').hide(); … | |
Re: >Why don't you use a free hosting like 000webhost.com. I would also agree based on your description that you may simply want to sign up for a free account with a provider. I've used 000webhost.com in the past. I've also used biz.nf. This will solve your issue with regards to … | |
Re: Can you elaborate some more regarding the process? Im not following exactly.. | |
Re: Hello Learner010, Can you elaborate some more on what you are trying to do? You mentioned word, so wouldnt you just be able to format the page however you wish? cut/paste, reformat? I dont think i'm understanding the issue correctly. Are you generating this file programmatically? | |
Re: You mentioned Google Blog.. you mean "Blogger" from Google? If so, take a look at Google's [Blogger Getting Started Guide](https://support.google.com/blogger/answer/1623800?hl=en) | |
Re: There are variety of ways to accomplish this, but a simple solution may include assinging a random background image to the page every time the page is loaded. This would involve storing the path of the images in a javascript array and generating a random number within the length of … | |
Re: >but advisors told me that it isn't a good practice to put catch always.. I'd agree with that statement if you are not able to handle the error correctly. In addition to handling the error, you need to consider how you will inform the user that there was an error, … | |
Re: > with same server name Both computers have the same name? That's not going to allow you to connect from one PC to another if you try by name. The source PC will know its name and therefore the name will resolve to itself. Can each PC have its own … | |
Re: The main purpose of these new elements is to provide the element itself with meaning (semantics). For example, prior to HTML5, if you wanted to create a navigation menu or footer, you would create divs as follows: `<div id="navmenu"></div>....<div id="footer"></div>` With HTML5, you can use newer elements so that user … |
The End.