ericstenson 5 Posting Whiz in Training Team Colleague

Come on, Pete... you are taking too narrow of a view!! What if you want to give cisco 7960 phones to 10 employees at an office and let them take calls? What if you want to keep a telephone (not data) T1 line in place?

ericstenson 5 Posting Whiz in Training Team Colleague

Ok, 2 questions...

First, is the error happening @ the insert or @ the select statement?

Second, when it crashes, can you paste what the value of SQLTxt is... like click on it and it should show you... Thanks.

ericstenson 5 Posting Whiz in Training Team Colleague

Microsoft has an SDK platform. Google SDK and Microsoft.POS

ericstenson 5 Posting Whiz in Training Team Colleague

Are you looking to use a receipt printer like they have at a store?

If so, use Microsoft.POS class. Google Microsoft POS SDK.

ericstenson 5 Posting Whiz in Training Team Colleague

Hi this works in IE6, IE7, but not in FireFox... any ideas?

(On PageLoad)

        ImageMap1.Attributes.Add("onMouseOver", ImageMap1.ClientID & ".src='images/addpatient1.jpg'; window.status='Mouse Over'; return true;")
        ImageMap1.Attributes.Add("onMouseOut", ImageMap1.ClientID & ".src='images/addpatient.jpg'; window.status=' '; return true;")

The rollover effect just doesn't happen in FF.... grrrrr.....

ericstenson 5 Posting Whiz in Training Team Colleague

I think you need Ordered Time in Brackets like this [Ordered Time]

If this solves the issue, please mark this thead as solved and give me some reputation points. Thanks!

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - There are a host of issues that can cause this, and there is no solution that can be provided here given the information provided.

1. Some hosting providers, such as GoDaddy, so not allow remote inbound our outbound database connections. Check with your hosting provider to see if there are any such policy restrictions.

2. If you are hosting the SQL database:
1. Is SQL Browser Running?
2. Do you have Windows Firewall (if applicable) turned OFF?
3. Is your machine firewalled? Are the right ports opened or is your machine in a DMZ?
4. Are you using a named instance?
5. Did you create an SQL user with appropriate access rights?


These are most of the things that you need to consider. Hopefully this helps some.

ericstenson 5 Posting Whiz in Training Team Colleague

Search and you shall find.

ericstenson 5 Posting Whiz in Training Team Colleague
Dim item1 As New ListItem
        item1.Text = "Hello"
        item1.Value = "Hi"

