15,741,215 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by DinoRondelly (Top 200 by date)
DinoRondelly
30-Sep-14 18:09pm
View
Why do you have this question in a code block? Have you tried searching google before posting?
DinoRondelly
15-Jul-13 19:40pm
View
Deleted
INSERT INTO table_name (column1,column2,column3,...)
VALUES (value1,value2,value3,...);
DinoRondelly
15-Jul-13 18:48pm
View
whats line 35?
DinoRondelly
13-Jun-13 19:07pm
View
I have to be honest with you i am confused. This seems overly complicated to me, why not just have a clock in clock out button that the users press when they clock in or clock out
The best advice i would give you is to check your access table for the log in time when you log out and compare the dates and save the log out time.
DinoRondelly
13-Jun-13 18:57pm
View
So your problem is saving the log out time on the same day as the long in time?
DinoRondelly
13-Jun-13 18:35pm
View
Is there a question here?
DinoRondelly
21-May-13 13:40pm
View
There are alot of examples you can find with a quick google search, i havent used these at all. You could always post another question on this site aswell good luch !
DinoRondelly
16-May-13 13:18pm
View
Are you asking how do you know what processes are running?
DinoRondelly
1-May-13 18:36pm
View
Where is the stored procedure?
DinoRondelly
26-Apr-13 16:47pm
View
My 5 for this, seems like the answer to me !
DinoRondelly
22-Apr-13 14:13pm
View
Ok what are you stuck on?
DinoRondelly
18-Apr-13 16:39pm
View
+5, more then i would have given for this question, OP should learn something with this answer.
DinoRondelly
18-Apr-13 16:34pm
View
You need to play around with this and try you will find it isnt as hard as you think it is. No effort no reward ...
DinoRondelly
18-Apr-13 14:19pm
View
You mean like put it in a code block?
DinoRondelly
17-Apr-13 15:18pm
View
This should be the answer
DinoRondelly
17-Apr-13 12:55pm
View
What have you tried? Where are you stuck?
DinoRondelly
17-Apr-13 10:59am
View
Dont see a question anywhere, and you might want to look into some kind of naming convention.
DinoRondelly
16-Apr-13 12:28pm
View
echo '<title>'.str_replace("-", " ", basename(realpath('./'))).'</title>';
DinoRondelly
16-Apr-13 12:25pm
View
There should be an accept solution button on the top of my solution,
DinoRondelly
16-Apr-13 12:25pm
View
echo '<title>'.str_replace("-", " ", basename(realpath('./'))).'</title>';
DinoRondelly
16-Apr-13 12:20pm
View
You could accept the solution, and maybe gimme 5 stars????
DinoRondelly
16-Apr-13 12:01pm
View
Try something like this, you might have to play with it a little bit, but basically you the last argument in the str_replace function is the string.
str_replace("-", "", basename(realpath('./')));
DinoRondelly
16-Apr-13 11:54am
View
No one is going to give you source code, source code is what you as a developer write. If you have a specific question related to the code you are writing and need a little help along the way this is the place to ask a question.
DinoRondelly
16-Apr-13 11:50am
View
Fix it?
str_replace("-", "", YourPath);
DinoRondelly
16-Apr-13 11:29am
View
+5, there is more then one lesson here.
DinoRondelly
15-Apr-13 17:23pm
View
What have you tried?
DinoRondelly
15-Apr-13 17:19pm
View
Ya this is worth a 5,
DinoRondelly
15-Apr-13 17:04pm
View
Yes it is about time,
DinoRondelly
15-Apr-13 14:56pm
View
Im gonna have to say you are either spelling it wrong or that column isnt in that table. The error is pretty straight forward.
DinoRondelly
15-Apr-13 14:36pm
View
Your question is not clear, please use the improve question widget.
DinoRondelly
15-Apr-13 14:32pm
View
Whats the error?
DinoRondelly
15-Apr-13 13:44pm
View
Deleted
He is looking for just the time on the 25th or holiday, thats why he has it listed as 4:30.
DinoRondelly
15-Apr-13 11:21am
View
Try a switch statement,
switch($selectedOption)
{
case 'Last month':
break;
}
DinoRondelly
12-Apr-13 14:51pm
View
Try google ...
DinoRondelly
12-Apr-13 13:34pm
View
This is every record or just some? are you sure there arent any duplicates or in your care triplicate records in your table?
DinoRondelly
12-Apr-13 13:30pm
View
Not a question at all, good luck though
DinoRondelly
11-Apr-13 18:25pm
View
Ok well you'll probably have to build that, not sure why though ... good luck
DinoRondelly
11-Apr-13 18:25pm
View
Create the gridview the same way your created the first one and display it ....
DinoRondelly
11-Apr-13 17:05pm
View
This should be the answer ...
DinoRondelly
11-Apr-13 16:14pm
View
Thanks
DinoRondelly
11-Apr-13 15:10pm
View
You are trying to send an email?
DinoRondelly
11-Apr-13 13:43pm
View
+5
DinoRondelly
11-Apr-13 12:29pm
View
Do a isset($_GET['do']) to see its set before you try to get the value. That will at least narrow down the issue
DinoRondelly
11-Apr-13 10:26am
View
Doesnt it return the number of rows that were affected?
DinoRondelly
11-Apr-13 10:20am
View
Nope sorry its in C#, thats what i am developing in at the moment.
This is an online tool that will convert the code for you,
http://www.developerfusion.com/tools/convert/csharp-to-vb/
DinoRondelly
10-Apr-13 14:25pm
View
try
{
Console.Write("Please enter a Url(for example, https://www.google.co.in/search?hl=en&site=imghp&tbm=isch&source=hp&biw=1366&bih=667&q=google&oq=google&gs_l=img.3..0l10.1924.2703.0.2878.6.4.0.2.2.0.163.499.1j3.4.0...0.0...1ac.1.8.img.V1_lpJs3wG4#imgrc=_6DUmv5JQJ6U7M%3A%3BdSaEq8bGAbs38M%3Bhttp%253A%252F%252Fwww.technobuffalo.com%252Fwp-content%252Fuploads%252F2012%252F12%252FGoogle-Apps.jpeg%3Bhttp%253A%252F%252Fwww.technobuffalo.com%252F2012%252F12%252F07%252Fgoogle-to-drop-free-version-of-google-apps-for-businesses%252F%3B1440%3B720): ");
string remoteUrl = Console.ReadLine();
// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
// Download the home page data.
Console.WriteLine(("Downloading " + remoteUrl));
// DownloadData() method takes a 'uriRemote.ToString()' and downloads the Web resource and saves it into a data buffer.
byte[] myDatabuffer = myWebClient.DownloadData(remoteUrl);
// Display the downloaded data.
string download = Encoding.ASCII.GetString(myDatabuffer);
Console.WriteLine(download);
Console.WriteLine("Download successful.");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
DinoRondelly
10-Apr-13 13:22pm
View
No problem, feel free to accept the solution :-)
If you run into any specific problems I encourage you to post another question.
DinoRondelly
10-Apr-13 13:15pm
View
So you'll need a text box (So the user can enter the URL) and a button (To tell your program to download). You shouldnt have to much of an issue its drag and drop from your tool box. The once the user submits the URL use the code you have pasted, with out the Console commands download the file into your Byte array and use the BinaryWriter to create and save your file.
DinoRondelly
10-Apr-13 13:01pm
View
The code sample you provided is from the first link i gave you. Its not a forum its a console application. I literally copied and pasted you code sample and ran it. I dont know what your project is but your question was how to download a file, now you know how. Your getting the data in a Byte array, your going to have to use that to create your file and save it where you need to.
This link will show you how to use a BinaryWriter - http://msdn.microsoft.com/en-us/library/bx149a0k.aspx to create your file from your downloaded data.
DinoRondelly
10-Apr-13 12:54pm
View
Again this worked fine for me, i didnt receive the error you said you were getting.
DinoRondelly
10-Apr-13 12:52pm
View
Dim myDatabuffer As Byte() = myWebClient.DownloadData(remoteUrl)
Your going to need to create the file you downloaded now,
http://msdn.microsoft.com/en-us/library/bx149a0k.aspx
that should help, i am assuming you were able to get the download to work once you entered a valid URL?
DinoRondelly
10-Apr-13 12:50pm
View
whats the url?
DinoRondelly
10-Apr-13 12:48pm
View
You gonna need to look into this as well,
http://msdn.microsoft.com/en-us/library/bx149a0k.aspx
DinoRondelly
10-Apr-13 12:48pm
View
Are you inputting the URL to download from?
DinoRondelly
10-Apr-13 12:44pm
View
There is nothing wrong with that it works fine, i just ran that from my machine with no issues or errors. You should always wrap your code in a try catch
DinoRondelly
10-Apr-13 12:33pm
View
Step through your code and see if the parameter is being set properly. Post your code and ill take a look
DinoRondelly
10-Apr-13 12:30pm
View
Whats not working? Are you getting any errors?
DinoRondelly
8-Apr-13 15:07pm
View
Method and Function are the same
DinoRondelly
5-Apr-13 17:51pm
View
+5 could have gone without the attitude though :-P
DinoRondelly
4-Apr-13 17:13pm
View
Query or Code to share?
DinoRondelly
3-Apr-13 17:38pm
View
+5 .. i just got him a link to an article on this site you gave thousands
DinoRondelly
30-Mar-13 19:52pm
View
Your asking a bunch of developers how to steal software??
DinoRondelly
27-Mar-13 14:15pm
View
You should use google and investigate on your own. The pros and cons of each should be readily available through a well formatted search. I mean unless you want a bunch of links from someone else who does the search for you.
DinoRondelly
26-Mar-13 19:28pm
View
Do me a favor copy everything under my question? minus the string of ????????? and paste it into google and press enter ....
DinoRondelly
26-Mar-13 16:27pm
View
So the user is entering the input in your grid? Then you want to take what they have selected and run a select query?
Select field1,field2 from YourTable where Condition1 = dataGridView1.Rows[i].Cells[1].Text and Condition2 = dataGridView1.Rows[i].Cells[1].Text
something like that?
DinoRondelly
26-Mar-13 16:02pm
View
You need to use the improve question feature and thoroughly explain your problem and what your trying to do. Dont post another question just improve this one. I am having a hard time understand what your trying to do, whats your grid populated with the info from the same table you want to query?
DinoRondelly
26-Mar-13 14:51pm
View
What type of query? Whats the problem you are having? If you have the values from your grid i dont see what your having problems with. The link below will teach you everything you need to know about SQL.
http://www.w3schools.com/sql/default.asp
DinoRondelly
19-Mar-13 17:58pm
View
English please,
DinoRondelly
19-Mar-13 17:24pm
View
What have you tried to accomplish this? No one here is going to do your work, they will help with a specific problem only if you have attempted to solve it on your own.
DinoRondelly
15-Mar-13 13:46pm
View
This isnt very clear, not sure what your trying to achieve.
DinoRondelly
13-Mar-13 18:38pm
View
Your right, i have updated the solution with your remarks, Thanks
DinoRondelly
13-Mar-13 18:33pm
View
Thats the answer to his problem should have posted that link as the solution, +5
DinoRondelly
13-Mar-13 18:31pm
View
Ok well good luck and remember if you run into a specific problem come back and post for help.
DinoRondelly
13-Mar-13 17:54pm
View
LMAO +5 that made my afternoon
DinoRondelly
13-Mar-13 11:13am
View
+5 ... I concur
DinoRondelly
12-Mar-13 16:23pm
View
+5
DinoRondelly
11-Mar-13 16:04pm
View
How do you apply less than or greater than in sql server query?
> greater than ... < less than ... <= less than or equal too ... >= great than or equal too
DinoRondelly
8-Mar-13 16:40pm
View
+5
DinoRondelly
8-Mar-13 15:57pm
View
Whats coming back in $row[0] and $row[1]?
DinoRondelly
8-Mar-13 15:46pm
View
betting that fixes his problem, +5
DinoRondelly
8-Mar-13 15:26pm
View
Read through this,
http://stackoverflow.com/questions/1580017/how-to-replace-multiple-characters-in-sql
DinoRondelly
8-Mar-13 15:23pm
View
No problem glad to help
DinoRondelly
4-Mar-13 18:53pm
View
Solution below ...
DinoRondelly
4-Mar-13 17:43pm
View
Take the number from your drop down and use it as your loop counter ,,,
DinoRondelly
4-Mar-13 10:51am
View
This is the code project where people help with specific issues not get the code for your project where people do your work for you ,,, atleast try it out and come back when you stuck ....
DinoRondelly
1-Mar-13 15:57pm
View
Deleted
Lol - http://stackoverflow.com/questions/267085/converting-sql-to-hql
DinoRondelly
1-Mar-13 12:07pm
View
+5
DinoRondelly
28-Feb-13 10:37am
View
You can start by posting or googling the error ...
DinoRondelly
25-Feb-13 13:12pm
View
What are these so many things that you have tried?
DinoRondelly
21-Feb-13 18:40pm
View
I just did the guy the favor of googling arraylist, looking at the msdn and copying and pasting what they had there
http://msdn.microsoft.com/en-ca/library/system.collections.arraylist.aspx
gotta be worth atleast a 4, he could of just used the google his self, :)
DinoRondelly
21-Feb-13 16:50pm
View
Ok what have your tried? Where are you having problems? Do you have any code that isnt working the way you thought it was? Do you need someone to build this for you cause if so your on the wrong site ...
DinoRondelly
21-Feb-13 16:31pm
View
Just make up the translation who is gonna tell you that its not correct Old McDonald?
DinoRondelly
21-Feb-13 12:19pm
View
LOL this made my morning !!! +5
DinoRondelly
20-Feb-13 15:36pm
View
Thanks SA
DinoRondelly
20-Feb-13 15:36pm
View
Thank you sir !
DinoRondelly
8-Feb-13 18:22pm
View
What are itemgridview.Rows.Count and RecordsPerPage set at?
DinoRondelly
5-Feb-13 9:36am
View
http://www.w3schools.com/sql/sql_in.asp
DinoRondelly
4-Feb-13 14:43pm
View
Are you asking how you can use your list in the where clause of your query?
DinoRondelly
1-Feb-13 17:08pm
View
+5 .. made my day
DinoRondelly
31-Jan-13 19:03pm
View
If the query doesnt return a record then there is nothing to put in the text box and therefor the text box will not have a value, make sense?
DinoRondelly
31-Jan-13 18:58pm
View
So the query doesnt return anything and you are wondering why the text box is empty?
DinoRondelly
31-Jan-13 18:36pm
View
Does the query return anything?
DinoRondelly
31-Jan-13 18:18pm
View
Is this a test? You tell me whats wrong ...
DinoRondelly
31-Jan-13 17:13pm
View
Try what i added as a solution, just copy and paste it and change the connection string, should work.
DinoRondelly
31-Jan-13 17:07pm
View
+4
DinoRondelly
31-Jan-13 16:59pm
View
Touche .. updated solution
DinoRondelly
31-Jan-13 16:34pm
View
+5
DinoRondelly
31-Jan-13 16:29pm
View
Agreed,
DinoRondelly
31-Jan-13 16:24pm
View
I was just trying to help the guy out didnt know i was setting myself up for all this :)
DinoRondelly
31-Jan-13 16:22pm
View
static int multi(int x, int y)
{
int res = x * y;
return (res);
}
DinoRondelly
31-Jan-13 15:31pm
View
glad to help,
DinoRondelly
31-Jan-13 14:48pm
View
Which part?
DinoRondelly
31-Jan-13 14:17pm
View
Sounds easy enough where are you stuck?
DinoRondelly
31-Jan-13 13:18pm
View
Source code is what YOU write, this site is here to help you when you run into a problem writing YOUR source code,
DinoRondelly
31-Jan-13 13:16pm
View
Going to have to read the file either way
DinoRondelly
31-Jan-13 13:15pm
View
So either way you are using a stream reader,
DinoRondelly
31-Jan-13 13:10pm
View
Then use the streamreader and populate your datatable ... how are you going to populate the table if you dont read the file?
DinoRondelly
31-Jan-13 11:51am
View
Thanks
DinoRondelly
31-Jan-13 11:19am
View
Resources for what reading a file or querying a database?
DinoRondelly
30-Jan-13 18:33pm
View
+5
DinoRondelly
30-Jan-13 18:28pm
View
Use a table and at run time query the table and pull out all the relevant holidays, then for future holidays you could just add them to your table
DinoRondelly
30-Jan-13 15:06pm
View
Why not drop empty and just check to see if its null?
If(userphote($curauth) !== null)
{
}
Not sure what version of php you are using but i found this
Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.
http://www.php.net/manual/en/function.empty.php
DinoRondelly
28-Jan-13 16:12pm
View
The problem is going to be in EmailInvoices function somewhere IMO, so however you decide to debug this its your best chance and finding the problem. Might take a bit of work to set up a test application but you should be able to atleast see whats getting stuck and why.
Looking at what you supplied i have no idea whats happen and would be impressed if anyone else could figure that out from that code sample,
DinoRondelly
28-Jan-13 15:59pm
View
I would suggest stepping through it until it fails, its going to be hard if not impossible to determine the problem with the code sample you have provided.
DinoRondelly
28-Jan-13 15:51pm
View
And you are sure its not getting "hung up" in there?
Have you stepped through the code and seen it hung up?
DinoRondelly
28-Jan-13 15:43pm
View
Where is the code thats in this.EmailInvoices()?
DinoRondelly
25-Jan-13 16:41pm
View
Fact .. +5
DinoRondelly
23-Jan-13 14:55pm
View
I dunno do you know Spanish?
DinoRondelly
23-Jan-13 13:13pm
View
No the point was google will help you do this,
DinoRondelly
22-Jan-13 15:37pm
View
My 5 ... above and beyond for sure
DinoRondelly
22-Jan-13 14:18pm
View
A simple google search would have solved this for you ...
DinoRondelly
22-Jan-13 14:17pm
View
+5
DinoRondelly
17-Jan-13 16:24pm
View
Have you tried google?
DinoRondelly
14-Jan-13 18:10pm
View
How about you create a datatable and add you columns and values to it and then use your new datatable as your datasource for your grid ?
DinoRondelly
11-Jan-13 18:28pm
View
Try this one - http://social.msdn.microsoft.com/Forums/is/csharplanguage/thread/7bd92d7d-15c0-4da5-a452-5c397437ecc7
DinoRondelly
3-Jan-13 18:02pm
View
Wow a little harsh but my 5 regardless ..
DinoRondelly
2-Jan-13 15:18pm
View
Where are you stuck?
Have you tried google?
www.google.com
DinoRondelly
2-Jan-13 14:55pm
View
Well i took from his answer that he chooses choice ... to be honest
DinoRondelly
31-Dec-12 15:00pm
View
Thats homework if i have ever seen it, good luck come back when you run into problems
DinoRondelly
31-Dec-12 14:45pm
View
Thank you sir,
DinoRondelly
31-Dec-12 12:59pm
View
Thanks,
DinoRondelly
31-Dec-12 12:31pm
View
for (int i =0 ; i <=dataGridView1.Rows.Count-1; i++)
{
if( i > whatever row you wanted to start on)
{
Do whatever you want
}
}
DinoRondelly
24-Dec-12 14:45pm
View
And have to think, forget that ill just post on here,
DinoRondelly
24-Dec-12 13:37pm
View
Nope, the people on this site will help you with a specific problem and they will be more then happy to help if you get stuck. They will not build an application for you.
But hey it is Christmas you can give it a try, I would however try on my own and if you get stuck return to this site with a specific question that relates to where your stuck.
DinoRondelly
24-Dec-12 12:44pm
View
Do you do alot of programming on your IPhone? You can view the site,post questions and answer them just fine from safari on your IPhone...
DinoRondelly
24-Dec-12 12:35pm
View
Your welcome,
DinoRondelly
21-Dec-12 17:30pm
View
thanks i did
DinoRondelly
21-Dec-12 16:55pm
View
Are you asking a question? Are you getting an error? You dont need the semi colon
if ("Jon".length * 2 / (2+1) === 24 ) ; <- that will cause an syntax error
DinoRondelly
20-Dec-12 16:51pm
View
Couldnt even give me 5 stars hey ...
DinoRondelly
20-Dec-12 15:44pm
View
http://lmgtfy.com/
DinoRondelly
20-Dec-12 15:27pm
View
There are lots of ways to do that what have your tried? Where are you stuck?
If you just play around with it you'll have it in no time,
DinoRondelly
20-Dec-12 14:59pm
View
Code sample for?
I am not sure how your going to deal with the file if you dont have excel sorry, your going to have to research that a little more then i can right now.
DinoRondelly
20-Dec-12 14:54pm
View
Yup that will do it, +5
DinoRondelly
20-Dec-12 12:38pm
View
Did you google this?
DinoRondelly
20-Dec-12 11:57am
View
Did you add the reference to your solution? right click your solution click add reference select the .Net tab and scroll down look Microsoft.Office.Interop.Excel and add it.
DinoRondelly
20-Dec-12 11:29am
View
What exactly are you stuck on? Sorry to break it to you but this is programming your going to have to try. If you get stuck with a specific issue then post that question. You cant ask people on this site to just do it for you. Most of the people here are at work and taking the time to help other people when they hit a road block. They are not here to make your life\Job easier. I think you need to read solution one and really think about what Griff has said.
DinoRondelly
20-Dec-12 11:26am
View
If you dont want to do your homework then switch courses,
DinoRondelly
20-Dec-12 11:09am
View
Have you attempted this? What are you having a problem with?
DinoRondelly
20-Dec-12 11:08am
View
Do have any code anyone can look at to try and figure out the problem?
DinoRondelly
20-Dec-12 10:56am
View
Thanks for the edit I guess I should have giving him the VB code,
DinoRondelly
19-Dec-12 13:52pm
View
Have you looked through the methods of list?
http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx
DinoRondelly
19-Dec-12 13:51pm
View
I am no scientist but i think he is asking for someone to do his project,
DinoRondelly
19-Dec-12 12:01pm
View
Whats the question? Where are you stuck? What have you tried ? I hope the question isnt can someone do this for me ...
DinoRondelly
19-Dec-12 11:58am
View
What is your application doing on start up?
DinoRondelly
13-Dec-12 15:10pm
View
How did you declare lstMessages ?
DinoRondelly
13-Dec-12 11:26am
View
And also lbl1 through lbl10 is a horrible naming convention, everything should have meaningful name.
Example lbl_FirstName
DinoRondelly
13-Dec-12 11:24am
View
And this my friend is programming, your going to have to come up with the logic in your loop.
This should be fairly simple if you just play with it for awhile and try some things.
DinoRondelly
13-Dec-12 10:57am
View
Are all your labels named Lbl1?
Thats your problem ...
DinoRondelly
12-Dec-12 17:26pm
View
Can you not query your universe database through code?
DinoRondelly
12-Dec-12 13:31pm
View
Where are you stuck?
DinoRondelly
12-Dec-12 13:30pm
View
Deleted
So where are you stuck?
DinoRondelly
12-Dec-12 13:12pm
View
Whats the question?
DinoRondelly
12-Dec-12 12:49pm
View
http://stackoverflow.com/questions/55828/best-practices-to-parse-xml-files
DinoRondelly
11-Dec-12 13:15pm
View
Thats just crazy enough to work +5
DinoRondelly
11-Dec-12 12:40pm
View
This link is from a form from 2009 so should be able to help you
http://social.msdn.microsoft.com/Forums/ta/sqldataaccess/thread/2de6f7f1-eb75-48b8-88ac-fa0e47b6dbd8
You should specify what version in your original question,
DinoRondelly
10-Dec-12 17:30pm
View
Become one with gridview like the great programmers before you
DinoRondelly
10-Dec-12 17:07pm
View
read the link below
http://msdn.microsoft.com/en-us/library/yy6y35y8.aspx
Also
cmd.Parameters.Add(New SqlParameter("@DesignID", " Am I missing any value here?"))
Datatype????
Also Spacing
"Delete From Design_Parameters where DesignID = @DesignID "
DinoRondelly
10-Dec-12 16:51pm
View
Also your quotes are messed up in your statement which is another reason this would fail
DinoRondelly
10-Dec-12 16:48pm
View
When you run
cmd.ExecuteNonQuery()
you are executing the query so to have you message box come up after this makes no sense because you are asking them if they are sure they want to delete.
What is ? supposed to be? I would imagine you want to have you id value there.
DinoRondelly
10-Dec-12 12:40pm
View
Programming?
DinoRondelly
8-Dec-12 13:14pm
View
Depending how you set up your email class you would do something like this
Declare your email object
Dim ret as New myEmail()
Declare your list of email objects
Dim myEmailList as New List(of myEmail)
Add your values to your emial object
ret.emailTo = textboxEmailTo.Text
ret.emailFrom = textboxEmailFrom.Text
..and so on
Add your email object to your list of email objects
myEmailList.Add(ret)
then just do a foreach loop on your list pulling the values back out sending the email
For each email in MyEmailList
Dim message As New MailMessage()
Dim smtpClient As New SmtpClient()
message.From = email.emailFrom
message.To.Add(email.emailTo)
and so
Next
The codes not perfect youll have to play with it but this should point you in the right direction
DinoRondelly
7-Dec-12 18:30pm
View
You should store the list in either the SessionState or ViewState
DinoRondelly
7-Dec-12 18:18pm
View
give me code is now a solution?
DinoRondelly
7-Dec-12 18:08pm
View
The gird is bound to the table so i am not pulling any values out
DinoRondelly
7-Dec-12 12:34pm
View
Ok well you dont need the rd.Read = true you can just use if rd.Read then
i dont understand why if Item_no is an int value why you are trying to pull it out with a string cmbItemName.SelectedValue.ToString()
drop the ToString on cmbItemName.
Then check to see if your query is returning anything with rd.hasrows then drop in
'Take off the single quotes around @selectedItemNo
Dim str As String = "SELECT Item_name FROM Item_Master where Item_no = @selectedItemNo"
'Get rid of the .ToString
command.Parameters.AddWithValue("@selectedItemNo", cmbItemName.SelectedValue)
'Check to see if your reader has any rows
if rd.HasRows then
'While there are rows (Should only be one)
while rd.Read
'Add your reader value
txtItem_code.Text = rd("Item_no").ToString
End While
End If
Change your code to that and let me know if you need anymore help.
DinoRondelly
7-Dec-12 10:50am
View
Try changing If rd.Read = True Then to if rd.HasRows then
if rd.HasRows then
while rd.Read
txtItem_code.Text = rd("Item_no").ToString
End While
End If
DinoRondelly
7-Dec-12 10:19am
View
trying taking off the ToString() on cmbItemName.SelectedValue.ToString()
DinoRondelly
6-Dec-12 18:29pm
View
Good point and it looks like the Bank of India no less !!
DinoRondelly
6-Dec-12 18:28pm
View
Reading the file is easy
Reading the file
using (StreamReader sr = new StreamReader("YOURFILE"))
{
//Do what you want
}
DinoRondelly
6-Dec-12 11:51am
View
is Item_no a int value in your table?
DinoRondelly
5-Dec-12 13:46pm
View
Where are you stuck?
DinoRondelly
5-Dec-12 11:08am
View
So you are still getting the error - If rd.Read = True Then statement (Error converting data type varchar to numeric.) and you are having an issue with your connection?
DinoRondelly
5-Dec-12 11:08am
View
Deleted
So you are still getting the error - If rd.Read = True Then statement (Error converting data type varchar to numeric.) and you are having an issue with your connection?
DinoRondelly
5-Dec-12 10:45am
View
txtItem_code.Text = rd("Item_no").ToString()
DinoRondelly
4-Dec-12 11:01am
View
Your welcome,
DinoRondelly
4-Dec-12 10:52am
View
Did you try adding the spaces like in the solution below?
DinoRondelly
4-Dec-12 10:42am
View
Where (RentalTbl.NumberPlate = '" + Param1 + "')", conn);
DinoRondelly
4-Dec-12 10:40am
View
Did you try putting @Param one in single quotes?
DinoRondelly
3-Dec-12 17:44pm
View
Deleted
Database?
DinoRondelly
3-Dec-12 17:33pm
View
What do you need help with?
Show More