200 Posted Topics
Re: easiest way to do it is put everything in a table and center the table to the page (page style property -- text:center) | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: Take a class. You probably won't learn by reading unless you already understand programming, it won't make sense. | |
Re: 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.... | |
Re: Come on, man. Search DW for writing data to a database. There are a variety of factors that determine how your code looks. | |
Re: 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, … | |
Re: 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? | |
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. | |
Re: i don't even understand your question. please claify what you want to do. | |
Re: 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 | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
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 … | |
Re: 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] | |
Is there a difference in handling between Session.Add("SOMETHING","somevalue") and Context.Items.Add("SOMETHING","somevalue")? | |
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 … | |
Re: 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 … | |
Re: You could make a program that suggests ideas to you. | |
Re: 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. | |
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 … | |
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 … | |
Re: 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 … | |
Re: [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 … | |
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 | |
Re: 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, … | |
Re: can you post your code? also, what isn't storing properly with it? | |
Re: come on, you guys... best passowrd: sd;ugh43t89024h3iogjkilwe rth2389rj,kelgweiotu4389ejklgdjhge8943njk;njk.asvdh89243y89thenbgfrmkl2t4805y3ouirjhekliodg4u8tvg4n8n5u34578hwteuiwhdrnf78923n5830hn5ufi3o5j43057405823059gjh893nh7643ut89g5nh839m573589gj345nm3475h837m5m230958 vmgh497864305mu8w3908564n73568jm39584nm37634 v4n689h473563905,34h6783j62390nm4368gh7385tjv0nm6bg463m8n7v3c3muighruighy79utyoi4jglrejt0u68yrejhrdklgtwtu84390yureijgritu8y7ujri9gher890u | |
Re: yes. you can use any SQL you want. SQL is a database and it is independant of the development environment. | |
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? | |
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. | |
Re: 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 … | |
Re: 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? | |
Re: 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, … | |
Re: 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 & … | |
Re: 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. | |
Re: sounds like a homework assignment. | |
Re: Are you actually capturing the whole string name, or are you just using the first 10 characters of the string? | |
Re: 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 | |
Re: hi -- could do this project for you if you want to make an offer. | |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … |
The End.