Click here to Skip to main content

Comments by adriancs (Top 191 by date)

adriancs at 2 days ago View
   
He is too lazy to search in google and yet lie.
He should not be helped.
adriancs at 2 days ago View
   
You are too lazy to even search in google.
You should not be helped.
adriancs at 10-Sep-14 20:10pm View
   
Nice answer! vote 5
adriancs at 12-Jul-14 9:45am View
   
or insert an empty row and return that ID for that specific row.
adriancs at 20-Jun-14 22:49pm View
   
But I'm still looking today. it would be grateful if there are some more different points of view.
adriancs at 12-Jun-14 10:28am View
   
write the file to Temp folder and run it from there
adriancs at 10-Jun-14 21:57pm View
   
Yes, this will solve.
adriancs at 3-Jun-14 6:00am View
   
Yes he is.
adriancs at 9-May-14 10:10am View
   
Xmarin?
adriancs at 8-May-14 10:19am View
   
I think he want to change an excel file...
He mentioned that he want to add the 3rd row.
adriancs at 29-Apr-14 21:04pm View
   
This is one of the hottest question, most Frequently Asked Question. Perhaps someone should write an article "A Collection of Ways Existed in the World on How to Read/Write Excel in C#"
adriancs at 1-Apr-14 19:10pm View
   
Awesomium is used in Chromium. I have written an open source project by using awesomium. Take a look at http://exhtmleditor.codeplex.com/
adriancs at 17-Mar-14 22:35pm View
   
The code shown by you seems to be fine.
You have to provide more info.
adriancs at 16-Mar-14 22:49pm View
   
by using SQL database.
You have to learn it. Search for tutorials in Google.
adriancs at 13-Jan-14 0:41am View
   
Well, I can't see your computer screen and unable to guess the error message. Therefore I'm unable to tell what is happening to your project.
adriancs at 11-Jan-14 2:35am View
   
You code has no error. The error is coming from the invalid values. There are so many values in your code, I don't know which of them have error.
 
Check the following values are valid or not:
- txtEmail.Text
- fileName
- folder + fileName
 
Try catch the error like this and find out the error.

try
{
// ... perform your task
}
catch (Exception ex)
{
Response.Write(ex.ToString().Replace("\r\n", "<br />");
}
adriancs at 11-Jan-14 1:47am View
   
It is up to you to decide, you can Server.MapPath("~/" + "anything anywhere anypath and any name");.
adriancs at 9-Jan-14 9:33am View
   
nice +5
adriancs at 8-Jan-14 4:50am View
   
Thats right, just ask the developer of that machine.
adriancs at 8-Jan-14 4:47am View
   
What shield? can it resists sword attack?
adriancs at 8-Jan-14 4:46am View
   
Deleted
Instalshield is not existed, but InstallShield.
adriancs at 8-Jan-14 4:44am View
   
Good question
adriancs at 8-Jan-14 3:19am View
   
Rinjdael Algorithm in C# is actually encrypting byte arrays and return encrypted byte arrays too.
 
Basically,
 
To encrypt text, the text is converted into byte arrays and pass to rinjdael to encrypt, then convert the encrypted byte arrays into base64 string (text).
 
To encrypt file, the file is loaded into byte arrays and encrypted by rinjdael, then the encrypted byte arrays is written into file.
adriancs at 8-Jan-14 2:33am View
   
for webform asp.net, you can use FileUpload.
adriancs at 2-Jan-14 17:55pm View
   
For this situation, you'll use UPDATE.
adriancs at 2-Jan-14 3:02am View
   
If the data is already existed in database and you wish to update it, you use the UPDATE statement. If you want to insert new data, then you will use INSERT statement. These are the very basics of MsSQL, try google it for tutorials. You need to learn the basic first before doing anything further.
adriancs at 2-Jan-14 2:43am View
   
by executing INSERT, UPDATE and DELETE of SQL statements.
adriancs at 1-Jan-14 22:21pm View
   
database = SQL database = SQL table
are you referring to System.Data.DataTable?
adriancs at 31-Dec-13 3:05am View
   
If I understand correctly, after an ASP.NET page life cycle ends, IIS will release/dispose every object called within the thread, and this subsequently will close and dispose SqlConnection too. But I agree that, we should close the connection as soon as possible.
adriancs at 30-Dec-13 23:33pm View
   
the above code shows no problem
adriancs at 30-Dec-13 23:09pm View
   
+5
General question will return general answers :)
I would say these are nice hints.
adriancs at 29-Dec-13 19:12pm View
   
I tried to google around and I find that they provide POP3 / IMAP only for premium account.
adriancs at 29-Dec-13 19:08pm View
   
Just ask them directly +5
adriancs at 28-Dec-13 10:43am View
   
https://mysqlbackupnet.codeplex.com/wikipage?title=Conditional%20Rows%20Export%20for%20Each%20Table
adriancs at 28-Dec-13 10:43am View
   
https://mysqlbackupnet.codeplex.com/wikipage?title=Conditional%20Rows%20Export%20for%20Each%20Table
adriancs at 15-Dec-13 6:18am View
   
Deleted
Type "C# xml write" in Google, plenty of answers. Did you Google?
adriancs at 14-Dec-13 1:20am View
   
Deleted
void DoVote(int i)
{
if (i > 5) { i--; DoVote(i); }
else if (i < 5) { i++; DoVote(i); }
else SubmitVote(i);
}
adriancs at 14-Dec-13 1:15am View
   
Deleted
+5
adriancs at 14-Dec-13 0:56am View
   
for example?
adriancs at 13-Dec-13 3:48am View
   
impossible
adriancs at 13-Dec-13 3:38am View
   
I have updated my answer for writing string as binary file.
adriancs at 27-Sep-13 0:39am View
   
Just press the trigger on the Barcode Gun and fire the laser. The barcode gun will return a line of text that it read from the bar code. There is no special configuration for the barcode gun to work. It is standardize. It works just like a keyboard input. You can assume that the gun is a keyboard. Unless you are using old type of barcode gun, then you will need the manufacturer driver/API/Plugin Library/etc. By the way, the device is normally called Barcode Scanner in English.
adriancs at 19-Aug-13 2:04am View
   
+5
adriancs at 10-Aug-13 9:35am View
   
Wat de error msg?
adriancs at 8-Aug-13 1:52am View
   
I have update my answer above to provide the correct information.
adriancs at 8-Aug-13 1:45am View
   
I have written an article of connecting MySQL from SilverLight by using web service.
http://www.codeproject.com/Articles/633789/Connecting-MySQL-From-SilverLight-With-Web-Service
adriancs at 7-Aug-13 9:50am View
   
Oppss, sorry I have provided one wrong information. xD
You are right. It's glad that you have figured out.
The example provided in my answer is for a ASP.NET page accessing the web services. XD
For SilverLight, the result is returned in event GetDataCompleted. ^^
But anyway, I think you have learnt something new by yourself, which is a good for you. Congratulation.
adriancs at 7-Aug-13 4:25am View
   
I always use BackgroundWorker to perform these tasks.
adriancs at 7-Aug-13 1:43am View
   
Something is wrong before this code. We can't tell what is wrong without seeing the codes before this.
adriancs at 7-Aug-13 1:40am View
   
I see. There are some hidden information which is not provided yet.
I can't guess what is your code's error in other part without seeing the code.
adriancs at 6-Aug-13 13:33pm View
   
Yes, what RLH68 mentioned is correct.
By creating a static object of (UserInfo)Session["user"] can avoid the typo error.
See my answer.
P.S: I don't understand why our posts were downvoted. At least, the downvoter should explain why. Or else the act is just an naughty spam act.
adriancs at 6-Aug-13 13:24pm View
   
Why asking the same question twice?
http://www.codeproject.com/Questions/632607/Convert-int-to-string-and-read-it-in-csharp-window
I have already answered your question.
If you are not clear with the answers, you can post comments or questions under the answers provided.
adriancs at 6-Aug-13 13:03pm View
   
