2,245 Posted Topics

Member Avatar for Se7Olutionyg

You need to do it in your code behind file: [code] using System; using System.Collections; using System.Configuration; using System.Data; [COLOR="red"]using System.Data.SqlClient;[/COLOR] using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; namespace WebApplication5 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object …

Member Avatar for plazmo
0
108
Member Avatar for valter

1. Here is a mock photo class: [code] using System; using System.Collections; namespace daniweb { public class PhotoStuff { private string _fileName; private string _title; private DateTime _date; private ArrayList _photo; public string FileName { get { return _fileName; } set { _fileName = value; } } public string Title …

Member Avatar for sknake
0
489
Member Avatar for nokomoli

Are you guaranteed to have the same number of A,B,C records? Also are there any other columns in that table? This table structure doesn't make much sense.

Member Avatar for mail2saion
0
114
Member Avatar for samir_ibrahim

Use your google-fu Google search term: [code=text] site:daniweb.com +"samir ibrahim" +"Thread Solved" [/code] If you know what forum/language you want to search: [code=text] site:daniweb.com +"samir ibrahim" +"Thread Solved" intitle:VB.NET [/code]

Member Avatar for Dani
0
192
Member Avatar for firoz.raj
Member Avatar for sknake

I think daniweb's social groups should be linked off the main page under "Daniweb Community Features" on the bottom right section of the page pointing to: [url]http://www.daniweb.com/forums/group.php[/url] I can't remember how I found the groups but the only way I can get back there now is by viewing my profile, …

Member Avatar for Dani
0
170
Member Avatar for yorro

Use two update statements in your command text. From what I can tell your first update is the same but under a certain condition you have a second update. So do something like: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim SQL As String …

Member Avatar for yorro
-1
108
Member Avatar for babbu

It might help if you posted the exact error message and indicated what database you were using

Member Avatar for TomW
-2
182
Member Avatar for draxmas

[code] sk@sk:/tmp$ cat ba.sh #!/bin/bash x1=3 x2=5 l1=`echo "l (${x1})" | bc -l` RESULT=`echo "${x2} * ${l1}" | bc -l` echo "Result is ${RESULT}" sk@sk:/tmp$ ./ba.sh Result is 5.49306144334054845695 [/code]

Member Avatar for sknake
0
202
Member Avatar for crazyboy

Some articles that may help: [url]http://www.codeproject.com/KB/system/TSAddinInCS.aspx[/url] [url]http://www.tech-archive.net/Archive/Windows/microsoft.public.windows.terminal_services/2008-06/msg00106.html[/url] What is your project? There are tons of desktop apps out there.... no need to write yet another one.

Member Avatar for John A
-1
220
Member Avatar for quicktpgo

The morning. I get up ~12am-4am depending, get ready for work, head in to work, post on daniweb for an hour or two and drink 2 monster energy drinks (this is my morning 7 days a week). After that things start to go wrong and the day goes down hill …

Member Avatar for Lardmeister
0
158
Member Avatar for navinkumar

Are these MSDE/Express/Limited installers or the full blown version of SQL Server? If you're using the MSDE installer you need to specify parameters when you launch the setup. [code] setup.exe /qb ADDLOCAL=SQL_Engine,SQL_Data_Files,SQL_Replication,Client_Components,Connectivity,SQL_SSMSEE INSTANCENAME=[COLOR="Red"]InstanceName[/COLOR] SAVESYSDB=1 SQLBROWSERAUTOSTART=1 SQLAUTOSTART=1 AGTAUTOSTART=1 SECURITYMODE=SQL SAPWD=[COLOR="red"]password[/COLOR] DISABLENETWORKPROTOCOLS=0 ERRORREPORTING=1 SQMREPORTING=0 ADDUSERASADMIN=1 INSTALLSQLDIR="%ProgramFiles%\Microsoft SQL Server\" [/code]

Member Avatar for navinkumar
-1
100
Member Avatar for mathijs

I personally do not like fedora [b]BUT[/b] that is just my opinion, you should experiment with different distros and form your own. I would recommend ubuntu or debian. You can use phpbb for a forum on top of the apache webserver and mysql backend. It should come as a package …

Member Avatar for mathijs
0
129
Member Avatar for MillStrike

Your main form: [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 daniweb.checkboxes { public partial class frmMain : Form { private frmOther frm; public frmMain() { InitializeComponent(); } private void frmMain_Load(object sender, EventArgs e) { frm = new frmOther(); } …

Member Avatar for DdoubleD
-1
147
Member Avatar for theories

You can declare a private member inside the instance of the form's class. I would think "global" means more along the alones of [icode]public static[/icode] which is not what you want here. Example: [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; …

Member Avatar for theories
-1
191
Member Avatar for OneDreamCloser

Here is an example of a bash array. These values are split from a CSV line: [code=bash] declare -a varray for aline in `cat $USERFILE` do varray=(`echo $aline | awk '{ split($0, ulist, ","); for(i=1; i<=11; i++) printf ulist[i] " "; }'`) [/code] Note: Doing this in bash is horribly …

Member Avatar for sknake
0
97
Member Avatar for jen140

Try this: [code=bash] sk@sk:/tmp$ cat ba.sh #!/bin/bash for file in *; do filedate=`date -r $file +%Y-%m-%d` currentdate=`date +%Y-%m-%d` if [ ${filedate} == ${currentdate} ]; then echo $file fi done sk@sk:/tmp$ ./ba.sh ba.sh sk@sk:/tmp$ touch a b c sk@sk:/tmp$ ./ba.sh a b ba.sh c sk@sk:/tmp$ [/code] The script is: [code=bash] #!/bin/bash …

Member Avatar for rhousand
0
141
Member Avatar for PyroPaul2

Take a look at this thread: [url]http://www.daniweb.com/forums/showthread.php?t=215952[/url]

Member Avatar for sknake
-1
168
Member Avatar for benkyma

What is the error message you are getting? You should evaluate [icode]e.Message[/icode] inside of your [icode]catch()[/icode] statement

Member Avatar for benkyma
-1
106
Member Avatar for Baillie11
Member Avatar for TomW
-1
138
Member Avatar for realone

You can't -- the Dgrid_Cellclick has more data in the event args than del_click does. Perhaps if you explained what you were trying to do and what controls you are using we could provide you with another solution. If del is a button, for example, then you could look up …

Member Avatar for sknake
-1
113
Member Avatar for Ulukay

I don't think you can use a PrintForm control to automagically resample the image to a different size. Are you ok with trying another approach or does it have to be a printForm?

Member Avatar for Ulukay
-1
104
Member Avatar for Ishbir

You haven't provided nearly enough code for that project to compile. Can you upload the entire solution? I get 20+ build errors.

Member Avatar for Geekitygeek
-1
138
Member Avatar for thacravedawg

Good luck with that, I don't think ASP.NET handles large files very well :( It is my understanding that the webserver digests the entire upload in memory before handing it over to the page processing the file so you're looking at 100mb of memory allocation before your page even loads. …

Member Avatar for kvprajapati
0
105
Member Avatar for matthewl

If lengthy tasks count then 10. Back before the days of sysprep'ing machines we installed we would line them up and go down the line installing Windows :) We only had enough room for 10 displays on the table. And yes, in hindsight, I know there were many better ways …

Member Avatar for jbennet
0
301
Member Avatar for milenio

Use [icode]bcp[/icode] to bulk import them. [URL="http://www.google.com/search?hl=en&q=mssql+bcp+tsv&aq=f&oq=&aqi=g10"]Bulk Copy[/URL]

Member Avatar for sknake
0
122
Member Avatar for virtualmisc

Is each line a number, or is a bunch of lines with comma separated numbers, is it one huge number, or .... ?

Member Avatar for sknake
-1
87
Member Avatar for Atove
Member Avatar for sknake
0
95
Member Avatar for Geekitygeek

Have your form run in two modes: One in "Normal" mode for usage and one for "Record" mode. I had a very similar concept once for making a customizable dashboard where they could put their favorite items on the application's main form. They basically pushed a button then selected a …

Member Avatar for sknake
0
119
Member Avatar for javed123

You should handle that in your application layer, not in SQL. If you do want to handle it in SQL then you should use "sproc delegates" to avoid building dynamic sql. sproc - Determined which table to call: A or B sprocA - Call table A sprocB - Call table …

Member Avatar for waqas royal
0
116
Member Avatar for Tank50

Please use code tags when pasting code or text on daniweb: What is the actual error message from the SQL Client? You can trap this by adding a try..catch around your [icode]conn.Open()[/icode] calls. Example: private static DataTable RunQuery(string query) { const string connStr = @"Data Source=apex2006sql;Initial Catalog=Leather;Integrated Security=True;"; DataTable result …

Member Avatar for sknake
-1
133
Member Avatar for =OTS=G-Man

Your way is fine but you could use [icode]TryParseExact[/icode]: [code] private void button4_Click(object sender, EventArgs e) { DateTime dt; if (DateTime.TryParseExact("20090916114135766", "yyyyMMddhhmmssfff", new System.Globalization.CultureInfo("en-US"), System.Globalization.DateTimeStyles.None, out dt)) { MessageBox.Show(dt.ToString()); } } [/code]

Member Avatar for Geekitygeek
0
359
Member Avatar for benkyma

I coded up a little asynchronous twitter API. It looked fun: [code] using System; using System.IO; using System.Net; using System.Runtime.Remoting.Messaging; namespace daniweb { public class TwitterReader : IDisposable { // private string username; private string password; private bool running; // private const string url = @"http://stream.twitter.com/1/statuses/sample.json"; // public event OnTwitterLineReceived …

Member Avatar for VinayRok
0
929
Member Avatar for bhaskerlee

Also check out [URL="http://www.codeproject.com/KB/cs/"]code project[/URL]

Member Avatar for sknake
0
129
Member Avatar for Diamonddrake

Pretty :) The top one looks a little funny on the far left. It looks like the area to the left of the slider knob is a "stop" of some sort. It looks like a block to me.

Member Avatar for Diamonddrake
1
177
Member Avatar for bellatrix77

The closest thing you can get realtively easily is [icode]Select Into[/icode] but that won't preserve the entire table setup. What are you trying to accomplish?

Member Avatar for sknake
0
135
Member Avatar for kneiel

[code] sk@svn:/tmp$ cat l line 1 line 2 sk@svn:/tmp$ sed -e '1s/$/\r\nmy pattern/g' l line 1 my pattern line 2 sk@svn:/tmp$ [/code]

Member Avatar for sknake
-1
59
Member Avatar for jorge@trading

This is a matter of preference. In the beginning you should probably use a typed dataset and databinding to handle your data. This task is possible entirely through the IDE if your SQL tables have already been created, if not then you need to create your tables first.

Member Avatar for sknake
0
100
Member Avatar for rickya100

Can you check your logs in /var/log? The httpd might be throwing errors in messages or syslog, and the error_log for apache might give you more information as well.

Member Avatar for xav.vijay
0
573
Member Avatar for MxDev

The links DdoubleD posted should explain it, and more than likely if you're asking that question then you don't need a finalizer. The finalizer/destructor gives you one more chance to free up unmanaged resources so they're not leaked.

Member Avatar for sknake
0
110
Member Avatar for sysenm

[url]http://lartc.org/howto/lartc.rpdb.multiple-links.html[/url] Google around "Lartc" with traffic shaping, iptables, etc.

Member Avatar for sknake
0
150
Member Avatar for diafol

Its there... its just hard to see now: [url]http://www.daniweb.com/forums/thread221391.html[/url]

Member Avatar for diafol
0
81
Member Avatar for sknake

I liked the old profile page better because the text was a lot shorter and you could navigate it easier. When i'm posting and think I read a similar post earlier in another forum I open up the users profile page and hit the "Find all threads started by .." …

Member Avatar for diafol
0
505
Member Avatar for Alba Ra

I am with DdoubleD on needing to see more code. Could you upload a sample project demonstrating the project?

Member Avatar for Geekitygeek
0
152
Member Avatar for facadie

Don't use a data adapter for this. Here is the code using Sql* data accessors but you can flip them over to OleDb*, they're more or less identical in calling: [code] public static string BuildSqlNativeConnStr(string server, string database) { return string.Format("Data Source={0};Initial Catalog={1};Integrated Security=True;", server, database); } private void simpleButton1_Click(object …

Member Avatar for sknake
0
97
Member Avatar for lil_Is

I second Tom's approach. Always use parameterized SQL! A link that may be helpful: [url]http://codebetter.com/blogs/david.hayden/archive/2006/01/05/136264.aspx[/url]

Member Avatar for babbu
0
146
Member Avatar for mackemforever
Member Avatar for Diamonddrake
0
162
Member Avatar for CNIDog

>> Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Did you upgrade versions of visual studio? If you do that it creates backup files …

Member Avatar for sknake
0
144
Member Avatar for abhipro

Are you fond of that particular encryption method or are you just want any type of encryption? I have a code sample online at [url]http://www.daniweb.com/code/snippet217409.html[/url] with examples of encrypt and decrypt routines.

Member Avatar for sknake
0
141
Member Avatar for serkan sendur

The End.