listbox1.Items.Insert(INDEX#, item1)

If this answers your question, please mark as solved and give me some reputation points! Thanks.

ericstenson 5 Posting Whiz in Training Team Colleague

r u kidding me?

anyway, recommend microsoft office outlook to your boss.

ericstenson 5 Posting Whiz in Training Team Colleague

In your connection string to the database add Pooling=False;

I caution you, however, there is something "seriously concerning" if you are exceeding 100 connections to your db at the same time. make sure you are closing out your connections! do you have background threads using the db????

ericstenson 5 Posting Whiz in Training Team Colleague

I would recommend not storing images into the database, but rather store the relative path of the image in the database. I think you will find this much better.

ericstenson 5 Posting Whiz in Training Team Colleague

Search this forum, you will see lots of discussion on this. There are 3 ways to do it, but check this out:

http://64.233.167.104/search?q=cache:PWfVFdOFWKwJ:www.developershome.com/sms/howToSendSMSFromPC.asp+GSM+modem+and+send+sms&hl=en&ct=clnk&cd=1&gl=us

ericstenson 5 Posting Whiz in Training Team Colleague

Also, I am pretty sure you need to get rid of the ' around @Photo...

ericstenson 5 Posting Whiz in Training Team Colleague

Ah, get rid of the ' around databaseimage

ericstenson 5 Posting Whiz in Training Team Colleague

Try the db forum.

ericstenson 5 Posting Whiz in Training Team Colleague

Hey- Make it easy on yourself and easier on your database. Store the imagepath instead.

ericstenson 5 Posting Whiz in Training Team Colleague

IF IT IS RELATED TO A TEXT BOX:

Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

If IsNumeric(TextBox1.text) = false then

try
textbox1.text = textbox1.text.substring(0, len(textbox1.text) - 1)
catch ex as exception

textbox1.text = ""

end try

end if

    End Sub

If you generally want to capture a keyboard event (entire form, anywhere), you first need to on formload set:

KeyPreview = True

Then you do something like:

Private Sub Key_Click(ByVal sender as Object, ByVal e as System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown

if isnumeric(e.keydata.tostring) = false then


end if

End Sub

If this helped you, mark it as solved and/or give me some reputation points.

ericstenson 5 Posting Whiz in Training Team Colleague

You need to use a panel control... put the content inside of it. There is a property called ScrollBars.

If this helps, mark it as solved and add it to my reputation.

ericstenson 5 Posting Whiz in Training Team Colleague

(stacktrace, too)

ericstenson 5 Posting Whiz in Training Team Colleague

Can you please provide the exact exception being thrown?

ericstenson 5 Posting Whiz in Training Team Colleague

Microsoft outlook.

ericstenson 5 Posting Whiz in Training Team Colleague

Where is the love? xoxoxoxoxox

ericstenson 5 Posting Whiz in Training Team Colleague

Yes, your problem is that you are over complicating the problem.

ericstenson 5 Posting Whiz in Training Team Colleague

This would be on the "SelectedIndexChange" event for the dropdownlist.

ericstenson 5 Posting Whiz in Training Team Colleague

You need AutoPostBack = True on the dropdownlist property so the dropdownlist tells the server the value has changed.

Create a function (or use this for both)

lblResult.text = Val(ddlProduct.text) * (1 + Val(ddlCompany.text))

that's the vb.net.    i am not a c# programmer, but the converter says:

lblResult.text == Conversion.Val(ddlProduct.text) * (1 + Conversion.Val(ddlCompany.text))

If this post helped you, please add it to my reputation and mark the thread as solved.

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - Check the spelling on your SQL database, this is probably the issue. An invalid column name means the column simply doesn't exist as stated.

Also, try a test. What happens when you run the query:

Select DatabaseImage from ImageTable

Best/Eric


P.S. If this helped, give me some points and marked as solved! :-)

ericstenson 5 Posting Whiz in Training Team Colleague

First, let's make sure we understand the parameters:

sqrt(aa + bb) <= 30 and a <=30 and b <=30

right?

so start by setting b to 1 and running a from 1 to N
exit the loop when the equation result is > 30
that will give you each of the values of the 1 side when the other side value is 1

now set b to 2 (bb=4) (increase of 1)
start a loop that runs while the result is <= 30
increase b to 3 (bb=9)
again, a will start @ 1

keep doing this until your b value reaches 29
because when b reaches 30 you will not have any valid a
because that will mean you will not have any valid a

make sure to record the valid values of a,b into an array
you could even display the valid values into a textbox

good luck,

eric

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - I haven't done it, but I think you would need to create a custom control for this. So you would create a control that onload gets the Screen.PrimaryScreen.Bounds (but it needs to be a user control, because otherwise it will return the server screen and that's no good!) and then you will need to pass that back to the server.

Anyone with any other ideas?

ericstenson 5 Posting Whiz in Training Team Colleague

Also, feel free to give me reputation points for this.

John A commented: Sure. By the way, reputation doesn't count in the Coffee House forums anymore, so either way this will have no effect on your reputation. -3
jbennet commented: same -6
Ancient Dragon commented: you didn't say what kind of rep you wanted :) -6
Nick Evan commented: "Gimme the red candy" Sure, no prob ;) +5
Jx_Man commented: This rep have no effect to you -2
ericstenson 5 Posting Whiz in Training Team Colleague

Hi- So after recently having some trouble getting some things on my VoIP box working, I was thinking that it was a real pain to find help online. Useful help, that is. And I am a master of the google search. So I was thinking.... why not create a VoIP Forum on DW?

Anyone else concur? Please post back if yes or no and your thoughts.

ericstenson 5 Posting Whiz in Training Team Colleague

try a response.redirect to the document. i should not ask.

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - Why not have the user validate the email on registration? I send the user an email with a random number that I generate. Store that number in the database and have them enter it to activate the account. You can also give a link to a blank page in the email and pass the number in the query string (which gets retrieved when they go to the page) and activate that way.

vinnitro commented: ur idea is good & i really liked it. It will help me doing my project. +2
ericstenson 5 Posting Whiz in Training Team Colleague

Why does it matter? And no.

ericstenson 5 Posting Whiz in Training Team Colleague

There is no easy answer to your question, but large websites of any scale are expensive. Smaller sites are inexpensive. Google asp.net hosting to get an idea of cost.

ericstenson 5 Posting Whiz in Training Team Colleague

OK, I generally understand what you are trying to do. Unfortunately, what you are looking to do is highly specific and cannot (to the best of my knowledge) be explained in the general sense.