He had already added.
adriancs at 6-Aug-13 11:36am View
   
See my answer.
adriancs at 6-Aug-13 6:33am View
   
What is skip logic?
adriancs at 5-Aug-13 23:47pm View
   
vworker.com is bought by freelancer.com.
adriancs at 5-Aug-13 22:17pm View
   
We can't tell what is the error with your code without seeing your code.
adriancs at 4-Aug-13 10:27am View
   
Agree with you. Vote +5
adriancs at 4-Aug-13 9:55am View
   
Not bad. Looks good.
adriancs at 3-Aug-13 13:57pm View
   
Nice answer.
adriancs at 3-Aug-13 13:56pm View
   
What have you tried?
adriancs at 31-Jul-13 2:46am View
   
not enough details. try to be more specific.
adriancs at 31-Jul-13 2:44am View
   
You should post the error/exception message too.
adriancs at 31-Jul-13 2:44am View
   
Its
adriancs at 25-Jun-13 13:04pm View
   
http://lmgtfy.com/?q=how+to+backup+sql+database
adriancs at 18-May-13 23:36pm View
   
+5 for not storing files in database.
This is because it increases the burden when backing up and restoring the database.
adriancs at 18-May-13 23:34pm View
   
Can the user obtain the real filename on server?
example: www.myweb.com/files/--guid--
 
One way to protect the files to be direct accessed by user is to put them inside App_Data folder for ASP.NET. Use web respond to transmit the file for user to download.
adriancs at 18-May-13 11:25am View
   
He wants to store the uploaded files in folder, but don't want the files to be downloaded directly by other user.
adriancs at 15-May-13 11:49am View
   
This is a hot question.
adriancs at 4-May-13 5:16am View
   
The god will reward u by saying this message. xD
adriancs at 4-May-13 4:27am View
   
I have a urgent project that need to be done too. Please help me to finish it in 2 days. Thanks you very much. and the the god will reward u too.
adriancs at 2-May-13 9:07am View
   
OP want to convert a string to datetime.
adriancs at 2-May-13 8:57am View
   
For example? what do you want to validate?
adriancs at 2-May-13 7:58am View
   
Using Virtual Mode of DGV is the only way to show such number rows.
adriancs at 28-Apr-13 4:21am View
   
This work on Chrome and firefox.
It does not work in Internet Explorer.
adriancs at 11-Apr-13 6:55am View
   
rewrite the php script in c#
adriancs at 28-Jan-13 20:49pm View
   
Reason for my vote of 5 \n nice. thanks
adriancs at 25-Jan-13 23:18pm View
   
insert into `table_name`(`richtext`) values('" + richTextBox1.Rtf + "');
richTextBox1.Rtf = select `richtext` from `table_name`;
adriancs at 24-Jan-13 2:55am View
   
Deleted
question updated. :)
adriancs at 24-Jan-13 2:22am View
   
the full code is not posted. in stead of giving you full baked code. This is actually good for you. In this case, you will learn more. It trains you to observe and train your programming logic. But, if you still fail to analyse the codes or integrate your code, you are welcome to leave comments and request for further help or further clarification.
adriancs at 24-Jan-13 2:07am View
   
this
 
AllowUsersToAddRow = false
 
can avoid calculation errors, which an empty row will not exist, but it also lost the ability to allow your user key in data dynamically/directly into datagridview. However, to allow or not. Its up to you.
adriancs at 24-Jan-13 2:06am View
   
and I also show you the extra code about the idea of using
 
int.TryParse()
adriancs at 24-Jan-13 2:05am View
   
you have missed the point.
 
I do not provide full solution, in stead, I give you a very important clue/hints about what is causing your problem.
 
Your problem is your code is taking the last row into calculation. In your case, you have to check the last row is NEW ROW or not. because last row is always contains no data. Therefore, you have to use this
 
dgvr.IsNewRow
 
to by pass the last row, which is also the empty row. Then your calculation shall avoid any errors.
 
for the rest of the calculation. You are good to do it yourself without me showing the codes.
adriancs at 24-Jan-13 2:04am View
   
