5,277 Posted Topics

Member Avatar for HunainHafeez

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, …

Member Avatar for HunainHafeez
1
184
Member Avatar for kodingkarthik

@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 …

Member Avatar for ILA RANI
0
3K
Member Avatar for Prathibha K G

What difficulty are you having? All you did was post code without an explanation of the problem.

Member Avatar for mchourishi
0
108
Member Avatar for rubai

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.

Member Avatar for jafrain_jaff
0
208
Member Avatar for JorgeM

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 …

Member Avatar for JorgeM
0
296
Member Avatar for HunainHafeez

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

Member Avatar for HunainHafeez
0
494
Member Avatar for tqmd1

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.

Member Avatar for JorgeM
0
317
Member Avatar for HunainHafeez

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 …

Member Avatar for HunainHafeez
0
234
Member Avatar for Aiden_1

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. …

Member Avatar for Rik_
0
216
Member Avatar for tqmd1

Try this conditional statement... ![fac8bed50b118e2559d37c251529686e](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2ZhYzhiZWQ1MGIxMThlMjU1OWQzN2MyNTE1Mjk2ODZlLlBORw%3D%3D/500 "fac8bed50b118e2559d37c251529686e") 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.

Member Avatar for JorgeM
0
495
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
6K
Member Avatar for mmcdonald

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

Member Avatar for mmcdonald
0
127
Member Avatar for venkaaaaat

Because of the spans between the words, you will need to use quotes. Try cd "program files"

Member Avatar for venkaaaaat
0
194
Member Avatar for gahhon

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") %>" />

Member Avatar for |-|x
0
176
Member Avatar for prabir.majumder.9256

such as what? you didnt finish your thought. what kind of information or guidance are you looking for with regard to Web Development?

Member Avatar for diafol
0
45
Member Avatar for PulsarScript

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 }

Member Avatar for JorgeM
0
128
Member Avatar for HunainHafeez

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 …

Member Avatar for HunainHafeez
0
170
Member Avatar for riahc3

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.

Member Avatar for mazmoiz
0
192
Member Avatar for kavitha N

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 …

Member Avatar for JorgeM
0
411
Member Avatar for Kelly Burby
Member Avatar for suavedesign

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.

Member Avatar for suavedesign
0
261
Member Avatar for mmcdonald
Member Avatar for davidjennings

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 …

Member Avatar for davidjennings
0
313
Member Avatar for Dani
Member Avatar for David_26
Member Avatar for anda_1
Member Avatar for gahhon
Member Avatar for Knowsum
Member Avatar for Knowsum
0
135
Member Avatar for MidiMagic

>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 …

Member Avatar for Areyankscruel
0
236
Member Avatar for leroy green
Member Avatar for alek.mieczkowski

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 …

Member Avatar for JorgeM
0
146
Member Avatar for MasterHacker110

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 …

Member Avatar for MasterHacker110
0
265
Member Avatar for tqmd1

Your format problem is because you misspelled the selector in your style block... .foramt { ... } Should be "format"

Member Avatar for AARTI SHRIVAS
0
92
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
285
Member Avatar for HunainHafeez

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 …

Member Avatar for HunainHafeez
0
375
Member Avatar for gahhon

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 …

Member Avatar for JorgeM
0
154
Member Avatar for castajiz_2

>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... > …

Member Avatar for JorgeM
0
136
Member Avatar for mherz

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" …

Member Avatar for gahhon
0
210
Member Avatar for MasterHacker110

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'); } }

Member Avatar for JorgeM
0
253
Member Avatar for rozer.martin.79
Member Avatar for Kleon

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(); …

Member Avatar for Kleon
0
486
Member Avatar for allifields

>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 …

Member Avatar for JorgeM
0
219
Member Avatar for rammy.sagar
Member Avatar for gahhon
Member Avatar for gahhon
0
325
Member Avatar for Learner010

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?

Member Avatar for Learner010
0
218
Member Avatar for shashidhargm

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)

Member Avatar for JorgeM
0
175
Member Avatar for kyle937

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 …

Member Avatar for profmuluka
0
570
Member Avatar for HunainHafeez

>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, …

Member Avatar for JorgeM
0
172
Member Avatar for HunainHafeez

> 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 …

Member Avatar for JorgeM
0
135
Member Avatar for Fiorentino01^

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 …

Member Avatar for Fiorentino01^
0
282

The End.