Click here to Skip to main content
Page 1 of 24
Page Size: 10 · 25 · 50


Author filtered by: Zoltán Zörgő [x]
Answer 13 May 2013   license: CPOL
You could use masked input, like this: http://digitalbush.com/projects/masked-input-plugin/[^].And don't forget to validate on server side too!
Answer 13 May 2013   license: CPOL
You need to specify delimiter! See here: http://www.freemindsystems.com/blog/post/mysql-triggers-a-practical-example[^]
Answer 13 May 2013   license: CPOL
As I understand, you want to automate a browser. Well, automating all browsers is complicated, but you can target some:Internet Explorer: http://harness.codeplex.com/[^]Chrome: http://markcz.wordpress.com/2012/02/18/automating-chrome-browser-from-csharp/[^]But you might consider using...
C#
Answer 12 May 2013   license: CPOL
Here is the solution for WebBrowser control: Setting a file to upload inside the WebBrowser component[^].But in general it is a better approach to simulate/emulate a browser, and not automate it. For such tasks using HttpClient[^] is a much better approach - but a different one, since you...
C#
Answer 12 May 2013   license: CPOL
Check this: http://www.techonthenet.com/oracle/questions/insert_date.php[^]
how to get the below output by Zoltán Zörgo
Answer 12 May 2013   license: CPOL
The idea is this:select fa.facname,f.bfid,b.class,b.examdate from bthfac finner join batch b on b.bthid = f.bthidinner join facfeedback fb on fb.bfid=f.bfidinner join faculty fa on fa.????=??.????where month(b.examdate)= '11' and year(b.examdate)= '2012' and...
C#
how to use syntax highlighting by Zoltán Zörgo
Answer 11 May 2013   license: CPOL
Try this extension: http://visualstudiogallery.msdn.microsoft.com/F5CFBE65-D843-4C96-8F24-2C169676504C[^], but it is not free. Or use WebMatrix[^] instead.(this might bring you some help too: http://stackoverflow.com/a/3674772[^])
Answer 11 May 2013   license: CPOL
Let's clarify: in vb.net there are no functions, only methods of class. You can not separate a a method from the class. But you can make partial classes, and put the partial definitions of the same class in different files - VisualStudio is using this feature when creating forms to separate your...
insert record in mysql table by Zoltán Zörgo
Answer 10 May 2013   license: CPOL
The object name is wrong:...MySqlCommand mycom1 = new MySqlCommand(insquery1, exclecon);mycom1.Parameters.AddWithValue("@MONTH", MONTH);mycom1.Parameters.Add("@contenttype", MySqlDbType.VarChar).Value = contenttype;...This is why it is a really bad practice to use such variable...
Answer 10 May 2013   license: CPOL
onblur event is not standard on div elements, it is meant for input tags. Use onmouseleave instead. onmouseout won't work correctly either - see the explanation: http://www.mkyong.com/jquery/different-between-mouseout-and-mouseleave-in-jquery/[^]
Answer 9 May 2013   license: CPOL
Look here: var chars = "NAMAN";chars.Distinct().ToList().ForEach(c => Console.WriteLine("{0}={1}", c, chars.Count(i => i == c)));[update: ToCharArray() is not needed]
C#
Answer 9 May 2013   license: CPOL
First of all, don't concatenate strings when you build a query. You expose your application to SQLi.You could use All as a wildcard (but NULL would be better):... WHERE (field1 = @param1 OR @param1 = 'ALL') AND (field2 = @param2 OR @param2 = 'ALL')...and so on. It won't be an optimal query...
C#
Answer 8 May 2013   license: CPOL
In case of baretail there is no ipc, and if you start it, you get a new instance. You could however try to automate it, by emulating user action: sending windows messages to the process. You can use AutoIT to capture events and get an overview, or something like WinSPY[^] and Window Detective[^]...
Answer 8 May 2013   license: CPOL
A service is a service. It does something. If you put an IPC interface in it you can communicate with it from an application. I suppose you want to add the missing Server Agent feature of SQL Server Express.For doing the backup itself I suggest you use SMO Backup class[^].For the IPC you...
Answer 8 May 2013   license: CPOL
By design you can't. But there are methods to circumvent it. Look here: http://www.impressivewebs.com/css-opacity-that-doesnt-affect-child-elements/[^]
Answer 8 May 2013   license: CPOL
1) Using a self signed certificate: http://www.neiland.net/blog/article/how-to-create-and-install-a-self-signed-ssl-cert-with-iis7/[^]2) If you go online, buy a certificate from any provider http://en.wikipedia.org/wiki/Comparison_of_SSL_certificates_for_web_servers[^], and install it, like...
Answer 8 May 2013   license: CPOL
Of course not. It is in the design of .net to have several dlls in your project and not a huge executable. I suggest you keep it that way. If you want to deploy your solution, make an installer (setup project[^]), or if you don't need any additional settings to be made on the client, just make a...
Answer 8 May 2013   license: CPOL
You can make use of the telephone URI. Check this: http://tools.ietf.org/html/rfc3966[^]
Answer 8 May 2013   license: CPOL
To be short, your question topics are not related: you (should) update in the controller via the model, and not from the view - but you can call (theoretically) any controller action from any view, and there is the ajax version too. So, as I see, you have some gaps in your knowledge. I suggest...
Answer 8 May 2013   license: CPOL
You will need to generate you report on server side and send it as content to the client. Start here: PDF reporting using ASP.NET MVC3[^].
Answer 7 May 2013   license: CPOL
Your account is a hidden one, that points me to the new feature of Active Directory called Managed Service Account[^] (MSA). Let's suppose you are deploying in the same domain (inside trust boundaries), and the MSA is on place, and the access is granted to the MSA on the database side. You...
Answer 7 May 2013   license: CPOL
First of all, consult webhosting provider documentation. As I see, they don't provide email server, you need to use the google one, or an other third party provider.Look at this tutorial for a more advanced use with gmail as smtp server:...
Answer 7 May 2013   license: CPOL
"Not able to" is nothing we can deal with. What you described is an easy task - but we rarely do the job for anybody else. And it seems a CSS task not a jquery one. This is the css you will need to download and refine to match your needs: http://keith-wood.name/css/jquery.countdown.css[^]. You...
Answer 6 May 2013   license: CPOL
Well, as you can see here: http://msdn.microsoft.com/en-us/library/cc953fe1(v=vs.71).aspx[^], a char takes 1 byte, an int takes 4 bytes and a double 8 bytes. Is we summarize the length of the fields in x we get 4 + 1 + 8 + 1 = 14, that's less than 20. But we know the concept of field alignment...
C++
Answer 5 May 2013   license: CPOL
Following is a LinqPad[^] script for demonstration, the bold part is the basic idea you are looking for: int[,] A = {{1,2},{3,4},{5,6}};int[,] B ;B = (int[,])A.Clone();A[0,0] = 99;A.Dump();B.Dump();
C#
regular expression in VB.net by Zoltán Zörgo
Answer 5 May 2013   license: CPOL
Try this: ^[A-Z]{2,3}-\d{4}$For testing an learning purposes I suggest you download Regex Coach[^].
Answer 5 May 2013   license: CPOL
Check this: http://msdn.microsoft.com/en-us/library/dd329551(v=vs.100).aspx[^].
Answer 5 May 2013   license: CPOL
This could help you:select count(*) from TABLE_A A inner join TABLE_B B on (A.FieldA1=B.FieldB1 and A.FieldA2=B.FieldB2)
Answer 4 May 2013   license: CPOL
There are several thing I have noticed in your code:- First of all, autocomplete is not for returning too many rows, since that has makes no sense. It is meant to be used by people, so a maximum of 15-20 elements is enough. While the user is typing, the list will refine content.- You are...
Answer 4 May 2013   license: CPOL
I have to draw you attention on following things:- You can make a language on paper: a language is first a syntactical specification, than a semantic one- There are many languages[^] out there, but few are really used. Why do you want to make a new one?- There are several really bizarre...
Answer 4 May 2013   license: CPOL
First of all, what you need is unicode (utf8). Your phpmyadmin and yous mysql server might not be by default using this character set. Look here: http://php.net/manual/en/mysqli.set-charset.php[^] and here: http://techblog.willshouse.com/2011/07/08/how-to-set-phpmyadmin-to-use-utf8/[^].
PHP
Concatenate Rows in a table by Zoltán Zörgo
Answer 3 May 2013   license: CPOL
What you need is a theoretical concatenation aggregate. Well, the problem is, that there is no such thing in SQL Server 2008R2. But the good new is, that you can make one really easily with the CLR integration (see: http://msdn.microsoft.com/en-us/library/91e6taax(v=vs.80).aspx[^] and...
SQL
Answer 2 May 2013   license: CPOL
You can use dynamic query approach. You practically build your query as string and execute it inside the procedure, so you can use your table name as parameter. Look here: Building Dynamic SQL In a Stored Procedure[^]. But it rarely wise to do so. You will end up with an unsustainable...
Answer 2 May 2013   license: CPOL
What do you mean by "live website"?In general, if you are asked for credentials, that means that the site has user based authorization permissions set. It has nothing to do with the network connection, but can have with the Windows user you are using to access the site. Check IIS settings:...
Answer 1 May 2013   license: CPOL
Try following code:private void LoadNewForm(string formName){Assembly assembly = Assembly.GetExecutingAssembly();Form myForm = assembly.CreateInstance(formName) as Form;myForm.Show(this);} [updates based on SA's suggestion]Note that this will try to instantiate the form from the...
C#
Answer 1 May 2013   license: CPOL
Your problem is that you can not have multiple elements with the same ID. But with the pattern you use for that column you will generate inputs with the same ID. That won't work, since besides the fact that you violate the html standard, jquery can not grab it. You have could use more...
Answer 30 Apr 2013   license: CPOL
Well, don't add quotes at first place:var pattern= ;The tag is evaluated on place.
auto complete in text box by Zoltán Zörgo
Answer 30 Apr 2013   license: CPOL
Well, autocompleet is a standard feature - but it is a feature of the ComboBox too. So you could start here: http://bit.ly/YaBagZ[^].But you can jump directly here for one approach: http://dotnetsridhar.blogspot.fr/2012/10/autocomplete-textbox-in-windows.html[^] or here:...
Answer 28 Apr 2013   license: CPOL
The main difference: they are opposite operations, like packing and unpacking.But shame on you! At least try a little bit of google: http://msdn.microsoft.com/en-us/library/yz2be5wk.aspx[^]
C#
gray image to binary image by Zoltán Zörgo
Answer 28 Apr 2013   license: CPOL
As you asked for java solution, I can recommend OpenCV[^]. And here you have a good tutorial about converting an image to binary (black and white) using thresholding, with some theory too: http://docs.opencv.org/doc/tutorials/imgproc/threshold/threshold.html[^]. You will notice, that there is no...
jquery UI show text by Zoltán Zörgo
Answer 28 Apr 2013   license: CPOL
You will probably need to refine it, but try this one:textdiv {display: none;}
Answer 28 Apr 2013   license: CPOL
You can use this approach too:var s1 = "Mumbai";var s2 = "Delhi";Console.WriteLine(string.Format(string.Format("{{0}} {{1,{0}}}",19-s1.Length),s1,s2));
Answer 28 Apr 2013   license: CPOL
The simplest way is to make the control public (far not the best practice however). See: http://msdn.microsoft.com/en-us/library/ms233630.aspx[^], and this image to find the property: http://brwiki.brulescorp.com/images/e/e7/CalendarProperties.JPG[^].The best approach however is to add some...
Answer 27 Apr 2013   license: CPOL
As you see the alternatives right, and we don't have insight in your system, you have to decide.You can use anything as IPC that suites your needs, but choose the one that costs the less, and solves the most. Direct IPC is best when the reaction needs to be on time, while indirect IPC (like...
OCR on java for numbers by Zoltán Zörgo
Answer 27 Apr 2013   license: CPOL
You could start here: https://code.google.com/p/number-regnization/[^]
Answer 27 Apr 2013   license: CPOL
Griff's answer is absolutely correct, the explanation is not complete though. If you look carefully to your own working statement, you can see, that you used in (1,2,3), not in '1,2,3', neither in 1,2,3. What you have given in the parenthesis is not a string constant, it is a set constant, or a...
Answer 27 Apr 2013   license: CPOL
So, you have a list of string arrays (interesting, but you should know).Here is a code sample for accessing the values:List list = new List();list.Add(new string[] { "Id", "Name", "Age" });for(int i=0; i
C#
Answer 27 Apr 2013   license: CPOL
This is not a programming question unless you want to do this from code.In this case I suggest you use cURL extenstion[^]. See following code for ftp download: http://nemezisproject.co.uk/2011/05/08/php-curl-download-file-ftp/[^].
Date time Conversion in c# by Zoltán Zörgo
Answer 27 Apr 2013   license: CPOL
You have not told us the error you got, but I am pretty sure it is a compile time one, since TryParse is expecting a second out bound parameter (see: http://msdn.microsoft.com/en-us/library/ch92fbc1.aspx[^]). The difference is there in on the msdn manual page:Quote:The...
Answer 27 Apr 2013   license: CPOL
You mean ASP.NET.Why don't you give the user a dropdown instead of a textbox, anyway?Still, you can user regular expression validator[^]. The expression in your case is a simple enumeration: ^(january|february|march|and so on)$Of use custom validator[^] and validate from code against an...
C#

Page 1 of 24
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid