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


Author filtered by:  Orcun Iyigun [x]
My vote of 5 by Orcun Iyigun
Forum Message 13 May 2013  
nice article...5
Answer 12 May 2013   license: CPOL
Change your line of code from:oXmlDocument.Load(a);to:oXmlDocument.LoadXml(a);XmlDocument.Load()[^] is used to load XML either from a stream, TextReader, path/URL, or XmlReader. XmlDocument.LoadXml()[^] is used to load the XML contained within a string variableGood luck,OI
C#
Answer 9 May 2013   license: CPOL
This link provides different ways to avoid quotes[^] in your textbox. But I strongly recommend you to use parametrized queries. You might have saved the day but later you might face a bigger one(SQL Injection). Here are some links for you to read: Link 1[^]Link 2[^]Good luck,OI
Answer 9 May 2013   license: CPOL
Have a look at the following links:On MSDN:(0)How to: Enable User Password Recovery Using the ASP.NET PasswordRecovery Control[^](1)How to: Customize the PasswordRecovery Control[^]On CP:(If you are using membership provider)Improved ASP.NET Password Recovery[^]---------Recovering...
Answer 8 May 2013   license: CPOL
You can use "between" or ">, '2010/05/26' AND [DATEFIELDNAME] =
Answer 8 May 2013   license: CPOL
Here is your assignment. Start from here the documentation: Query 101: Building Amazon SimpleDB Queries[^]Next Token mechanism sample code in C#:Reading All Items from an Amazon SimpleDB Query Result [^]I will not provide the complete code for you. Which is your work to implement. So...
Answer 8 May 2013   license: CPOL
Your best shot is to write your own function for such that purpose. You can use OnTextChanged event to accomplish this. Here are two links for you to view:WinForms | C# | AutoComplete in the Middle of a Textbox?[^]C# AutoComplete[^]Good luck,OI
Answer 5 May 2013   license: CPOL
Since GDI+ graphics object doesn't support indexed images. I assume you were using Image in your code so that you end up getting that exception. To overcome it you should convert your Image to Bitmap.try{ Image img = Image.FromStream(new MemoryStream(image)); // OR from file I dont...
Re: Moral Dilemma by Orcun Iyigun
Forum Message 3 May 2013  
Line them up in a straight line and shoot them all in once. Be environmentally friendly... :cool:
Answer 3 May 2013   license: CPOL
You might want to check Multiuser Environments.Here are the MSDN links that will be helpful for you:Multiuser Environments (Visual Database Tools)[^]Reconciling Changes Made by Multiple Users (Visual Database Tools)[^]Here is a walkthrough of it: MultiUse Walkthrough[^]And...
Remove sql injection by Orcun Iyigun
Answer 2 May 2013   license: CPOL
To avoid SQL Injection first thing is to use Parametrized Queries. For reference links please visit:C# SqlParameter[^]Using a Parameterized Query[^]Using parameterized Queries in C#[^]Using Parameterized Queries with the SqlDataSource (C#)[^]The above links that I provided will give...
Answer 2 May 2013   license: CPOL
You can handle this in numerous ways. Here are some links to provide you some info:Detecting Session Timeout And Redirect To Login Page In ASP.NET[^]Detecting Session Timeout and Redirect to HomePage(that's in vb)[^]Detecting ASP.Net Session Timeouts[^]Build an ASP.NET Session Timeout...
Answer 2 May 2013   license: CPOL
Please check my previous answer to another CPian. The same applies to your answer as well. You need to impersonate first to transfer files over network. Please check my answer here:how to store image or picture another server through LAN connection[^]Good luck,OI
Answer 1 May 2013   license: CPOL
Check the following links:Adding rows into Gridview in C# Asp.net [^]Dynamically adding and deleting rows from ASP.NET GridView[^]Add Row to ASP.NET GridView?[^]So you basically set the value to String.Empty or "".Good luck,OI
C#
asp.net gridview control by Orcun Iyigun
Answer 1 May 2013   license: CPOL
Please look at the Control.FindControl Method. Here[^] is the MSDN link.An example usage will be:Label myLabel = (Label)myGridView.Rows[myGridView.SelectedIndex].Cells[2].FindControl("myLabel"); Good luck,OI
Answer 1 May 2013   license: CPOL
You need to implement an impersonator. With this impersonation you can able to transfer/move/copy files over the networks. In the following links I provide you can create a Impersonator class and use it to access to the desired network. Please see:C# accessing or copying files over a network...
Re: Time... by Orcun Iyigun
Forum Message 1 May 2013  
I see what you did there..
Re: Time... by Orcun Iyigun
Forum Message 1 May 2013  
Yeah I think that beats my two. It is especially longer than a minute..
Re: Time... by Orcun Iyigun
Forum Message 30 Apr 2013  
I was indeed sharing this tweet[
Time... by Orcun Iyigun
Forum Message 30 Apr 2013  
I don't know what is longer: A microwave minute or a treadmill minute?
Answer 29 Apr 2013   license: CPOL
Well I think instead of allowing the user to install the desired application once you better look more into licensing your application might work out better in this scenario. What if the user formats the HDD? And needs to install it again? I do not think this is the right approach. For licensing...
Answer 29 Apr 2013   license: CPOL
Please check the following two links:What does Integrated Security =SSPI means in the Connection string[^] What is "Integrated Security" in connection string ?[^]Good luck,OI
My vote of 5 by Orcun Iyigun
Forum Message 28 Apr 2013  
Keep up the good work. Thanks.
Answer 25 Apr 2013   license: CPOL
Well you can get all the controls from the Page. so when you get the controls by their type you can change their color.Here is a link which explains how you can do it:Get all controls in web page[^]A similar code will be:public void GetUserControls(ControlCollection controls){ ...
Answer 25 Apr 2013   license: CPOL
Here is a good article for you to read as a starter to get the basic idea: How to Receive SMS Messages Using a Computer / PC?[^]And example thread to give you a sample code: receiving SMS using AT COMMANDS[^]Good luck,OI
Answer 25 Apr 2013   license: CPOL
Just add EnableEventValidation="false" to your page directive. And if you searched CP you could have ended in this Q&A : RegisterForEventValidation can only be called during Render();[^]Good luck,OI
Answer 25 Apr 2013   license: CPOL
Well you might want to look deeply into ASP.Net Remoting Overview[^].Also you will most probably need to use the ServiceController Class.Here[^] is the MSDN link for it.An example which shows you how to Start, Stop and Restart Windows Service [C#][^].An extra link about Remoting:...
Forum Message 25 Apr 2013  
The sweet taste of fodder and chewy as hell.. Sounds interesting.. :^)
Forum Message 25 Apr 2013  
Here is the breakdown how i reacted to your post: 1. With curiosity clicks on the image. 2. Wait for the image to show up on the browser. 3. First comment: " Oh god.." 4. Look away and image it on
httpwebrequest in c# by Orcun Iyigun
Answer 24 Apr 2013   license: CPOL
Here is the link to the WebRequest.GetRequestStream Method [^] in MSDN. It is covered as:Quote:The GetRequestStream method initiates a request to send data to the Internet resource and returns a Stream instance for sending data to the Internet resource.The GetRequestStream method...
Answer 24 Apr 2013   license: CPOL
You can use TrimEnd() method for the last space char:yourText = yourText.Trim(); //ORyourText = yourText.TrimEnd();ORYou can replace the spaces by Replace() method such as: Text.Replace(" ", string.empty);But more importantly you should use FilteredTextBoxExtender for avoiding...
Total size of a harddisk by Orcun Iyigun
Answer 21 Apr 2013   license: CPOL
You need to use the DriveInfo Class. Here is the MSDN DriveInfo Class link[^].An example code:using System;using System.IO;class Info { public static void Main() { DriveInfo[] drives = DriveInfo.GetDrives(); foreach (DriveInfo drive in drives) { ...
C#
Answer 21 Apr 2013   license: CPOL
Network Share had correct Security permissions but the Share permissions were not configured properly for the user. So try giving the proper permission to that specific folder.Look at these links:Access Denied in iis 7[^]ASP.NET is not authorized to access the requested resource[^]...
Answer 10 Apr 2013   license: CPOL
I am not certain but I don't think there isn't one fits all approach for video embedding into your webpage which supports all browsers. You may need to tweak a little for each browser. Since you haven't shared your code I can not comment on it or improve it.But here are some reference links...
My vote of 5 by Orcun Iyigun
Forum Message 10 Apr 2013  
Well written, detailed. Bookmarked and 5ed! Thanks..
Re: The Punisher by Orcun Iyigun
Forum Message 9 Apr 2013  
Isn't that a little bit twisted? In the video you can a driver who cuts him off and slams the breaks even though there is nothing to break for. There is nothing you can do to avoid it and still get a
Re: The Punisher by Orcun Iyigun
Forum Message 9 Apr 2013  
I totally agree with you they might think twice but some still continue being a sunshine Not everyone can do what he does brave move:thumbsup:
Re: The Punisher by Orcun Iyigun
Forum Message 9 Apr 2013  
Yeah I am a big fan of Chuck as well and miss it as you do. Pity to finalize the series where they can produce couple more seasons from it.. :( I can even hear the
The Punisher by Orcun Iyigun
Forum Message 9 Apr 2013  
Zelnograd bus-driver[^] I want that driver
Re: Russian Men by Orcun Iyigun
Forum Message 8 Apr 2013  
Opps!! I just realized that it is a bug for the last 3 hours... :doh:
Re: Russian Men by Orcun Iyigun
Forum Message 8 Apr 2013  
Well even his profile link gives error. Hamsters don't like it..
My vote of 5 by Orcun Iyigun
Forum Message 7 Apr 2013  
Nice article.
Re: Idiots at workplace by Orcun Iyigun
Forum Message 5 Apr 2013  
I started with:
Re: Health Advice by Orcun Iyigun
Forum Message 4 Apr 2013  
Hmm always have a plan B. Didn't Quote:I come closer due to smell your charming floral perfume work? :cool:
Re: Health Advice by Orcun Iyigun
Forum Message 4 Apr 2013  
Quote: concludes that staring at women's breasts for a few minutes daily is better for your health than going to the gym. Well why not incre
Re: Idiots at workplace by Orcun Iyigun
Forum Message 4 Apr 2013  
Good for you. I think it is the best approach. I also get disturbed when people come to the office talk about work or random stuff which is not my business. I ordered a pair of noise cancelling headph
Answer 4 Apr 2013   license: CPOL
MSDN JIT Help[^] will help you I think.Here are some more references[^].Good luck,OI
Answer 4 Apr 2013   license: CPOL
If you want to log the errors put your code into try-catch block and log the error in catch statement.An example pseudo code;try{ //your code in the page}catch(Exception ex){ //open a DB connection //Insert the exception details to your table // close your connection...
window service in c# by Orcun Iyigun
Answer 4 Apr 2013   license: CPOL
You have to use Impersonate while accessing over networks.A basic usage will be AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);WindowsIdentity identity = new WindowsIdentity(username, password);WindowsImpersonationContext context =...
C#
Forum Message 31 Mar 2013  
It is Google April Fool's Train :) Don't you think isn't it obvious?

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


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