|
I'm also interested in that!
Please, let me know if it works for you.
All the best,
Martin
|
|
|
|
|
Hello all,
One of my projects requires that I come up with functionality that allows a user to enter some keywords for a product and then suggests others that might be useful as well (for web-based searches). I was thinking Google probably had an API like this, but I don't see anything. Anyone know of something like this?
Thanks,
Will
|
|
|
|
|
Check out the Amazon.com website. I know that when I view a book they always show a list of more books that users also bought related to the topic of that book.
Nathan
|
|
|
|
|
Hello,
I'm looking to be able to iterate over all open windows and if i find one that meet a creitria then i want to 'bind' with it and control it programatically.
What i'm looking to eventually do is have the program pick a running Internet Explorer session and then
take control over it.
I've been looking a Interop and have seen articles on how to get the handles of windows but i
don't see how i can then 'take over' those windows.
Any suggestions will be greatly apreciated
|
|
|
|
|
|
Hi,
I am using Microsoft Enterprise Library 3.0 in visual studio 2005.
I am developing web application.
In my presentation/UI layer,i am having a code like this...
protected void Page_Load(object sender, EventArgs e)
{
AppConfigBO objAppConfig = new AppConfigBO();
DataTable dtLLInstance = new DataTable();
dtLLInstance = objAppConfig.RetrieveLivelinkInst();
gvwLLInstance.DataSource = dtLLInstance;
gvwLLInstance.DataBind();
}
In my Business layer, i am having a class called AppConfig which has the code as follows:
public DataTable RetrieveLivelinkInst()
{
DataSet dsLLInstanceList = null;
try
{
OracleDatabase objOraDB = DatabaseFactory.CreateDatabase() as OracleDatabase;
OracleCommand objOraCmd = objOraDB.GetStoredProcCommand("SDV_GET_LLINST_PROC") as OracleCommand;
//Executing the SP
dsLLInstanceList = objOraDB.ExecuteDataSet(objOraCmd);
}
catch (Exception ex)
{
throw ex;
}
return dsLLInstanceList.Tables[0];
}
NOW WHEN I RUN MY APPLICATION,AN ERROR IS THROWN AT THE FOLLOWING LINE:
OracleDatabase objOraDB = DatabaseFactory.CreateDatabase() as OracleDatabase;
ERROR IS :
An error occurred creating the configuration section handler for dataConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. (C:\Projects\SubseaDigitalVideos\SubseaDigitalVideoWebApp\SubseaDigitalVideoWebApp\web.config line 6)
MY CONFIGURATION SECTION IN WEB.CONFIG FILE IS AS FOLLOWS:
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"/>
<section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"/>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</configSections>
I will be grateful if you kindly help me.
Thanks in advance,
Shyam
|
|
|
|
|
|
You say you are using EntLib 3.0 yet your config file references 2.0 assemblies. This what it should look like for EntLib 3.1.
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />>
Open the config file in the configuration app and reset it.
only two letters away from being an asset
|
|
|
|
|
Hi Mark Nischalke,
Thanks for coming forward to help me...
Eventhough i changed version to 3.1.0.0, the same error is throwing at the same line..
What to do? Any idea???
Shyam
|
|
|
|
|
Hi all,
I've got a Timer which is set to fire an event if another event isn't received in time. If the other event is received, then the Timer is reset. For some reason if the other event is halted then the Timer event never fires! If the other event is never received, then the timeout Timer fires perfectly.
Is there any obvious reason why a Timer should fail to fire?
|
|
|
|
|
Hello,
If you are using a timer in the same thread like the delegates, it will block your timer from fireng I guess.
This can be the effect if you are working in the UI thread and use a Windows.Forms.Timer.
Make a try with System.Threading and System.Timers Timer.
Hope it helps!
All the best,
Martin
|
|
|
|
|
Spot on, many thanks! System.Timers.Timer did the job.
Stupid .NET....
|
|
|
|
|
Hello,
Steve_Harris wrote: Spot on, many thanks! System.Timers.Timer did the job.
Glad I could help!
Steve_Harris wrote: Stupid .NET....
No comment on that, cause I think I know how you meant it!
All the best,
Martin
|
|
|
|
|
Martin# wrote: No comment on that, cause I think I know how you meant it!
I came to C# from C++ / MFC, and although there are a lot of things to like with it, I still don't understand some of the design decisions. For example, first of all you could only derive a class from a single base class. Then people complained so they tacked on Interfaces to let you do it! Well rather than tack on interfaces, why not just let you do multiple inheritance properly?! And in the case of this Timer, implementing a Windows.Forms timer that blocks in the Windows.Forms thread is just daft.
Ah well, got to live with it!
Steve.
|
|
|
|
|
Steve_Harris wrote: I still don't understand some of the design decisions. For example, first of all you could only derive a class from a single base class. Then people complained so they tacked on Interfaces to let you do it! Well rather than tack on interfaces, why not just let you do multiple inheritance properly?!
That's a good point. But I think a lot of discusion where made because of that!
Steve_Harris wrote: And in the case of this Timer, implementing a Windows.Forms timer that blocks in the Windows.Forms thread is just daft.
Don't think so! Wait untill you have to deal with invoking your UI, whcih is not neccesary with the Forms.Timer.
Steve_Harris wrote: Ah well, got to live with it!
Yep
All the best,
Martin
|
|
|
|
|
Hi,
I could come up with a lot of reasons...
What kind of Timer ?
what other event ?
using threads ?
show us the relevant part of the code !
|
|
|
|
|
I create a project with C# lauguage in structure C/s
I want to save a affix to the oracle database, the affix format is doc txt and others
when I open it in another computer it can not be opened. what is problem?
what can I do?
the code is:
if (tbContent1.Text!="")
{
string FileName=this.tbContent1.Text.ToString().Trim();
FileStream fs=new FileStream(FileName,FileMode.OpenOrCreate,FileAccess.Read);
byte[] MyData=new byte[fs.Length];
fs.Read(MyData,0,(int)fs.Length);
fs.Close();
ds=link.SelectDataBase("select * from BuleAffiB","temptable");
DataRow MyRow=ds.Tables[0].NewRow();
MyRow["affixname"]=FileName;
MyRow["sequeno"]=SequeNo;
MyRow["affcontent"]=MyData;
ds.Tables[0].Rows.Add(MyRow);
ds=link.UpdateDataBase(this.ds,"temptable");
}
string strSQL="insert into NewsB (title,launcher,launchdate,content,mem,sequeno,validdays,validrange,importance) values ('"+CurrentTitle+"','"+CurrentLauncher+"',to_date('"+CurrentDate+"','YYYY-MM-DD HH24:MI:SS'),'"+CurrentContent+"','"+CurrentMem+"','"+SequeNo+"','"+CurrentValidDays+"','"+CurrentValidRange+"','"+Currentimportance+"')";
//insert a record try
{
if (link.ExecuteUpdate(strSQL)>0)
{
MessageBox.Show("succssful!","showMEssage",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
link.Dispose();
|
|
|
|
|
hello in frontend i have 3 buttons one is previous,next,finish ,
and also i have one record(label control).
if clicks on next button i want second record so i want code for this.
iam using vs.net2003 and c#.
srinivas
|
|
|
|
|
Maintain a counter, and increment/decrement the counter for the row.
|
|
|
|
|
the i with static variable
read data from database
in a datatable
and then
datatable[i][0]
|
|
|
|
|
Hi!
I want to get the "Company Name" which is entered by user when windows is being installed, i.e. which can be seen in General tab under "Registered to:" label, when we right click and select My Computer's properties.
I got the local user name through Environment.UserName but cant figure out how to get the "Company Name" of local user...i want to display this information on About dialog box of my application.
Hope i was able to clarify my question, thanks in advance...
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
You can get it from the registry
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization"
|
|
|
|
|
F16I,
Thanks alot, it solved my problem...
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
|
Hi all,
How can I convert point to inch or centimetre in C#?
Thanks,
Priyank
|
|
|
|
|