I'll post the code. Only jpg imgs are allowed.

 If (FileUpload1.FileName.Substring(FileUpload1.FileName.Length - 4) = ".jpg" And IsNumeric(w.Text) And IsNumeric(h.Text) And IsNothing(title.Text) = False) Then
            conns = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("art.mdb")
            redir = New Recordset
            strSQL = "SELECT COUNT(Title) AS r FROM Paintings WHERE Title='" +title.Text+"'"
            redir.Open(strSQL, conns)
            If Convert.ToInt16(redir.Fields.Item("r").Value) > 0 Then
                redir.Close()
                Response.Redirect("editgallery.aspx?GID=" + idGallery + "&er=True")
            End If
            FileUpload1.SaveAs(Server.MapPath("~/") & "images\Large\l_" & title.Text.Replace(" ", "").ToLower() & ".jpg")
            FileUpload1.Dispose() //uploaded img
            Dim myCallback As New System.Drawing.Image.GetThumbnailImageAbort(AddressOf ThumbnailCallback)
            Dim myBitmap As System.Drawing.Bitmap
            myBitmap = New System.Drawing.Bitmap(Server.MapPath("images/Large/l_" & title.Text.Replace(" ", "").ToLower() & ".jpg"))
            Dim myThumbnail As Drawing.Image = myBitmap.GetThumbnailImage(165, (165 / myBitmap.Width) * myBitmap.Height, myCallback, IntPtr.Zero) //create a thumbnail
            myThumbnail.Save(Server.MapPath("images\Small\s_" & title.Text.Replace(" ", "").ToLower() & ".jpg"), System.Drawing.Imaging.ImageFormat.Jpeg)
            myThumbnail.Dispose()
            myBitmap.Dispose()
            strSQL = "INSERT INTO Paintings (Title, HeightInches, WidthInches, ImageBaseName) VALUES (""" & title.Text & """, " & h.Text & ", " & w.Text & ", """ & title.Text.Replace(" ", "").ToLower() & """)"
            Dim conn As OleDbConnection = Nothing
            conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("art.mdb"))
            conn.Open()
            Dim cmd As New OleDbCommand(strSQL, conn)
            cmd.ExecuteNonQuery()
            conn.Close() //added to paintings table
            conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("art.mdb"))
            conn.Open()
            maxas = New Recordset
            strSQL = "SELECT MAX(PaintingID) AS maxot FROM Paintings" //new painting is the last one
            maxas.Open(strSQL, conns)
            maxs = New Recordset
            strSQL = "SELECT MAX(Ordering) AS maxot FROM GalleryEntries WHERE GalleryID=" & idGallery
            maxs.Open(strSQL, conns)
            strSQL = "INSERT INTO GalleryEntries VALUES (" & idGallery & ", " & maxas.Fields.Item("maxot").Value & ", " & maxs.Fields.Item("maxot").Value & "+1)" //add to galleryentries table ...

I have a website for a painter where the painter uploads a picture. The picture name is added to a mdb (access) database table, the picture is added to the end of a table called galleries, and the file is uploaded. It is also then resized to a small image.

Sometimes, not always, I get Unrecognized Database Format error after running this. Anyone think of any possible causes and what I can do about them without changing the main structure of the program?

Thanks for your help!

@BitBit
thats still a percentage
@zeroliken
if u think of anything else, tell me.

That would take a lot of space! Is there no other way? I already considered making a table and doing that. If I am correct, with 300 groups, we would have about 10^158 different possibilities. Help!

@zeroliken
It could, but people don't have to apply to all groups.

This is not homework; this is for part of a project I thought of starting... will not give details.
There are four groups ( sort of like jobs or colleges ): A, B, C, and D. In the project, there will be many more, but for now let's assume four. People can apply to any number those groups, and the groups can reject or admit them. Person 1 got in to A, B, C, D. Person 2 got into A, B, C, but not D. Person 3 got into A, B, but not C, D. Person 4 got into A, but not B, C, D, E. Obviously, A is [b]least[/b] selective, followed by B, C, and lastly D. How does a computer figure this out when there are any number of groups, and any number of people who applied to any number of groups?
Thank you in advance.

i'm given an ftp username/password to update a website via the ftp server. the project calls for the fileupload control. a file shud be uploaded onto the server. instead, it says "The server randdomain.com:80 requires a username and password". it works fine on VS on my computer, whats going on? how do i get it to simply upload the file? the area of the site with the fileupload has forms authentication. the ftp password and forms authentication password both do not work. how do i get it to upload the file?

how do i get the id of the item being moved in a sortable? also how do i get the new position of the item?
its in an update block, but it wont give the id. here is my code:

$(function () {
            $("#sortable").sortable({ update: function (event, ui) {
                alert(ui.item.value);
            }
            })
        });

i have a sortable list. when the user rearranges an item, i should know what was switched with what. i dont want an array. i just want which element switches with which. each list item already has a unique ID.

here is what i have so far:
on website load, a bunch of items are add to a list in an order given in an order section of a database. i can move the list around because the list is "sortable" (jquery).

what i need:
the user rearranges (sorts) the list items, the website updates the order, which is stored in an Access database. i am lost as to how to do that. help! where do i start?

how do i call a vb function on a jquery event?

but how do i stop the table from refreshing values?

Ok. I now have all the textboxes and fileuploads required, and an add button. once the button is clicked, data is added to a server-side table. However, the table looses all of its data after the first new row. ( after one more row added, another resets it so that it still has one header row and one other row )
I either need to get that solved somehow, or use some sort of multi-column listbox...

the user enters the data, including file locations and images. the file locations/images are uploaded to the server. the data is stored in variables. All of the data is only uploaded after the user hits a button. The data is displayed in a mult-column listbox. Help!

My problem:
there should be a mult-column list-box type control. the control also has names of images. when the user hits a button, the data in each column is stored in a variable, and all of the images are uploaded to server. Help on execution?

Exactly that. Using NAudio or DirectX, can someone show me how to convert a wav file to mp3. Mp3 to wav seems trivial, but unfortunately i need wav to mp3. Thank you for your help

Hmmmm... you would have to work with a Form. Seems impossible :(

string response = Microsoft.VisualBasic.Interaction.InputBox("Prompt", "Title", "DefaultResponse",5,5);
is the best! It is harder to create another form, etc.
Remember to reference Microsoft.VisualBasic

As you folks may know, I love math! I know almost all programming languages, but which one should I use for math. Basically, I want:

Easy type conversion
I don't care if it is object-oriented or not'
Can handle LARGE numbers
And speed!

I do not need graphical features, just math!

I have VS 2008, and QT. I wanted to know if I could include the .NET Framework and QT Framework in one application. How do you do this?
Help!

OK, it's actually simple.
create a file called
htaccess.txt

In it type:

[CODE]<File .htaccess>
order allow,deny
deny from all

ErrorDocument 404 http://[COLOR="Green"]yourdomainname.com[/COLOR]/error.html
ErrorDocument 403 http://[COLOR="Green"]yourdomainname.com[/COLOR]/error.html[/CODE]

The first bit inside the File tag says that no one can view that file. The last part says to redirect to those to website incase of a 404 or 403 error. replace yourdomainname.com with the name of your domain. Now, create a file called error.html that will be your error page
Now upload to your server, and you are good to go!

Hi there! I am using Visual Studios Express 2008, and I created a Windows Forms / DirectX / System.IO application. Whenever I publish it, my users have to download the .NET Framework and DirectX. Is there any way I can take those DLLs and include them in my project? Help!

[CODE]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Mail;
using System.IO;
using System.Net.Mime;

namespace Postcards
{
public partial class Form1 : Form
{
//String pathti;
public Form1()
{
InitializeComponent();
}

    private void button1_Click(object sender, EventArgs e)
    {
        //String ptt;
        MailMessage email = new MailMessage();
        openFileDialog1.Filter = "jpg files (*.jpg)|*.jpg";
        openFileDialog1.InitialDirectory = @"C:\\cinquin\\Postcards\\Postcards\\bin\\Debug";
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
           //MessageBox.Show(openFileDialog1.FileName);
        }
        email.To.Add(textBox3.Text);
        email.From = new MailAddress(textBox7.Text);
        email.Body = "<div style=\"font-family:Arial; color: " + textBox5.Text + "\"><img src=\"@@IMAGE@@\" alt=\"\" height=\"300\" width=\"300\"><br />Dear, " + textBox1.Text + "<br />" + textBox2.Text + "<br />" + textBox6.Text + ", <br />" + textBox4.Text + "<br /><br />";

        email.IsBodyHtml = true;
        //ptt = pathti;
        email.Subject = textBox8.Text; ;
        //mes.Body = "Hi! <img src='ele.jpeg' />";>
        //AlternateView ht = AlternateView.CreateAlternateViewFromString("<img style='width:50%; height: 50%;' src='cid:companylogo' /><div>Dear, " + textBox1.Text + "<br />" + textBox2.Text + "<br /> Sincerely, <br />" + textBox4.Text + "</div>", null, "text/html");
        string attachmentPath = openFileDialog1.FileName;
        string contentID = Path.GetFileName(attachmentPath).Replace(".", "") + "@zofm";

        // create the INLINE attachment
        Attachment inline = new Attachment(attachmentPath);
        inline.ContentDisposition.Inline = true;
        inline.ContentDisposition.DispositionType = DispositionTypeNames.Inline;
        inline.ContentId = contentID;
        //inline.ContentType.MediaType = "image/png";
        inline.ContentType.Name = Path.GetFileName(attachmentPath);
        email.Attachments.Add(inline);

        email.Body = email.Body.Replace("@@IMAGE@@", "cid:" + contentID);

        var cl = new SmtpClient("smtp.gmail.com", 587)
        {
            Credentials = new NetworkCredential("romil@thesirohis.com", "ing2ing"),
            EnableSsl = true
        };
        cl.Send(email);

    }

    private void textBox1_TextChanged(object sender, EventArgs e)
    {

    }

}

}

[/CODE]

That is the code. On email.body, how do I make the image the background image?

Wow thanks!

I am making a basic Player vs. Computer Tic-Tac-Toe in Visual Studios Express 2008. My Form.cs is
[code]using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tic_Tac_Toe
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public Image x = Image.FromFile("X.png");
public Image y = Image.FromFile("Y.jpg");
public Boolean pTur = true;

    private void Form1_Load(object sender, EventArgs e)
    {
        int n;
        pictureBox1 = new PictureBox[9];
        pictureBox1[0] = pictureBox2;
        pictureBox1[1] = pictureBox3;
        pictureBox1[2] = pictureBox4;
        pictureBox1[3] = pictureBox5;
        pictureBox1[4] = pictureBox6;
        pictureBox1[5] = pictureBox7;
        pictureBox1[6] = pictureBox8;
        pictureBox1[7] = pictureBox9;
        pictureBox1[8] = pictureBox10;
        for (n = 0; n < 9; n++)
        {
            this.pictureBox1[n].Click += new System.EventHandler(this.oPc);
        }

    }
    private void oPc(object sender, EventArgs e)
    {
        PictureBox sen = (PictureBox)sender;
        if (pTur == true)
        {
            if (sen.BackgroundImage == null)
            {
                sen.BackgroundImage = x;
                pTur = false;
                //xOne();
                cPc();
            }
        }
    }
    void cPc()
    {
        Random trytg = new Random();
        int trytg1 = trytg.Next(0, 9);
        Boolean r = true;
        while (r == true)
        {
            if (pictureBox1[trytg1].BackgroundImage == null)
            {
                pictureBox1[trytg1].BackgroundImage = y;
                pTur = true;
                r = false;
            }

        }
    }

    public Boolean hasX(PictureBox sende)
    {

        if (sende.BackgroundImage == x)
        {
            return true;
        }
        else
        {
            return false;
        }

    }
    public Boolean hasY(PictureBox sende)
    {

        if (sende.BackgroundImage == y)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}

}

[/code]

Sometimes, it just freezes when I click on a cell and "thinks" forever. My computer is exceptionally fast, so what ...

Web developers hate IE, the compatibility is pretty terrible. You'll have to find some alternative.

I have to advertise my hero, w3schools! They are so clear! Tizag has great recapping tutorials in concepts which you may forget. htmlcodetutorial has good references if you want in depth solid explanations, with usability included!

I agree w3schools is my hero.
Tizag.com is my second hero!
htmlcodetutorial is my reference hero. They have great tips on usage, and clear tutorials if you forget a concept, like tables.

Probably not, even though 2003 was 7 years ago, HTML and CSS don't change that much. If you go to archive.org, you can see how pages were in 2003 via the wayback machine. Here's yahoo!
[url]http://web.archive.org/web/20030216171355/www.yahoo.com/[/url]
It doesn't look good because it can not display the background image and images, etc.

For basic websites, you could use Microsoft programs like FrontPage.
I'm not a fan of this kind of developing, but you could use Adobe Dreamweaver. You could go to those websites, and look at their code.
You could use a WYSIWYG editor too.