Deleted
this
 
AllowUsersToAddRow = false
 
can avoid calculation errors, which an empty row will not exist, but it also lost the ability to allow your user key in data dynamically/directly into datagridview. However, to allow or not. Its up to you.
adriancs at 24-Jan-13 1:59am View
   
Deleted
and I also show you the extra code about the idea of using
 
int.TryParse()
adriancs at 24-Jan-13 1:56am View
   
Deleted
you have missed the point.
 
I do not provide full solution, in stead, I give you a very important clue/hints about what is causing your problem.
 
Your problem is your code is taking the last row into calculation. In your case, you have to check the last row is NEW ROW or not. because last row is always contains no data. Therefore, you have to use this
 
dgvr.IsNewRow
 
to by pass the last row, which is also the empty row. Then your calculation shall avoid any errors.
 
for the rest of the calculation. You are good to do it yourself without me showing the codes.
adriancs at 24-Jan-13 0:13am View
   
richTextBox1.Rtf = // data from mysql
adriancs at 24-Jan-13 0:08am View
   
I know this problem is solved.
just to share a bit idea.
does this solve your problem too?
at the load event of MessageBoxForm, add this:
this.Activate() or
this.BringToFront() or
this.TopMost = true;
adriancs at 20-Jan-13 19:47pm View
   
Hi, I'm interested in async pages. Isn't that all page served in IIS/ASP.NET are treated multithread?
 
Can you give me some clue about what is async pages?
is these info reflect what you said about Async Pages?
http://weblogs.asp.net/scottgu/archive/2005/10/12/427318.aspx
http://blogs.technet.com/b/sateesh-arveti/archive/2011/11/03/look-at-asynchronous-page-processing-in-asp-net-4-5.aspx
http://msdn.microsoft.com/en-us/magazine/cc163725.aspx
adriancs at 19-Jan-13 22:24pm View
   
pictureBox1.location is the position
adriancs at 19-Jan-13 10:05am View
   
this is the code:
 
protected void Page_Load(object sender, EventArgs e)
{
CheckBoxList1.AutoPostBack = true;
CheckBoxList1.SelectedIndexChanged += new EventHandler(CheckBoxList1_SelectedIndexChanged);
}
 
void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
ListBox1.Items.Clear();
foreach (ListItem li in CheckBoxList1.Items)
{
if (li.Selected)
{
ListBox1.Items.Add(li.Text);
}
}
}
adriancs at 19-Jan-13 9:54am View
   
Good luck. :)
adriancs at 19-Jan-13 6:18am View
   
+1 Vote Up
adriancs at 18-Jan-13 13:36pm View
   
Deleted
Sounds like a SSL.
Cound this possible work for you?
the user send back an encrypted string of this content:
 
132|sales=3482|transaction=23423
 
after you decrypted the string, you'll get
user = 132
sales amount = USD 3482
transaction amount = 23423
 
there, you'll know who send you the info.
the key that you sent to them will be part of encryption key.
adriancs at 18-Jan-13 13:20pm View
   
To the best advise for beginner of ASP.NET
 
ASP.NET is a technology that built on top of HTML, CSS and JAVASCRIPT.
Before you start with ASP.NET, you must get your feet wet into html and css.
 
have some patient, read all through the topic about html at here:
http://www.w3schools.com/html/default.asp
 
then read all the topic about css at here:
http://www.w3schools.com/css/default.asp
 
then try to have some understanding of Javascript at here:
http://www.w3schools.com/js/default.asp
 
Without the knowledge of these 3, you will feel that something seems to be missing and you can't really perform.
 
ASP.NET can be described as a dynamic html generator. At the mean time ASP.NET runs processing logic in behind, it also generates HTML document and transmits it through internet to your client. And Javascript helps to process logic at client's computer. Javascript can dynamically generates or change the HTML at client's computer too. Javascript also helps to collect data from client and post it back to server for C# to process data.
 
Understanding HTML, CSS and Javascript will help you to understand the life circle of website better. You will eventually find that, ASP.NET do not fully generate all the HTML for you. Some of the parts will still require you to write HTML syntax manually. ASP.NET will help you combine the HTML syntax.
 
After that you can start to learn ASP.NET.
Here is a very good book for you to start off as a beginner.
A very nice book to read: Download this:
Beginning ASP.NET 3.5 in C# 2008 From Novice to Professional
http://www.mediafire.com/view/?f24w1mwfl52b4jd
adriancs at 18-Jan-13 12:58pm View
   
new to asp.net is not a problem. here,
 
for tutorial of using ListBox, you may have a look at here:
http://www.dotnetspark.com/kb/637-simple-example-with--listbox.aspx
 
for tutorial of using CheckBoxList, you may have a look at here:
http://www.youtube.com/watch?v=xmJPxCn3s0Q
http://www.dotnetcurry.com/ShowArticle.aspx?ID=77
 
you may post back comments if you have any question.
adriancs at 18-Jan-13 12:18pm View
   
cloud? Windows Azure?
adriancs at 18-Jan-13 12:06pm View
   
Hi, your question asked that how to do it without a button. So which means you know how to do it if using a button?
 
by the way, if you declare the CheckBoxList1_SelectedIndexChanged event in ASP.NET page like this:
 
<asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True"
onselectedindexchanged="CheckBoxList1_SelectedIndexChanged">

 
You don't need to declare it in code behind:
 
protected void Page_Load(object sender, EventArgs e)
{
CheckBoxList1.SelectedIndexChanged += new EventHandler(CheckBoxList1_SelectedIndexChanged);
}

 
and if you do it in code behind, you won't have to do it in ASP.NET page.
adriancs at 18-Jan-13 11:59am View
   
Oh, I finally got it.
to use formatted code block in comments, use
<code></code>
adriancs at 18-Jan-13 11:55am View
   
Yes, as richcb code presents
this is not needed:

else
{
TextBox1.Text = "";
}
adriancs at 18-Jan-13 11:49am View
   
I see others use formated code block in their comments. Do you know how to do that?
Example:
<pre lang="cs">string a = "hello";</pre>
see, the html is not rendered.
adriancs at 18-Jan-13 11:46am View
   
by using update panel?
adriancs at 18-Jan-13 11:44am View
   
Hi Chiklu Soumya, I didn't mention RadioButtonList in my answer.
Your code is almost there. Its just has a little bug.
 
It should be this right?
<pre>TextBox1.Text = RadioButton1.Text;</pre>
not this
<pre>RadioButton1.Text = TextBox1.Text;</pre>
adriancs at 18-Jan-13 11:09am View
   
I believe you can easily find lots of answers in google, even with graphics illustration and movie guide in youtube.
adriancs at 18-Jan-13 11:02am View
   
Deleted
don't try to request for full coding here.
This is a place for learning.
You should asked for hints, tips and most importantly paste the code where you are stuck at.
In most of the cases, people here will try to teach how to bake a cake, not a ready baked cake.
adriancs at 18-Jan-13 10:33am View
   
Hi, can you paste the codes that you have tried? You can paste the code in your question. Just edit the question.
adriancs at 18-Jan-13 10:32am View
   
Hi, can you show me what are the codes that you have written so far? You can paste the code in your question. Just edit the question.
adriancs at 17-Jan-13 22:11pm View
   
To understand the need of doing this,
Try execute this:
 
string name = "anyname";
string address = "anyaddress";
string comment = "anycomment'); DROP TABLE IF EXISTS `table`; SELECT ('surprise";
 
SqlCommand cmd = new SqlCommand("insert into table (name,address,comment) values('" + name + "','" + address + "','" + comment + "')", cnn);
 
It's called SQL Injection.
adriancs at 17-Jan-13 21:53pm View
   
for rapid change, cache the last existed largest number.
for slow change, compare the values one by one, or
sort the values and get the 1st or last.
adriancs at 9-Jan-13 20:14pm View
   
spam...
adriancs at 8-Jan-13 8:34am View
   
Well, then change the engine, and it will. XD
adriancs at 8-Jan-13 8:30am View
   