I would suggest contacting the owner of the 2nd site and asing for an API or seeing if the external site has any sort of an API. For instance, Google, MapQuest and others have developed a set of tools to let developers develop custom solutions that use/integrate with their services.

ericstenson 5 Posting Whiz in Training Team Colleague

You need to set the AutoPostBack property for RadioButton1 to TRUE. Double click on it (VB will set you up with the sub that handles a change), write the code

RadioButton1.enabled = False

You will probably on pageload want to do a maintainscrollpositiononpostback = true

ericstenson 5 Posting Whiz in Training Team Colleague

There is a property called enabled, set it to false.

ericstenson 5 Posting Whiz in Training Team Colleague
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs) Handles GridView1.RowCommand

        If GridView1.Rows.Count - 1 > 0 Then

      

  If e.CommandName = "PDetails" Then

            Dim RecordID As String = GridView1.DataKeys(Convert.ToString(e.CommandArgument)).Item(0).ToString

Session.Add("RecordID",RecordID)
       
         Response.Write("<script>")
                Response.Write("window.open(YOURPOPUPPAGE.aspx','_blank','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')")
                Response.Write("</script>")

end if

end if

end sub
ericstenson 5 Posting Whiz in Training Team Colleague

Hi... I would suggest passing the CompanyID in Session -- Session.Add("CompanyID") -- and retrieving the companyid -- Session.Item("ComanyID") from the popup.

Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs) Handles GridView1.RowCommand

        If GridView1.Rows.Count - 1 > 0 Then

            If e.CommandName = "WHATEVERYOURBUTTONCOMMANDNAME" Then

 Dim CompanyID As String = GridView1.DataKeys(Convert.ToString(e.CommandArgument)).Item(0).ToString

Session.Add("CompanyID", CompanyID)

               Response.Write("<script>")
                Response.Write("window.open(YOURDETAILSWINDOW.aspx','_blank','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')")
                Response.Write("</script>")

end if

end if
ericstenson 5 Posting Whiz in Training Team Colleague

Please be more specific. Are you looking just to read the HTML of another website?

ericstenson 5 Posting Whiz in Training Team Colleague

In your database, create a photoID column to identify to which photo the comment belongs.

ericstenson 5 Posting Whiz in Training Team Colleague

Google ASP.NET and Graph and component.

There is some good stuff on the market that will let you do what you want.

In terms of built-in functionality, not much.

ericstenson 5 Posting Whiz in Training Team Colleague

Your update comand, in a simple form is

Update tblUser set Lastname = ABCDEFG

How do you expect SQL to know what Lastname you want to update?

You need to qualify it

Update tblUser set Lastname = ABCDEFG WHERE USERID = 1234

that will only update the single record.

Also you are better using a querystring like:

Update tblUser set Lastname = @LastName where UserID = @UserID
dc.parameters.addwithvalue("@LastName", textbox1.text)
dc.parameters.addwithvalue("@UserID",1234)
conn1.open
dc.execute...
conn1.close
ericstenson 5 Posting Whiz in Training Team Colleague

Ask Al Gore, he invented it.

peter_budo commented: You just scored bonus ;) +7
ericstenson 5 Posting Whiz in Training Team Colleague

Also, try posting this under databases as well.

ericstenson 5 Posting Whiz in Training Team Colleague

Password length probably hasn't changed, I think SQL just standardizes how it displays the ******* so people can't tell how long it realy is. Password (and correct me if I am wrong), I do not think is kept by SQL as plain text.

With respect to the log-in, check the DB & Server properties. Make sure "deny" isn't checked anywhere, and make sure you have both access to the server and DB.

Best,
Eric

majestic0110 commented: A valuable and helpful poster, good work! +2
ericstenson 5 Posting Whiz in Training Team Colleague

Hi- I see this is your first post. When posting on DaniWeb, it is important to first search and see if your question has been answered. With a basic question like this, chances are much has been written about it. Spend a couple of minutes and conduct a search, I am 100% positive you will find the answer to your question.

Good luck... and if you do have questions that are unanswered, please do post them!

ericstenson 5 Posting Whiz in Training Team Colleague

Hi- This is supported, your user just needs to know how to use the control!

Ok, obviously with a non-postback, you can just click down.
With a auto post back, of course, if you click down it firest the control and reloads every time you go down one. So to prevent that what the user has to do is first press ALT + Down Arrow at the same time. Then the user can select whatever state.

Best,
Eric

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - This is really annoying. For some reason, the Find & Replace window no longer displays in VS2005. It seems to be locked in the toolbar.

Any ideas on how to get the window back?!

Thanks,
Eric