ericstenson 5 Posting Whiz in Training Team Colleague

Until they get rid of Val, I am sticking with that :-)

ericstenson 5 Posting Whiz in Training Team Colleague

To send through GMAIL, there are a few things you need to do to make it work with .NET.

(1) Enable POP and/or IMAP in the GMAIL settings
(2) Enable SSL & use Port 587

Dim ObjectMail As New SmtpClient("smtp.gmail.com", 587)
ObjectMail.EnableSsl = True

Good luck,

Eric

ericstenson 5 Posting Whiz in Training Team Colleague

you need to do it like this:

label1.text = val(textbox1.text) - val(textbox2.text)

ericstenson 5 Posting Whiz in Training Team Colleague

Use system.net.mail.

There are lots of examples out there. If you are still having trouble, holler back and I will post.

ericstenson 5 Posting Whiz in Training Team Colleague

hi- are you saying like if something happens on 1 computer that causes button1 to go from green to red on the other 4 computers you want the button to go from green to red?

i would suggest creating a record in the database that has the button color for each of the buttons. then have a timer that gets that value ever 10 seconds or so. whatever event causes the button to change colors, update the record in the database. then when the computers read the button color from the db.. all will update accordingly.

does this make sense?
time control + database = solution

ericstenson 5 Posting Whiz in Training Team Colleague

because you haven't done something right

ericstenson 5 Posting Whiz in Training Team Colleague

i would agree with the above, give them a commandname and handle that on pb.

ericstenson 5 Posting Whiz in Training Team Colleague

Google has a translation tool.

ericstenson 5 Posting Whiz in Training Team Colleague

just create a db login.

ericstenson 5 Posting Whiz in Training Team Colleague

User server.transfer("~/webform2.apsx")

ericstenson 5 Posting Whiz in Training Team Colleague

ok, so you open your dataset
and you fill it
myda.fill(myDataSet)
con.close

good

now bind the data to the datagrid

dgvbook.datasource = mydataset
dgvbook.databind

i think you are missing the databind event.

ericstenson 5 Posting Whiz in Training Team Colleague

If it is always 10 digits, it's easy.

One way to do it would be to remove every other digit, then you end up with

Dim String1 as String = 1234567891
String1 = 0 & String1.Substring(1,1) & "0" & string1.substring(3,1) & "0" & string1.substring(5,1) ....
... that gives you the idea.

ericstenson 5 Posting Whiz in Training Team Colleague

sorry, as DECIMAL, not Long...

and Button1.Text = FormatCurrency(TCost)

ericstenson 5 Posting Whiz in Training Team Colleague

i would do it like....

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


        Dim THours As Integer = DateTimePicker2.Value.Hour - DateTimePicker1.Value.Hour
        Dim TMinutes As Integer = DateTimePicker2.Value.Minute - DateTimePicker1.Value.Minute

        Dim TCost As Long


        If TMinutes >= 0 Then

            TCost = (3 * THours) + (3 * (TMinutes / 60))

        Else

            TMinutes = (-1) * TMinutes
            TCost = (3 * THours) - (3 * (TMinutes / 60))


        End If



        Button1.Text = TCost
ericstenson 5 Posting Whiz in Training Team Colleague

Hi- If you wanted to do client side validation, you will need to do AJAX/Javascript. If you want to validate server-side isnumeric(textbox1.text).

Go to asp.net for help doing client side validation with ajax. I think Microsoft has some tools for it.

ericstenson 5 Posting Whiz in Training Team Colleague

What's that... ie is your favorite browser because it is just plainly better than firefox, no matter what extension is installed? ... i know, you don't need to state the obvious, because firefox is like the "macintosh" of browsers. there is a reason why the world in on ie.

ericstenson 5 Posting Whiz in Training Team Colleague

(that is, answer that people would give)

ericstenson 5 Posting Whiz in Training Team Colleague

You are on an ASP.NET Forum. I think there is a "more than obvious" answer to your question...

But here is my question: WHY DO YOU FEEL THE NEED TO ASK?!

Do whatever you want. Who give a #$@@^**#$#$^ what we say. If ask the guy that sits next to me, he would say PHP.

In other words, it's a question that doesn't really have an answer. Don't mark this as solved, as the question is rhetorical in nature.

ericstenson 5 Posting Whiz in Training Team Colleague

Personally, I like to load my results into a table, then from the table do whatever (for instance, add a list item.)

I don't know if it's faster or better, but my stuff always runs pretty quick!

Also, it could just be your SQL server....

ericstenson 5 Posting Whiz in Training Team Colleague

Come on, man. Search DW for writing data to a database. There are a variety of factors that determine how your code looks.

ericstenson 5 Posting Whiz in Training Team Colleague

Screen width will require client side calls, I think. I haven't done it, but that is my understanding. I think VS2008 adds some features, like the tables in it are a % of the client browser, rather than a fixed width.

If you are just looking to center your page, I have found the easiest way is to drop a table on the page, use the style to center the table, and it's finished.

ericstenson 5 Posting Whiz in Training Team Colleague

Take a class. You probably won't learn by reading unless you already understand programming, it won't make sense.

ericstenson 5 Posting Whiz in Training Team Colleague

Then create a new website.

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - I am not sure if this is the right place, but does anyone have any favorite .NET controls or add-ins that they find helpful for web design? Just curious what people are using.

ericstenson 5 Posting Whiz in Training Team Colleague

oh, man, it's not where it's going, it's where it has gone...

ericstenson 5 Posting Whiz in Training Team Colleague

do you have a machine named website1? probably not. what do you expect it to say?

are you trying to create a new website or open a website?

ericstenson 5 Posting Whiz in Training Team Colleague

i don't even understand your question. please claify what you want to do.

ericstenson 5 Posting Whiz in Training Team Colleague

(select * from table1 where abc = '" & label1.text & "'"

or you can use "select * from table1 where abc = @abc"
and add the param @abc, label1.text

ericstenson 5 Posting Whiz in Training Team Colleague

change your query!

ericstenson 5 Posting Whiz in Training Team Colleague

It's not hard to do, but if you can't do it, you don't know the first thing about programming. It's not possible to explain over this form in an easy way that you could understand. I recommend Microsoft Excel for your project.

ericstenson 5 Posting Whiz in Training Team Colleague

easiest way to do it is put everything in a table and center the table to the page (page style property -- text:center)

ericstenson 5 Posting Whiz in Training Team Colleague

Something is returning a returning noting as a value.... try running it on the VS test server and see where it breaks, look at the data within the string... you will see it is "" (null). you may need to change the .text to .text.tostring

ericstenson 5 Posting Whiz in Training Team Colleague

Thanks, can you mark as solved and give me some reputation points?

ericstenson 5 Posting Whiz in Training Team Colleague

no, you turn the image into an imagebutton. it isn't complicated, crude or difficult

ericstenson 5 Posting Whiz in Training Team Colleague

Yes, I ended up changing the code so that when I was finished with the variable I reset it to D1 = ""

It was really strange, though. I can't figure it out. I am thinking maybe an IIS error?

ericstenson 5 Posting Whiz in Training Team Colleague

Your trouble is not trouble accessing the database, it seems that is working just fine.

See MSDN

http://209.85.165.104/search?q=cache:kcFAeliQuDoJ:msdn2.microsoft.com/en-us/library/zh9a9y6s(VS.80).aspx+executereader+and+rows&hl=en&ct=clnk&cd=3&gl=us

ericstenson 5 Posting Whiz in Training Team Colleague

How many users? Most people would say retrieve all at once, BUT I bet it doesn't matter. Write a loop and see how quickly your SQL server can write 500,000 records. You will be shocked. A few commands isn't "taxing" like people claim.

ericstenson 5 Posting Whiz in Training Team Colleague

Hi - At the top of my page, let's say I declare a variable by

Shared D1 as String

Then in different functions/routines throughout the page I write and read the value of the string.

This works just fine.

The problem is, let's say the user closes the browser and another users signs in from a different computer, some amount of time later... it seems the "D1" hasn't cleared it's value!

Why is this happening?

ericstenson 5 Posting Whiz in Training Team Colleague

sBIG.contains("WHATEVERYOUWANTTOFIND")

so like:

if SBIG.contains("#") then

label1.text = "Hello World"

end if

BluePaper commented: Useful snippet of information :) +1
ericstenson 5 Posting Whiz in Training Team Colleague

If you homepage is simply a jped, create an image button and set the image url as your jpg. you can also use an image map and map different regions to different pages.

ericstenson 5 Posting Whiz in Training Team Colleague

Easier is just to drop an e-mail to phonenumber@vtext.com. That will e-mail Verizon

ericstenson 5 Posting Whiz in Training Team Colleague

Is there a difference in handling between Session.Add("SOMETHING","somevalue") and Context.Items.Add("SOMETHING","somevalue")?

ericstenson 5 Posting Whiz in Training Team Colleague

Come on, man. Anyone can set-up an equation that can't be fairly evaluated.

Let's work with your 2 database example above. If you give me the right data, I CAN tell you which database I would rather have... so tell me...

How many transactions per second could Database #2 handle if it only had 1000000 records?

How many transactiosn per second could Database #1 handle if it had 10000000000 records?

If you can answer these questions, one could determine the better database for their needs.

SO, WE CAN CONCLUDE, TRANSACTIONS PER SECOND IS A FAIR FACTOR... WHEN WE HAVE A COMPARISON THAT MAKES SENSE. LOOK AT HOW PEOPLE BENCHMARK DB ENGINES.

ericstenson 5 Posting Whiz in Training Team Colleague

I work at a web development firm in Boston. All the designers and programmers around me are Firefox users. The firm I am at does a lot of "big" client projects. Anyway, one of the partners put a sign on the desk of the guy that sits next to me with an IE6 logo speaking "Please don't forget about me or the millions of people that use me."

We test our sites EXTENSIVELY in IE6, FireFox, IE7. The partners are ALWAYS bothering us about testing in alternate browsers. I big into Microsoft, so they are always joking with me: "When did you last test in Firefox? Does it work in Firefox?"

In short, you NEED to test in IE6!!!!!

ericstenson 5 Posting Whiz in Training Team Colleague

You are all a bunch of ---------. Internet Explorer rules!!!!!! Microsoft is the best.

ericstenson 5 Posting Whiz in Training Team Colleague

Why don't you use like FTP or something?

ericstenson 5 Posting Whiz in Training Team Colleague

C# and vb.net are the same for all intensive purposes. It's really about formatting... easy to convert from one language to another.

ericstenson 5 Posting Whiz in Training Team Colleague

drop out of school

ericstenson 5 Posting Whiz in Training Team Colleague

It can be one of a couple of things that's causing the problem. What is the IP set to on IIS for "Website Identification" and Host Header? Make sure it is all unassigned.

Is your machine running a firewall? (Maybe even Windows Firewall, for XP for instance -- or McAffee or Symantec.) If so, you need to open port 80.

ericstenson 5 Posting Whiz in Training Team Colleague

Or, you can write a program to navigate the carrier's website and send an sms. i wrote this for Verizon if anyone wants it.