save it as a html table file and name it with a file extension of ".xls".
adriancs at 18-Dec-12 8:13am View
   
whats the different between
<pre>public static readonly string SomeStr = "abcd";</pre>
and
<pre>public const string SomeStr = "abcd";</pre>?
adriancs at 17-Dec-12 22:22pm View
   
So?
adriancs at 16-Dec-12 9:04am View
   
When do you want to find the control?
adriancs at 16-Dec-12 9:03am View
   
Deleted
When do you want to find the control?
adriancs at 15-Dec-12 1:23am View
   
You create a template in Crystal Report.
then, you'll declare an instance of crystal report in code, fill in the values dynamically and export the PDF dynamically in c#.
All of this is done in code behind. Only the design time is done in visual studio's CR editor.
You can even generate the template in code behind too.
adriancs at 15-Dec-12 0:25am View
   
What have you tried?
adriancs at 12-Dec-12 22:43pm View
   
You are recommended to post a new question for this. You will receive better solutions.
adriancs at 12-Dec-12 22:15pm View
   
I don't understand your question.
adriancs at 12-Dec-12 22:14pm View
   
Deleted
I don't understand what you want.
adriancs at 12-Dec-12 22:12pm View
   
You can find some of the information here:
Difference between String and StringBuilder
http://www.youtube.com/watch?v=4lFAs6FYTXg
http://www.youtube.com/watch?v=hF-6eudOD0M
adriancs at 12-Dec-12 9:08am View
   
me too. +5
adriancs at 12-Dec-12 9:01am View
   
What have you tried? What have you done? Show some of your code.
adriancs at 12-Dec-12 8:54am View
   
Yes, it works.
adriancs at 12-Dec-12 8:54am View
   
Which of the line of code that you don't understand?
adriancs at 12-Dec-12 8:50am View
   
Hi, I have updated the answer.
adriancs at 12-Dec-12 8:09am View
   
You can ask someone to create the application for you at www.freelancer.com
There are lots of folks ready to create any application for you, with or without source code.
adriancs at 13-Nov-12 0:09am View
   
How about copy the data source file?
adriancs at 9-Nov-12 4:59am View
   
someControl.BackgroundImage = Image.FromFile("C:\\someimage.jpg");
adriancs at 8-Nov-12 9:50am View
   
check if the values exist in data or not.
if yes, throw error
if no, add it.
adriancs at 8-Nov-12 9:49am View
   
There are many databases that you can use.
do you want recommendation?
adriancs at 8-Nov-12 9:41am View
   
that will do
adriancs at 8-Nov-12 9:39am View
   
use 2012
adriancs at 8-Nov-12 9:38am View
   
I guess he missed the last sentence: How to do that?
adriancs at 8-Nov-12 9:34am View
   
select * from table1 inner join table2 on table1.someid = table2.id;
adriancs at 8-Nov-12 9:30am View
   
data.GetType().ToString()
what do you get?
adriancs at 7-Nov-12 8:48am View
   
If it is disturbing your b, then you can make it out a or out c or out anything you like.
By this, it won't affect your b.
adriancs at 7-Nov-12 3:26am View
   
Maybe you are trying to ask:
How to make a thing that support uploading and downloading both music/video through internet (online) in C#?
adriancs at 7-Nov-12 3:21am View
   
You can do that with www.mediafire.com
That enables you to make any media/files online where you can upload and download.
adriancs at 6-Nov-12 3:34am View
   
Thanks for information.
adriancs at 4-Nov-12 6:40am View
   
Hi buddy, you forgot to accept solution
adriancs at 4-Nov-12 6:40am View
   
Deleted
Hi buddy, you forgot to accept solution.
adriancs at 2-Nov-12 4:10am View
   
sorry. this is wrong >> requestvalidationmode
this is correct >> requestValidationMode
adriancs at 2-Nov-12 0:26am View
   
Are you encrypting unicode characters? Maybe you have used the wrong Encoding.
adriancs at 1-Nov-12 7:50am View
   
