2,245 Posted Topics

Member Avatar for snakay

Hey serkan :) I would offer to help but it looks he doesn't need it Please mark this thread as solved if you have found an answer to your question and good luck!

Member Avatar for serkan sendur
0
469
Member Avatar for sknake
Member Avatar for facadie

I posted a code snippet of a login screen: [url]http://www.daniweb.com/code/snippet217409.html[/url] That code will address retrieving and comparing passwords.

Member Avatar for sknake
-2
140
Member Avatar for serkan sendur

[QUOTE=William Hemsworth;995623]Haha :D anyway, I don't have a problem with it at all, couldn't you allow the user to choose whether he/she wants to show up as a visitor on somebody's page? I personally found it interesting to see who had visited my page, so I liked it.[/QUOTE] How would …

Member Avatar for Nick Evan
-1
175
Member Avatar for Abhishek227@msn

If you're deleting it visually then there is no need to call .Update() and .Fill() on the table adapter. Just call .Delete() on the row and then .AcceptChanges() on the dataset to finalize the delete without persisting the changes.

Member Avatar for Abhishek227@msn
0
77
Member Avatar for RimBamBoom
Member Avatar for kplcjl
Member Avatar for serkan sendur

[QUOTE=serkan sendur;995700]No i posted it to here to have Scott involved in the conversation. [COLOR="Red"]Today he is in good mood[/COLOR]. And also i really wonder how c# deals without having header files, if that can be done, why c++ has them, of course it cant be for bothering the programmer.[/QUOTE] …

Member Avatar for serkan sendur
1
369
Member Avatar for TinoMclaren

[code] private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if ((e.RowIndex == -1) || (e.ColumnIndex == -1)) return; Brush b; if (!dataGridView1.Columns[e.ColumnIndex].DefaultCellStyle.ForeColor.IsEmpty) b = new System.Drawing.SolidBrush(dataGridView1.Columns[e.ColumnIndex].DefaultCellStyle.ForeColor); else b = new System.Drawing.SolidBrush(Color.Gray); e.PaintBackground(e.ClipBounds, true); e.Graphics.DrawString(Convert.ToString(e.FormattedValue), e.CellStyle.Font, b, e.CellBounds.X, e.CellBounds.Y - 2, StringFormat.GenericDefault); e.Handled = true; } [/code] [edit] DoubleD's way to go …

Member Avatar for TinoMclaren
0
747
Member Avatar for whitetigerclaws

