Sponsored White Papers, Webcasts, and Downloads
TechRepublic Resources
- Example of Image Upload
- Here we are uploading images in File System and storing path in the database. http://www.hanusoftware.comCode (ImageUpload.aspx.cs) :-private void Button1_Click(object sender, System.EventArgs e) { // Here I am uploading images in Images folder of C drive.int intResult=0;string strPath = @"c:Images"+Path.GetFileName(File1.PostedFile.FileName);SqlConnection con = new SqlConnection("server=.;uid=sa;database=pubs;pwd=");SqlCommand com = new SqlCommand("Insert into Category(name,imagepath) values(@name,@imagepath)",con); com.Parameters.Add("@name",TextBox1.Text); com.Parameters.Add("@imagepath",strPath); con.Open; intResult = Convert.ToInt32(com.ExecuteNonQuery); if(intResult...
- Tags: hanuseo@..., strPath, SqlConnection, SqlCommand
- Discussion threads 2007-09-20
Additional Resources
- How do I... Dynamically fill Microsoft Word fields using Access data?
- Good stuff, Thanks.Good topic. I've recently helped our church set up a couple of small computers in their office and they purchased Office 2003 to install on them. They wanted help setting up something like this and frankly, even though I'm an IT Manager and work extensively in...
- Tags: Word processors, Microsoft Office, Databases, thisisfutile, Microsoft Word, Microsoft Access, Access Data, Microsoft Corp.
- Discussion threads 2007-08-30
- VB Code
- 1. I want VB source code to disable/enable popup blocker from the registry that allows all the popups.2. I also need VB code to configure LAN [i.e to given the ip, subnetmask, gateway and DNS] automatically in win98/win2000/winxp and all other OS in registryIs this what...
- Tags: Boolean, ByVal Hkey, Microsoft Visual Basic, programming, tech_fyi@...
- Q&A 2006-01-22
- Change password of shared database
- I am starting out in IT, and learning VBA and SQL to write a database for the front of house staff at the office. Included in the specifications for the database is password protection easy enough and a means to change the password programatically again not too tough. I've written...
- Tags: Storage, Databases, database
- Discussion threads 2005-08-22
- How do I... Dynamically fill Microsoft Word fields using Access data?
- This blog post is also available in PDF form as a TechRepublic download. The download includes a sample Access database and Word form.Each Microsoft Office application specializes in a specific job. Word lets you create and edit documents and Excel analyzes your data. Storing data is Access' claim to fame....
- Tags: Microsoft Word, Microsoft Access, Data, Field, Microsoft Corp., Form, Susan Harkins
- Blog posts 2007-08-23
- How do I... Transfer data from a Word form to an Access database?
- Although Access forms are powerful interface objects, your users might not be familiar with them. In some cases, Access might not be installed on every users system, or you might prefer users not have access to your database. Here is how to use a Word form to...
- Tags: Technique, Microsoft Access, Sample Code, Data, Field, Difference, Form, Example Path, txtCompanyName, txtPhone, Figure G, Figure H, Microsoft Word, Word Processors, Microsoft Office, Databases, Office Suites, Software, Enterprise Software, Data Management, Susan Harkins
- Blog posts 2008-01-03
- << Previous
- page 1 of 1
- Next >>