Can you show the codes that you build table1, table2 and gridview?
adriancs at 1-Nov-12 7:50am View
   
Deleted
Can you show the codes that you build table1, table2 and gridview?
adriancs at 1-Nov-12 5:24am View
   
Deleted
dont type your question or comment in [Add your solution here] or [Submit your solution!] or [Add a Solution].
Click on the button called >> [Have a Question or Comment?]
adriancs at 1-Nov-12 5:05am View
   
textbox can be wrapped (the output of the employee name) inside an updatepanel. This can prevent a full postback. Slightly better performance.
adriancs at 27-Oct-12 21:47pm View
   
Yes, this query will return an integer.
adriancs at 27-Oct-12 21:46pm View
   
shot at target. vote 5
adriancs at 26-Oct-12 23:13pm View
   
I have updated my answer.
adriancs at 26-Oct-12 11:56am View
   
I saw your code. That sounds better.
adriancs at 26-Oct-12 11:56am View
   
Deleted
I saw your code. That sounds better.
adriancs at 26-Oct-12 11:54am View
   
This looks better.
adriancs at 26-Oct-12 11:42am View
   
This is just depends on the programmer's requirements and needs.
He need the 2nd form to alter 1st form's button, then he'll code it that way.
By hiding the button1, this can prevent user for opening the same form twice.
The OP opens the form by using Show(), not ShowDialog().
adriancs at 26-Oct-12 1:40am View
   
Put the code in master page.
adriancs at 25-Oct-12 23:44pm View
   
Hi, you may add this article link. An introduction of password hack proved generator.
>> Salted Password Hashing - Doing it Right
Link: http://crackstation.net/hashing-security.htm
adriancs at 25-Oct-12 23:13pm View
   
I think he wants to say:
code shows no build errors but will not run PROPERLY AS PREDICTED. IT HAS ENDLESS LOOP.
adriancs at 25-Oct-12 9:25am View
   
Why you can't use it in your project?
adriancs at 25-Oct-12 8:34am View
   
Deleted
You are creating a HTML Excel File which very hard to add more rows directly.
You can use some third party tools to make an excel file / to add rows etc.
 
You can try this:
ClosedXML - The easy way to OpenXML
http://closedxml.codeplex.com/
adriancs at 25-Oct-12 7:20am View
   
you want to pick a date from the calendar into textbox?
adriancs at 25-Oct-12 7:13am View
   
Hi, I have reply in the above solution.
adriancs at 22-Oct-12 9:49am View
   
opps, a mistake. I have updated the answer.
adriancs at 21-Oct-12 21:34pm View
   
Deleted
This question is almost similar to: How to write a C# program?
adriancs at 21-Oct-12 9:10am View
   
Is there any exceptions? what is the details of the exception error message?
adriancs at 20-Oct-12 22:42pm View
   
you are not going to add item into COLUMNS. More accurate, you are going to add it into CELL.
gridView1.Rows[0].Cells[0].Text = "something like that";
dataGridView1.Rows[0].Cells[0].Value = "something like that";
adriancs at 20-Oct-12 22:35pm View
   
I have added the timer1.Tick += timer1_Tick;
at the constructor. You may try again.
adriancs at 20-Oct-12 22:32pm View
   
I think you are right. He said the timer is not running. Perhaps timer1.Tick += timer1_Tick is not set. But how come he can run it in the 1st place? nevermind, just add it anyway.
adriancs at 20-Oct-12 10:48am View
   
However, I do miss out the timer.Start() at Page Load.
adriancs at 20-Oct-12 10:44am View
   
I follow the OP's code. The OP can run the code with timer start. There is a very high possibility that the Timer Tick event handler is set in the Form1.Designer.cs (UI design) by the OP.
adriancs at 20-Oct-12 3:06am View
   
when you move your mouse, the textbox and label is shown again, and at the same time, you restart the timer.
timer1.Start() << restart the timer
adriancs at 20-Oct-12 3:05am View
   
Yes, this is what he meant.
adriancs at 18-Oct-12 20:17pm View
   