This should do it: [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 { public partial class frmReservations : Form { const int PRICE_PER_DAY = 115; public frmReservations() { InitializeComponent(); } private void frmReservations_Load(object sender, EventArgs e) { textBoxDepart.Text = …

Member Avatar for sknake
0
962
Member Avatar for mansi sharma

1. That could be many things but likely they're talking about source control so you have a copy of the exact source code at each version 2. In the old days when you had a DLL named "file1.dll" that had to reside in C:\windows\system32\file1.dll you were screwed if Application A …

Member Avatar for sknake
0
145
Member Avatar for kutchbhi
Member Avatar for serkan sendur
0
333
Member Avatar for serkan sendur

No, it is not required to have and depends on the shell you're using. For example bash uses .bash* prefixed files: [code] sk@sk:~$ ls -al .ba* -rw------- 1 sk wheel 148196 Sep 24 14:18 .bash_history -rw-r----- 1 sk wheel 509 May 9 2005 .bash_profile -rw-r----- 1 sk wheel 1093 Oct …

Member Avatar for serkan sendur
0
2K
Member Avatar for ddanbe

What about if you made the datetime picker invoke the popup date selector on the first click of the cell instead of showing the editor glyph on all of the columns? I use a third party set of controls that provides the behavior you're describing -- but implemented the way …

Member Avatar for ddanbe
1
2K
Member Avatar for GDICommander

Why don't you call [icode]Process.Start()[/icode] instead of using their interop for opening it? If all you're doing is executing it then just start the process.

Member Avatar for sknake
0
982
Member Avatar for Alphard

Please use code tags when posting code: [noparse] [code] ...code here.... [/code] [/noparse] As far your question -- I have posted a C# Windows Form login screen code snippet at: [url]http://www.daniweb.com/code/snippet217409.html[/url] You can port the logic over to VB.NET and away you go :)

Member Avatar for Alphard
0
99
Member Avatar for cbenedic

>> I have created XYZ.com zone and added two NS RRs which are secondary servers. I am forced to give my primary NS details when creating SOA record. Whether the primary NS RR, which we have given in the SOA RR will be safe for the internet (threats) or not? …

Member Avatar for cbenedic
0
1K
Member Avatar for f_atencia

Try using this: [code=text] <asp:SqlDataSource ID="shownMovie" runat="server" ConnectionString="<%$ ConnectionStrings:MovieTix %>" SelectCommand="SELECT movie.title, movie.category FROM [movie],[session],[theatre],[cinema] WHERE cinema.cinemaLocation=theatre.cinemaLocation AND theatre.theatreNumber=session.theatreNumber AND session.movieID=movie.movieID AND (movie.[movieID] = @movieID)"> <SelectParameters> <asp:ControlParameter ControlID="GridView1" Name="movieID" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:SqlDataSource> [/code]

Member Avatar for jbisono
0
140
Member Avatar for sknake

How do you report a group as spam? [URL="http://www.daniweb.com/forums/group8.html"]Guia de Campinas[/URL], [URL="http://www.daniweb.com/forums/group9.html"]Guia de Santos e Litoral Sul[/URL], [URL="http://www.daniweb.com/forums/group7.html"]Guia Rio de Janeiro[/URL] were all started by [URL="http://www.daniweb.com/forums/member477267.html"]caldascaio[/URL] with zero posts. The group [URL="http://www.daniweb.com/forums/group6.html"]mass product distribution[/URL] was started by [URL="http://www.daniweb.com/forums/member610697.html"]makingideas[/URL] who is banned.

0
121
Member Avatar for chris5126

Invert the match: [code] awk '{ FS="\n" ; RS="define" } $RS !~ /check_chris/ { print }' file [/code]

Member Avatar for chris5126
-1
130
Member Avatar for danielschealler

Why don't you use built in .NET encryption routines instead of Org.Mentalis.SecurityServices? Unless there is a specific reason then you could change it over to Microsoft's... I have a sample login form code snippet posted at: [url]http://www.daniweb.com/code/snippet217409.html[/url] The method contains encrypt and decrypt routines that I have deployed to hundreds …

Member Avatar for danielschealler
0
438
Member Avatar for OneDreamCloser
Member Avatar for sknake
-1
56
Member Avatar for Learning78

Create a [icode]List(Of Integer)[/icode] with values 1-100 and get a random number 0-List.Count-1, and when you pull out the number, remove it from the list. This way you will be accessing a random index of the list and after you consume the question remove it from the list.

Member Avatar for sknake
0
119
Member Avatar for icemokka

You can use the optimistic concurrency option of typed datasets in .NET which will throw an exception if any of the data has been modified since you performed a Select on the table which stops concurrent modifications. I have also done what you have with manually locking a record by …

Member Avatar for sknake
0
522
Member Avatar for linkpraveen

Another good article: [url]http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory01122006130034PM/csharp_memory.aspx[/url]

Member Avatar for sknake
0
155
Member Avatar for Mongz

Test the value before you use it [code] if (Session["UserName"] != null) userName = Convert.ToString(Session["UserName"]); [/code]

Member Avatar for sknake
0
66
Member Avatar for facadie

That depends on how you are binding the controls. If you used a typed [icode]DataSet[/icode] it retains the original value for the field so you could compare those. What are you binding with?

Member Avatar for facadie
0
2K
Member Avatar for facadie

Use an error provider! [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.validation { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender, EventArgs e) { errorProvider1.SetError((sender as Control), string.Empty); } private void …

Member Avatar for facadie
0
108
Member Avatar for Dajer
Member Avatar for mIssy_ricco
0
278
Member Avatar for yorro

Open up the designer file for your user control. The head of the file will look like: [code] <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class UserControl1 Inherits System.Windows.Forms.UserControl [/code] Paste the contents here. It should let you do what you are describing. I created a user control, added a panel, and put a …

Member Avatar for yorro
0
2K
Member Avatar for eeyc

I cant distinguish between first, middle, and last names in the sample you provided so I can't answer your question. Please use code tags when posting queries: [noparse] [code=sql] ...query here.... [/code] [/noparse] Also use this for pasting text: [noparse] [code=text] ...text here] [/code] [/noparse] Use the text paste to …

Member Avatar for eeyc
0
135
Member Avatar for venkx_008

"Hospital Management System" or "Document Management System" Those should be fun! :)

Member Avatar for Sabrina_Gage
0
108
Member Avatar for perumar
Member Avatar for MervinKoops

I don't understand the Circle X,Y, and Radius. Don't you just need a single center point and the radius, then draw the circle from there?

Member Avatar for MervinKoops
0
185
Member Avatar for MxDev

If you ship your application with source code and debug symbols you can get the callstack from [icode]Environment.StackTrace[/icode] which will contain the file name and line number. With that information you could open it up in your favorite text editor.

Member Avatar for papanyquiL
0
137
Member Avatar for august_2007

C# can do image manipulation just the same as any other language. You can use [icode]unsafe{}[/icode] blocks and get down to the image bits and do what you will with the image. However, I would have to agree that using C is a better choice if performance is an issue …

Member Avatar for kvprajapati
0
383
Member Avatar for Datsun90

This sounds like a deployment issue. How are you currently deploying the website? You should use the "Publish" option and publish the site. Also be sure to [b]DELETE[/b] all *.dll files in your bin\ directory before publishing. Old versions hanging around will cause problems.

Member Avatar for sedgey
0
134
Member Avatar for kahaj

Also if you're using bitmasking it is very importanting to have a specific data type size. IE if you shift left the bits one place on a 32 versus a 64bit data type they will have very different results. I wouldn't worry about using the smallest-possible-datatype for the most part. …

Member Avatar for kahaj
0
80
Member Avatar for sonia sardana

You shouldn't be using .asp pages to store login credentials, and you probably shouldn't be opening the page source for your project at runtime in a web environment. Why not just use a database? You could also hard-code in the user information in to the program (another bad approach).

Member Avatar for sedgey
0
94
Member Avatar for m_shanak

Are you sure you want to do that? What if they already have an SQL server installed on the network and do not want to install it? I recommend keeping them separate.

Member Avatar for m_shanak
0
159
Member Avatar for Merovingian

[icode]DataCommand[/icode] is defined in [icode]Microsoft.ManagementConsole.Internal[/icode] but you could use an [icode]SqlCommand[/icode] which is defined in [icode]System.Data.SqlClient[/icode]

Member Avatar for sknake
0
145
Member Avatar for jamesrobb

Why don't you post the HTML in a .txt file on the thread so we can see what you're looking at? Line breaks, white space, etc all affect how you scrape the file.

Member Avatar for sknake
0
768
Member Avatar for ctrl-alt-del

Once you have followed danny's recommendation and organized your members in to a class/struct you can use the [icode]XmlSerializer[/icode] also to persist your class to disk.

Member Avatar for kvprajapati
0
181
Member Avatar for kaninelupus

Macarded=? I don't know that either would make me screaming mad. I would say "*** *** ******** ** * * ******* *****" then call for a replacement phone and get over it. My iPod already died about two months ago and I haven't gotten around to replacing it yet. I …

Member Avatar for crimgirl
-2
280
Member Avatar for NargalaX

I believe we have a new resident Daniweb C# Drawing master :) Danny: Anything math/science related Serkan: Deployment Projects (if he answers!) Diamonddrake: Drawing & Controls Adatapost, Ramy and myself: More random Q&A than anything. I'll create a roster in the [URL="http://www.daniweb.com/forums/group1.html"].NET Developers groups[/URL] after I submit the idea to …

Member Avatar for papanyquiL
0
110
Member Avatar for KillerOfDN

This should do the trick: [code] private void button1_Click(object sender, EventArgs e) { List<Rectangle> lst = new List<Rectangle>(); Rectangle rect; rect = new Rectangle(1, 2, 3, 4); lst.Add(rect); rect = new Rectangle(1, 2, 3, 4); lst.Add(rect); rect = new Rectangle(4, 3, 2, 1); lst.Add(rect); lst = lst.Distinct().ToList(); } [/code] Please …

Member Avatar for KillerOfDN
0
928
Member Avatar for haxor98

You can catch the shutdown message with [icode]Microsoft.Win32.SystemEvents[/icode]: [url]http://blogs.msdn.com/jaredpar/archive/2006/10/20/responding-to-windows-shutdown.aspx[/url] [url]http://discuss.joelonsoftware.com/default.asp?dotnet.12.528750.10[/url]

Member Avatar for TomW
0
233
Member Avatar for sknake

I think there should be a user title in the social groups. For example the programming groups could have the title as their specialty, and the social groups could have .. something funny .. It would make the groups more interactive. As it stands the groups are pretty lacking in …

0
97
Member Avatar for virang_21

You should use a trigger on the insert to generate the id instead of a sproc to get the next value. Even then your sproc should probably be a UDF. In your case if the transaction is rolled back the ID will still be incremented even if the record is …

Member Avatar for sknake
0
127
Member Avatar for stoymigo

It depends. If your application installs the SQL Server instance and maintains it then you can do what you need to ensure the application functions. If you allow users to use any network instance of SQL then you're best off not to automate any security modifications as you risk pissing …

Member Avatar for sknake
0
112

The End.