15,666,723 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 Python questions
View Javascript questions
View C++ 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 Ryan Zahra (Top 164 by date)
Ryan Zahra
25-Jun-19 2:26am
View
That's what I was thinking too, but I asked maybe someone has already been through this.
Ryan Zahra
31-Oct-16 16:22pm
View
You're right about that, my mistake! Thanks a lot for your help! I'll follow this and will test it out more. Thanks again!
Ryan Zahra
31-Oct-16 16:18pm
View
Thanks for the quick answer. Changing the criteria will effect my results so most probably I would be going for the custom dialect. But before that, isn't there any "simpler" way to just add the date for my query?
Ryan Zahra
22-Feb-16 6:15am
View
Thanks for clarifying!
Ryan Zahra
22-Feb-16 6:06am
View
Thanks! This looks like to be my solution as I tried it out and it worked for me. Could you explain to me why you had to change TextBoxFor to TextBox for the FarmName? In my original code it was working, however, in your solution, I had to change it like yours in order to have the farmName posted back. Thanks a lot for your help!
Ryan Zahra
22-Feb-16 4:38am
View
From experience, I would create a log file and dump all variables there to make sure that all variables contain the desired values.
Ryan Zahra
2-Jul-15 4:01am
View
Thanks for the detailed explanation. I know that I need to dispose of all resources however I believe that I'm still missing something here but I don't know what I'm missing. I used the handle.exe tool and sure enough, the process that is locking my file is iisexpress.exe, since I'm testing this on my local machine. At this point, I suspect that it could be something that I'm not disposing from the itextsharp library, however, I don't know what. Any pointers would be really helpful! Thanks!
Ryan Zahra
1-Jul-15 8:08am
View
Ok, I updated the question to include the full code listing.
Ryan Zahra
1-Jul-15 8:00am
View
The file is just 75KB. Regarding flushing the stream to disk, I did a quick test and included a memory stream flush before closing the PdfReader. However, this still resulted in the same problem. Regarding the filename, I just a different filename each time. The code I pasted here is trimmed down to show only the required code.
Ryan Zahra
1-Jul-15 7:28am
View
I'm sure that the method is being called only once because this method will fire on a button click event. I check again by adding a breakpoint at this code and the execution enters this piece of code only once.
Ryan Zahra
1-Jul-15 7:19am
View
As far as I know I believe that I'm closing all streams in the correct order.
Ryan Zahra
30-Mar-15 13:21pm
View
Thanks again :)
Ryan Zahra
30-Mar-15 12:19pm
View
Sorry for the long delay but I couldn't test this out earlier. Clearly, you were 100% correct. I just needed to include the namespace before the class name and worked like a charm. If you want, add your reply as a solution so that I can mark it as an answer. Thanks again!!
Ryan Zahra
29-Mar-15 13:24pm
View
In my case, even the namespace is incorrect. It's like the website is looking for the class in a wrong namespace.
Ryan Zahra
23-Feb-15 11:18am
View
Thanks for your reply.
Ryan Zahra
23-Feb-15 11:15am
View
Sorry, didn't know this. So, I can't ask hardware details in code project?
Ryan Zahra
4-Feb-14 4:07am
View
Can't do that because cmd.ExecuteScalar() is returning a DBNull value. Therefore, it will give me an invalid cast exception.
Ryan Zahra
4-Feb-14 3:03am
View
Hi Prasad,
Thanks for your reply.
1. The expected result should be a date and time, however, I'm receiving an empty result (DBNULL)
2. I've already did that, and replaced the ?s with actual values and it worked fine in MSACCESS
Ryan Zahra
7-Oct-13 6:15am
View
You should search for ajax in asp.net...there are loads of tutorials online
Ryan Zahra
7-Oct-13 6:14am
View
Can you please explain more exactly what you're trying to do?
Ryan Zahra
7-Oct-13 6:11am
View
Ok then, what about doing it server side, through ajax?
Ryan Zahra
7-Oct-13 6:07am
View
You can still use the same javascript on the fileupload control.
Ryan Zahra
7-Oct-13 6:02am
View
Why aren't you using a FileUpload control?
<asp:FileUpload ID="FileUpload1" runat="server" />
Ryan Zahra
7-Oct-13 5:43am
View
The rowguid is mainly used to solve page-split clustered indexes
Ryan Zahra
24-Jul-13 2:42am
View
Thanks :)
Ryan Zahra
24-Jul-13 2:20am
View
Welcome :)
Please mark your question as solved if I solved your answer. Thanks!
Ryan Zahra
24-Jul-13 2:12am
View
Check the answer given here: http://stackoverflow.com/questions/1001973/how-to-tell-if-a-thread-has-exited-successfully
It states exactly how and when a thread is stopped.
Ryan Zahra
24-Jul-13 2:03am
View
If you still want to use the thread, why not just set the text of the label directly from the thread?
Ryan Zahra
16-Oct-12 3:59am
View
Are you sure that the database column is set to an integer?
Ryan Zahra
16-Oct-12 3:34am
View
Could you debug your code and check the returned value of HowzeEducationId?
Ryan Zahra
31-May-12 1:02am
View
When I tried this, I got the following error:
JOIN expression not supported.
Remember that I am using Microsoft Access
Ryan Zahra
31-May-12 1:01am
View
When I tried this, I got the following error:
Syntax error (missing operator) in query expression 'tblDJs.ID = tblEventDJs.djID
LEFT JOIN tblVenueDJs ON tblDJs.ID = tblVenueDJs.djID
LEFT JOIN tblEvents ON tblEvents.ID = tblEventDJs.eventID
LEFT JOIN tblEvents ON tblEvents.ID = tblVenueDJs.eventID
LEFT JOIN tblVenue'.
Ryan Zahra
8-Jul-11 3:10am
View
Exactly. The first time is always the most difficult until you get the hang of it. Once you do it at least once, it's pretty straight forward.
Ryan Zahra
8-Jul-11 3:10am
View
Thanks a lot :)
Ryan Zahra
6-Jul-11 10:33am
View
Just one more question though...
In your example, you're using the interface IMPILayer. What should you include? I'm trying to include the .tlb file in my solution but still not having access to the interface. I could not even be able to find the namespace.
Ryan Zahra
6-Jul-11 10:24am
View
Thanks! So this is exactly just like calling a normal COM object.
Ryan Zahra
6-Jul-11 10:12am
View
Thanks for your reply. Do you have any examples please?
Ryan Zahra
6-Jul-11 10:03am
View
Thanks for your reply. I know how to use COM object in C++ using the CoCreateInstance function, however I'm still lost as how to use the COM+ object in C++.
Ryan Zahra
29-Apr-11 7:59am
View
What are you trying to do? do you have any code to show?
Ryan Zahra
29-Apr-11 7:24am
View
http://forge.mysql.com/wiki/MySQL_Internals_File_Formats
Ryan Zahra
29-Apr-11 6:53am
View
Can we see the code for the derived form where you are adding the controls?
Ryan Zahra
29-Apr-11 6:14am
View
Same thoughts. My 5.
Ryan Zahra
29-Apr-11 6:09am
View
Thanks :)
Ryan Zahra
29-Apr-11 6:09am
View
Perfect answer! My 5
Ryan Zahra
29-Apr-11 6:08am
View
My 5! Good as well!
Ryan Zahra
17-Mar-11 10:27am
View
In my case, support is not a problem as I'm using this for Windows Server 2003 SP2 and over. In your opinion, which function should I use and why?
Ryan Zahra
17-Mar-11 10:11am
View
Agreed, but which should I use? Which one is the best?
Ryan Zahra
17-Mar-11 10:08am
View
According to MSDN both functions are secure. See http://msdn.microsoft.com/en-us/library/ms647466(v=VS.85).aspx
Ryan Zahra
10-Mar-11 8:43am
View
Debug your code! Check the values that are passed to the business logic and the values that are loaded from the database.
Ryan Zahra
10-Mar-11 5:43am
View
Before starting any code, you should learn to use google first. Good luck :)
Ryan Zahra
10-Mar-11 5:35am
View
Make sure that the database cannot accept null values. Also, before adding the row to the dataset, make sure the newRow does not contain null values.
Ryan Zahra
10-Mar-11 5:29am
View
My 5
Ryan Zahra
10-Mar-11 5:25am
View
It means that there is a null value in oldRow which is being assigned to the newRow. This means that in your database you have a null value.
Ryan Zahra
10-Mar-11 5:20am
View
I'm sorry but I can't help you more than I've already did. I mean I don't have all your tables and all your source code in order to keep helping you. I'm sorry...
Ryan Zahra
10-Mar-11 5:15am
View
What do you mean by "show error in other tables"?
Ryan Zahra
10-Mar-11 5:00am
View
Use the below code with caution! Make sure that the columns are the same when filling in the newRow object!
if (!found)
{
DataSet ds = ((System.Data.DataSet)(((System.Windows.Forms.BindingSource)listBox2.DataSource)).DataSource));
object[] oldRow = drv1.Row.ItemArray;
object[] newRow = new object[3];
newRow[0] = oldRow[0];
newRow[1] = oldRow[0];
newRow[2] = oldRow[1];
dt.Rows.Add(newRow);
listBox2.DataSource = ds;
}
Ryan Zahra
10-Mar-11 4:48am
View
Can you change the column type to string at least until you fetch the dates from the database and then change it back to DateTime?
Ryan Zahra
10-Mar-11 4:44am
View
Did you include #pragma once in stdafx.h?
Ryan Zahra
10-Mar-11 4:43am
View
What are the columns and data types of the stopBindingSource and RouteBindingSource?
Ryan Zahra
10-Mar-11 4:41am
View
You should get those dates as strings and then convert it to a date. You should then split the date to get the hours, divide that by 24 and you'll have the days, hours minutes and seconds.
Ryan Zahra
10-Mar-11 4:29am
View
Is the binding for id and value of both listboxes the same?
Ryan Zahra
10-Mar-11 4:28am
View
Yes you need to include it. But you need to include it only once in the whole project!
Ryan Zahra
10-Mar-11 4:20am
View
Replace that line of code with this one:
DataSet ds = ((System.Data.DataSet)(((System.Windows.Forms.BindingSource)listBox2.DataSource)).DataSource));
Ryan Zahra
10-Mar-11 4:15am
View
What have you done so far? Please first try to do some research and then come here with code and the error that you have.
Ryan Zahra
10-Mar-11 4:11am
View
Please show me the code that you're using where this error is showing
Ryan Zahra
10-Mar-11 4:01am
View
If I understood you correctly, do following modifications:
if (!found)
{
DataSet ds = (DataSet)listBox2.DataSource;
ds.Tables[0].Rows.Add((drv1.Row.ItemArray);
listBox2.DataSource = ds;
}
Ryan Zahra
10-Mar-11 3:54am
View
How do you expect the DateTime variable to store those times? The hour variable cannot be greater than 24 hours because that would make a whole day. Thus those time values are incorrect. Anyway, what are you trying to do with those "times"? You should convert your "hours" into days in order to have that value. Or if you still want to have those "time" values, consider storing them in a string.
Ryan Zahra
10-Mar-11 3:48am
View
You must help me to understand your code in order for me to help you. How are you binding the data source? What is the data type of your data source?
Ryan Zahra
10-Mar-11 3:36am
View
What did you try? Where do you have the exception?
Ryan Zahra
10-Mar-11 3:27am
View
Ok, but how are you doing the binding?
Ryan Zahra
10-Mar-11 3:22am
View
What is the data source that you're using to bind with the list box?
Ryan Zahra
10-Mar-11 3:17am
View
you must replace 'myDiv' with the id of the div that you are using
Ryan Zahra
10-Mar-11 2:32am
View
You're welcome :)
Ryan Zahra
10-Mar-11 1:53am
View
Thanks :)
Ryan Zahra
9-Mar-11 8:41am
View
What have you done so far?
Ryan Zahra
9-Mar-11 8:38am
View
Instead of hiding the tab, you can change the tabcontrol.SelectedIndex to a tabpage of your liking.
Ryan Zahra
8-Mar-11 11:21am
View
Preferably you use the IDE in which you will be developing your project. This way, you would find them ready when you start coding.
Ryan Zahra
8-Mar-11 10:16am
View
Please explain exactly what you want to do. Is the "other" website your website or a third party website? Also what have you done so far? do you have any code?
Ryan Zahra
8-Mar-11 10:05am
View
Cheers :) You still got my 5 as you were spot on!
Ryan Zahra
8-Mar-11 10:02am
View
Put a try catch block. See the error message and reply back.
Ryan Zahra
8-Mar-11 9:44am
View
IDE examples:
Visual Studio for C# and VB.Net
Eclipse and Net Beans for Java
Ryan Zahra
8-Mar-11 8:52am
View
You should have asked all that from the start...
Anyway, I myself, use the following method:
-> When the client clicks on the image, I would show a hidden div.
-> This div contains the required question and two buttons (Yes/No)
-> If the user clicks 'No', I would hide the div.
-> If the user clicks 'Yes' I would call the delete function.
Ryan Zahra
8-Mar-11 8:37am
View
This should help you more:
http://www.tizag.com/javascriptT/javascriptconfirm.php
Ryan Zahra
8-Mar-11 6:58am
View
What do you want to do exactly?
Ryan Zahra
8-Mar-11 6:56am
View
My bad...use wsprintfA instead of sprintfA
Ryan Zahra
8-Mar-11 5:44am
View
Write a cookie: http://msdn.microsoft.com/en-us/library/aa287547(v=VS.71).aspx
Read a cookie: http://msdn.microsoft.com/en-us/library/aa287533(v=VS.71).aspx
Before launching the webpage, create the cookies.
When the webpage is being loaded, search for the cookies.
Ryan Zahra
8-Mar-11 5:20am
View
Your problem was that you defined it twice. I'm glad that you solved the problem.
Also if my answer solved your question, please mark my answer as the solution. Thanks :)
Ryan Zahra
8-Mar-11 5:18am
View
Glad you found your mistake :)
Since you're initializing your font on the load event, it would be safer to have your font in the website itself. Thus when loading the font, make sure that the path is found in a folder in the website itself.
I'm against having clients install the font themselves. Its a bit of hassle for a normal user to install a font just to view one particular website. Make sure to avoid it!!
Ryan Zahra
8-Mar-11 4:48am
View
Modify your stdafx.h:
// include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif
//Do you really need your dll to use IE features?
//If no, remove the below 3 lines.
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT</pre>
Ryan Zahra
8-Mar-11 4:35am
View
can i see the file stdafx.h? you definitely have something wrong in there.
Ryan Zahra
8-Mar-11 4:21am
View
How do you know that its working when your code is not even compiling? Please try my suggestions and reply with the result.
Ryan Zahra
8-Mar-11 4:18am
View
Can you give the link to the previous question to get a better idea of the problem?
Ryan Zahra
8-Mar-11 4:16am
View
"windows.h" and "commctrl.h"
Ryan Zahra
8-Mar-11 4:09am
View
Did you "#include <commctrl.h>"
Ryan Zahra
8-Mar-11 4:02am
View
What's not working? Do you an error message?
Ryan Zahra
8-Mar-11 3:57am
View
Thanks! I appreciate it a lot!!!
Ryan Zahra
8-Mar-11 2:44am
View
When you create a folder in your solution, you can see it immediate after being created by using the windows explorer. More than that I cannot help sorry.
Ryan Zahra
8-Mar-11 2:27am
View
I'm not 100% sure. However you can create the folder with the above code. Then in the solution explorer you must press the button to "Show All Files". This will show you all the files in the solution. You must then manually right click on the file and select "Include In Project". May I ask why you want such functionality?
Ryan Zahra
8-Mar-11 2:19am
View
The add a file to the solution, right click your solution, point to add, and click add folder.
Ryan Zahra
8-Mar-11 2:06am
View
What have you done so far?
Ryan Zahra
8-Mar-11 1:59am
View
What have you done so far? Do you have any code to show?
Ryan Zahra
8-Mar-11 1:34am
View
Excellent explanation. You have my 5. Also thanks for following up my answer as yesterday I lost my connection to the internet. Had a problem with the ISP.
Ryan Zahra
7-Mar-11 5:41am
View
What code have you done so far?
Ryan Zahra
7-Mar-11 5:40am
View
Thanks :)
Ryan Zahra
7-Mar-11 5:02am
View
That code is getting the installed software, however its not getting the file version...
Ryan Zahra
7-Mar-11 4:56am
View
I think you forgot the link :p
Ryan Zahra
7-Mar-11 4:38am
View
You're right. Thanks for clearing it up :)
Ryan Zahra
7-Mar-11 4:29am
View
I tested with "TabStop" and "False" and it worked fine...
Ryan Zahra
7-Mar-11 4:27am
View
Some questions:
Is pParamUTF16Str a wide string?
Are you compiling your code in UNICODE?
Can you debug your code and check the value stored in shellExecuteInfo.lpParameters?
Are you sure that javaw.exe accepts UNICODE characters?
Ryan Zahra
28-Feb-11 10:47am
View
raw_OpenRecordset = executes the sql select statement and stores the retrieved data into the record set rs
fs->get_item = gets the selected column
in the while loop, while not End Of File (EOF) and not Begin Of File(BOF), the rows are retrieved in valx and valy. These are then printed on screen and the record set is moved to the next record.
Ryan Zahra
25-Feb-11 3:33am
View
Which part exactly you want further explanation?
Ryan Zahra
18-Feb-11 10:10am
View
Maybe this could help you out:
http://www.codeproject.com/KB/miscctrl/touchscreenkeyboard.aspx
Ryan Zahra
18-Feb-11 9:57am
View
Do you really need to convert the dll from vc 6 to vs 2008?
What I mean is that you could still use the dll from vs 2008 :)
Ryan Zahra
16-Feb-11 10:26am
View
Debug your program and add a watch to the dataset. check if there is a table in the dataset and also check if the table contains any rows.
Ryan Zahra
16-Feb-11 10:01am
View
Do you expect other people to do the work for you? What have done so far? Have even started? Should what you've done so far in order to help you and not to do your work.
Ryan Zahra
16-Feb-11 9:32am
View
You have to replace:
#import "G:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll"
with:
#import "G:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll" rename("EOF", "EndOfFile")
Ryan Zahra
16-Feb-11 4:21am
View
You should try renaming the EOF by doing the following:
#import "G:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll" rename("EOF", "EndOfFile")
Ryan Zahra
15-Feb-11 4:19am
View
Can you give me the exact error code?
Also make sure that the path to the dll and the path to the tlh are correct
Ryan Zahra
31-Jan-11 8:45am
View
Did you try different versions of IE? That is did you try IE6, IE7, IE8 ?
However, if you want a really good menu, go for a CSS menu which will always display correctly whatever the browser.
Ryan Zahra
31-Jan-11 6:51am
View
Please explain further what you're trying to do. Also post your code so far.
Ryan Zahra
29-Jan-11 5:03am
View
You're welcome :)
Ryan Zahra
28-Jan-11 9:00am
View
Good to hear :)
Ryan Zahra
28-Jan-11 5:08am
View
Could you post the error message that you got both from the C++ and C# environments?
Ryan Zahra
28-Jan-11 3:44am
View
From the code that you gave me, there is no code that saves any data to the database.
Ryan Zahra
28-Jan-11 3:18am
View
I want the vb code not the asp.net code
Ryan Zahra
27-Jan-11 11:02am
View
I can't understand what you really need to know...maybe you could explain a bit better please.
Ryan Zahra
27-Jan-11 11:00am
View
Hi Ubaidh Sayed,
You must call the Check Changed event of the radio buttons. Then check if the radio button is checked, and then execute your code.
protected void rbDelete_CheckedChanged(object sender, EventArgs e)
{
if (rbDelete.Checked == true)
{
System.IO.File.Delete("ImagePath");
}
}
protected void rbCover_CheckedChanged(object sender, EventArgs e)
{
if (rbCover.Checked == true)
{
//don't know what you mean by setting image as cover page but this is where you code must be placed
}
}
Ryan Zahra
27-Jan-11 9:42am
View
I cannot tell you why because I dont have all your code. Please post your code in order to help you out.
Ryan Zahra
27-Jan-11 9:30am
View
Dim ts is holding the date and time difference. This means that ts can hold a difference of less than a day. This means that ts can even hold a number of hours.
In your first if statement, this first condition is to check if the number of days is 1 or less. Thus having between 0 and 24 hours. In the else if statement, you are checking if the number of days is greater than or equals to 30 days.
I'm asking you to debug you code in order to know the value of ts and which if statement the program will execute.
Ryan Zahra
27-Jan-11 9:18am
View
Are you debugging your code? Where is the problem with your data?
Ryan Zahra
27-Jan-11 9:10am
View
Now its obvious, but it was never specified...
Ryan Zahra
27-Jan-11 9:03am
View
Totally agree with you!!
Ryan Zahra
27-Jan-11 9:02am
View
Are you working on a windows application or a web application? Please provide more information!!
Ryan Zahra
27-Jan-11 8:58am
View
Dim txtFDate = CType(DetailsView1.FindControl("fdate2"), TextBox)
Dim txtTDate = CType(DetailsView1.FindControl("tdate1"), TextBox)
Dim fDate As Date = CDate(txtTDate.Text)
Dim tDate As Date = CDate(txtTDate.Text)
Dim ts As TimeSpan = tDate.Subtract(tDate)
Dim days As Integer = ts.Days
Ryan Zahra
27-Jan-11 8:45am
View
As Minute said, DataGridView is in the Windows.Forms namespace, so you should try Imports System.Windows.Forms
Ryan Zahra
27-Jan-11 8:44am
View
My mistake, confused it with DataTable...sorry
Ryan Zahra
27-Jan-11 8:39am
View
I must ask why you are opening the connection and not always closing it, apart from not being in a try catch finally block.
Also try to debug your code and watch the variables value. What are the values of tdate and fdate? Are you sure they are storing the date correctly? Also what is the value of days?
Ryan Zahra
27-Jan-11 8:24am
View
Where's you code? What have you done so far?
Ryan Zahra
27-Jan-11 8:23am
View
Can I see the whole method instead?
Ryan Zahra
27-Jan-11 6:47am
View
You made my day lol
Ryan Zahra
27-Jan-11 6:45am
View
Does the user exist in the client's database?
Ryan Zahra
27-Jan-11 6:37am
View
It's difficult to explain COM in a few lines. Here's a good tutorial to get you started:
http://www.codeproject.com/kb/com/CCOMThread.aspx#COM_APARTMENTS
http://www.codeproject.com/KB/COM/CCOMThread2.aspx
Also I recommend reading the book Inside COM by Dale Rogerson which is very simple to read and understand. I've learned COM from that book.
Ryan Zahra
27-Jan-11 5:52am
View
Worked for me.
Please make sure that the cell index is pointing to the correct column. That is if the lblCategory is found in the first column, the cell index is 0, if the lblCategory is found in the second column, the cell index is 1 and so on.
Ryan Zahra
27-Jan-11 5:24am
View
This might help you with the saving to excel
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/ef11a193-54f3-407b-9374-9f5770fd9fd7
Ryan Zahra
27-Jan-11 5:18am
View
Excellent reply! 5+ from me
Ryan Zahra
27-Jan-11 5:04am
View
Is IGreet registered correctly? How are you registering it?
Is IGreet2 inheriting from IGreet?
Ryan Zahra
27-Jan-11 4:28am
View
Thats they way to go ;)
Ryan Zahra
27-Jan-11 4:24am
View
Thanks :)
Ryan Zahra
27-Jan-11 4:22am
View
I agree 100% with Dalek. Unless you know the gender, you'll never be 100% accurate.
Ryan Zahra
27-Jan-11 4:16am
View
Thanks ;)
Ryan Zahra
27-Jan-11 3:51am
View
Can you please add more detail as to what you want to accomplish?
Frame 10 and Frame 11 are trying to load an htm web page.
Ryan Zahra
26-Jan-11 11:26am
View
Depends on the contents of the page and what you're actually trying to load. Keep user experience of the website in mind.
Ryan Zahra
26-Jan-11 10:51am
View
Thanks :)
Ryan Zahra
26-Jan-11 10:12am
View
Your user control must inherit all the methods available for the ajax ComboBox
Ryan Zahra
26-Jan-11 8:24am
View
That's very strange indeed. At least you've got it working :)
Ryan Zahra
26-Jan-11 7:49am
View
In the following code, you are creating a new instance of ImageButton. The ID of the button definitely doesn't hold your file extension.
"ImageButton btnObj = new ImageButton();
string FileExt = btnObj.ID.ToString();"
Can you please specify where you are storing the file extention?
Ryan Zahra
26-Jan-11 7:46am
View
What browser are you using? Have you tried different browsers?
Ryan Zahra
26-Jan-11 7:39am
View
Sorry...my mistake
Ryan Zahra
26-Jan-11 7:00am
View
what do you see when you type "http://localhost" in your browser?
Also, if you navigate to "http://0.0.0.0/WebApplication/Default2.aspx?accNo=3333333333333" does the web page load?
Ryan Zahra
26-Jan-11 6:46am
View
I'm using the following code:
string url = System.Web.HttpContext.Current.Request.Url.Authority;
After the line of code executes, the variable url holds the following: "localhost:64848"
string host = System.Web.HttpContext.Current.Request.Url.Host;
After the line of code executes, the variable host holds the following: "localhost"
Can you please show me your code.
Ryan Zahra
26-Jan-11 6:38am
View
First of all, are you using a button or an image button?
Also, what are you trying to do here? "string FileExt = btnObj.ID.ToString();"
Ryan Zahra
26-Jan-11 6:34am
View
Each button click event must call a function where the processing should be done. Your code should look something like this:
void MyFunc(string buttonID)
{
//insert function code here
}
private void btnOne_Click(object sender, EventArgs e)
{
Button b = (Button)sender;
MyFunc(b.Name);
}
private void btnTwo_Click(object sender, EventArgs e)
{
Button b = (Button)sender;
MyFunc(b.Name);
}
private void btnThree_Click(object sender, EventArgs e)
{
Button b = (Button)sender;
MyFunc(b.Name);
}
Ryan Zahra
26-Jan-11 6:28am
View
Can I see your code please?
Ryan Zahra
26-Jan-11 5:51am
View
Quite an easy question to reply to :)
Your answer is good too..everyone has his/her approaches.
Show More