Use a timer on 2nd pc to check the database for changes periodically to detect any updates from 1st pc.
adriancs at 18-Oct-12 8:54am View
   
You can pass the value to next page in several ways. You can pass it by using SessionState.
Just change this:
ViewState["dt"]
to this:
SessionState["dt"]
the you can access the answers on the next page.
adriancs at 18-Oct-12 8:48am View
   
you can change this
date1.ToString("MM/dd/yyyy");
to any format you like. For example:
date1.ToString("yyyy-MM-dd HH:mm:ss"); or
date1.ToString("MM/dd/yyyy HH:mm:ss");
-------------------------------
You can change this
if (DateTime.TryParseExact(clientInputDate , "dd/MM/yyyy", dateFormat,
to
if (DateTime.TryParseExact(clientInputDate , "yyyy/MM/dd", dateFormat, or
if (DateTime.TryParseExact(clientInputDate , "dd/yyyy/MM", dateFormat,
adriancs at 18-Oct-12 8:34am View
   
Reply to your message: "he must be in hurry :)"
haha... your answer is correct. :)
Mine is just a joke. ^^ I'have deleted my answer anyway.
adriancs at 18-Oct-12 8:11am View
   
how do you "bind the event handler"?
adriancs at 18-Oct-12 8:10am View
   
I think that simply a grammar mistake and the sentences sounds to be like this:
......but its not Firing. Any suggestion?
adriancs at 18-Oct-12 8:04am View
   
can u post some of the content inside the text file?
adriancs at 18-Oct-12 7:31am View
   
+1, can u display your code??
adriancs at 18-Oct-12 7:27am View
   
You did not specify what kind of file. excel? csv?
and this:
mouse click, double click and move
is another question.
adriancs at 18-Oct-12 7:23am View
   
You want from this
dd/MM/yyyy
to
MM/dd/yyyy
isn't it?
adriancs at 18-Oct-12 7:00am View
   
I modify the above code. I replace the throw exception if with MessageBox.Show() and Response.Write().
I replace this:
throw new Exception("clientInputDate is not a valid recognised date format.");
to this:
// WinForm
MessageBox.Show("clientInputDate is not a valid recognised date format.");
// ASP.NET
Response.Write("clientInputDate is not a valid recognised date format.");
adriancs at 18-Oct-12 6:55am View
   
I can execute the code with no exception. What is the exception throwing?
adriancs at 30-Apr-12 7:16am View
   
Hey, dude. Thanks you very much for the hint. My problems is solved now. The service can be accessed. I have updated my question in which about access the web service from localhost. Can you please give some more guide? I have extended my question above. Really thanks for your help.
adriancs at 8-Jun-11 20:19pm View
   
Deleted
Reason for my vote of 5
cool, nice. this will be very helpful. thanks
adriancs at 18-Apr-11 4:05am View
   
http://www.bouncycastle.org/csharp/
has the source code of the said cryptography engines, but it yet not a complete wrapper. I'll try to figure out and make it as a wrapper.
adriancs at 17-Apr-11 23:35pm View
   
I'll try again to move around in google. thanks
adriancs at 17-Apr-11 23:34pm View
   
I found this > http://www.bouncycastle.org/csharp/
thanks anyway.
adriancs at 11-Apr-11 2:10am View
   
I was initially thinking of creating a game which the game will be controlled by C# standard commands/codes, and this will replace the used of mouse and arrow key from keyboard.
 
for example a multiplayer war strategy game (Creating a Tank unit in game), user has to keyin:
 
Tank t1 = new Tank();
t1.location = new point(5,10);
this.controls.Add(t1);
 
then, a tank will appear on screen, ready for fight. This is same to move and attack.
A game for C# programmer. ;p :)
 
So, this make me think of a way to capture user command codes.
After some consideration, processing real command codes will lead to several unpredictable and uncontrollable situations. Therefore, I decided to use "Switch/Case" to capture user keyin codes to perform action.
 
I don't know the game will be interesting or not. Just a little spark of idea. It may be done, and might not.
 
However, truly appreciate the info that you gave me. thank you, SA.

Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid