200 Posted Topics

Member Avatar for sapamtiken

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

Member Avatar for sapamtiken
0
203
Member Avatar for justapimp

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 …

Member Avatar for justapimp
0
105
Member Avatar for miss.A

i would do it like.... [code] 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 …

Member Avatar for miss.A
0
155
Member Avatar for pikkas

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.

Member Avatar for ericstenson
0
100
Member Avatar for yassar

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 …

Member Avatar for Fungus1487
0
145
Member Avatar for Jaganathan

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

Member Avatar for Jx_Man
0
56
Member Avatar for Elmo_loves_you

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

Member Avatar for ericstenson
0
91
Member Avatar for manikkraj

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

Member Avatar for ericstenson
0
59
Member Avatar for sapamtiken

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

Member Avatar for ericstenson
0
148
Member Avatar for sandip250382

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?

Member Avatar for ericstenson
0
78
Member Avatar for ericstenson

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.

0
75
Member Avatar for Rums

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

Member Avatar for ericstenson
0
126
Member Avatar for jessc0108
Member Avatar for firebirds98

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

Member Avatar for harivb
0
156
Member Avatar for ABDUL HAYEE

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.

Member Avatar for plazmo
0
149
Member Avatar for farifari

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.

Member Avatar for ericstenson
0
64
Member Avatar for Fungus1487

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.

Member Avatar for Fungus1487
0
103
Member Avatar for ericstenson

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 …

Member Avatar for ericstenson
0
87
Member Avatar for pete08

Your trouble is not trouble accessing the database, it seems that is working just fine. See MSDN [url]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[/url]

Member Avatar for ericstenson
0
78
Member Avatar for ericstenson

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

Member Avatar for munr
0
222
Member Avatar for ericstenson

Hi- Here is my question. People, where I work, friends of mine, other programmers, etc. are always talking about "best practices" in application design. Specifically, people are taught/told to minimize the number of SQL queries sent. Now, here is the thing, I am personally under the impression that it doesn't …

Member Avatar for ericstenson
0
105
Member Avatar for Cibermarci
Member Avatar for osheena_ami
Member Avatar for jkdil33

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 …

Member Avatar for ericstenson
0
111
Member Avatar for chams_143
Member Avatar for hwa

build a string dim MyDate as string = "1/1/2008" Dim MyTime as string = dropdownlist1.selectedvalue & ":" & dropdownlist2.selectedvalue & ":" & dropdownlist3.selectedvalue & " " & dropdownlist4.selectedvalue (AM/PM) MyDate = MyDate & " " & MyTime Now insert MyDate into the db.

Member Avatar for hwa
0
111
Member Avatar for ericstenson

Hi - In Visual Studio 2005, when one drew a table, the cell height was "auto" and if it didn't contain anything, it wouldn't show. One could then manually set a cell height if one was so inclined. It seems in Visual Studio 2008 all of the cells have a …

Member Avatar for majestic0110
0
103
Member Avatar for vipinsgangwar
Member Avatar for ericstenson

Hi, I was wondering if anyone has the solution to this. Let's say I have a dropdownlist. And if a particular value of that dropdownlist is selected, I display a textbox. So I set the dropdownlist to cause a postback event, and on the pageload (when postback), i check to …

Member Avatar for ericstenson
0
100
Member Avatar for ebabes

use the system.net / system.net.mail namespace. Gmail, which has free mail and free @yourdomain.com mail service, uses SSL for its smtp, so you need to use port 587. Dim ObjectMail As New SmtpClient("smtp.gmail.com", 587) ObjectMail.EnableSsl = True ObjectMail.Credentials = New NetworkCredential("you@yourdomain.com", "password") Dim TheMessage As New MailMessage TheMessage.From = New …

Member Avatar for ericstenson
0
154
Member Avatar for asbjava

[code] Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As GridViewCommandEventArgs) Handles GridView1.RowCommand If e.CommandName = "YOURCOMMANDNAME" Then Label1.Text = GridView1.DataKeys(e.CommandArgument).Values End If End Sub [/code] You will need to specify the datakey as your unquie ident column from the database. Also, make sure to give the button a command …

Member Avatar for ericstenson
0
102
Member Avatar for ericstenson

In classic ASP there is a recordset. In VB.NET is there the same functionality, or must one load the data into a datatable and fill the table with a dataadapter? Thanks, Eric

Member Avatar for SheSaidImaPregy
0
142
Member Avatar for successalways

generally, people are only concerned with case sensitivity for passwords, not username. so what i like to do is Dim SELSTRING as String SELSTRING = "Select PASSWORD from DBUSERS where username = '" & textbox1.text & "' AND Password = '" & textbox2.text & "'" Dim DBCOMMAND as new data.sqlclient.command(SELSTRING, …

Member Avatar for SolTec
0
556
Member Avatar for vsc33
Member Avatar for Jicky

come on, you guys... best passowrd: sd;ugh43t89024h3iogjkilwe rth2389rj,kelgweiotu4389ejklgdjhge8943njk;njk.asvdh89243y89thenbgfrmkl2t4805y3ouirjhekliodg4u8tvg4n8n5u34578hwteuiwhdrnf78923n5830hn5ufi3o5j43057405823059gjh893nh7643ut89g5nh839m573589gj345nm3475h837m5m230958 vmgh497864305mu8w3908564n73568jm39584nm37634 v4n689h473563905,34h6783j62390nm4368gh7385tjv0nm6bg463m8n7v3c3muighruighy79utyoi4jglrejt0u68yrejhrdklgtwtu84390yureijgritu8y7ujri9gher890u

Member Avatar for technogeek_42
0
387
Member Avatar for leo002000

yes. you can use any SQL you want. SQL is a database and it is independant of the development environment.

Member Avatar for leo002000
0
83
Member Avatar for ericstenson

Hi, I have an old .DBF foxpro database I am trying to connect to. I can read the database with the new visual fox pro driver, but I cannot write to it (via insert command). Any suggestions?

0
82
Member Avatar for ericstenson

Hi - Wondering if anyone has built any .net apps (standard windows, not necessarily web apps) that connect to a Filemaker .dbf database. It doesn't seem to be a standard dbase file. Any help appreciated.

Member Avatar for ericstenson
0
85
Member Avatar for ediddy02

my favorite approach is to pass the user's identity # after log-in. on log-in page context.items.add("UID", useridfromdb) where useridfromdb is the identity vale from the database then, on the page_load for each page i get the user's record # on pageload event: dim uid as string uid = context.items("UID") if …

Member Avatar for ManicCW
0
276
Member Avatar for mithun_kanungo

are you using outside hosting? sometimes they have restrictive settings. if it's running on your system, do you have any anti-virus / firewalls running?

Member Avatar for mithun_kanungo
0
260
Member Avatar for kevin.george.it

you need to provide more detail. are you asking how to determine if a record is a sale or a quote? or are you asking for an approach to handling? i would say, seperate them (either seperate pages or seperate parts of the same page) if you are asking how-to-determine, …

Member Avatar for kevin.george.it
0
88
Member Avatar for nandhini21

hi nandhini- ok, populating a dropdownlist from a database and inserting a record into the database from a dropdownlist list, programatically, are very similar. in your case: Dim conn1 as new data.sqlclient.sqlconnection("YOUR CONNECTION STRING") Dim InsertString as string InsertString = "Insert into YOURTABLE (Column1, Column2) VALUES ('" & textbox1.text & …

Member Avatar for SheSaidImaPregy
0
131
Member Avatar for AniWeb

if it's a simple task, my opinion is that it's a ton easier to work with itextsharp and make a pdf. you could also use the same for your envelope.

Member Avatar for ericstenson
0
63
Member Avatar for rajesh79
Member Avatar for dotNetDummi

Are you actually capturing the whole string name, or are you just using the first 10 characters of the string?

Member Avatar for SheSaidImaPregy
0
71
Member Avatar for SiPexTBC

How about the fact that you are rounding the number! try specifing the number of rounding digits... Math.Round(asdf, 2) would give you 0.00 percision

Member Avatar for Ramy Mahrous
0
270
Member Avatar for BeastOverlordH6
Member Avatar for ericstenson
0
104
Member Avatar for sahoong

DISTANCE CANNOT BE CALCULATED AS YOU HAVE STATED ABOVE! BUT, you can achieve what you want. Let's give you a simple solution here... (a square, not a circle) Approximate distance in miles: sqrt(x * x + y * y) where x = 69.1 * (lat2 - lat1) and y = …

Member Avatar for Zadj
0
134
Member Avatar for kharane.pravin

hi - there are probably better options to use for an IVR than vb.net. What made you decide on vb.net? Google IVR systems and take a look at some of the options on the market. I think you will find it better not to reinvent the wheel... and yes, you …

Member Avatar for ericstenson
0
55
Member Avatar for bisma

i am willing to bet the computer cannot respond fast enough. that is why you are seeing it work OK with 1 second (more than enough time for the computer to process & update), but not work for 1 ms (not enough time to go through the code, process, and …

Member Avatar for ericstenson
0
129

The End.