|
jashimu wrote: I don't know how status indicator works.
I mean like a simple red-light/green-light indicator that (usually) doesn't change very frequently.
|
|
|
|
|
I'm not clear exactly what you are after, but have you thought about using WPF which provides you with animation techniques which may suit your needs?
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
_Maxxx_, you are right but the application is in Winform not in WPF. if it was then I could use story board to do that. thanks for your suggestion anyway.
|
|
|
|
|
I want to question how to embed variable value in sqldatasource session parameter in c#. This is mycode:
default.aspx:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Ora2011 %>"
ProviderName="<%$ ConnectionStrings:Ora2011.ProviderName %>"
SelectCommand="SELECT ID, CATEGORY_NAME FROM (:INVENT_CATEGORY)">
<SelectParameters>
<asp:SessionParameter Name="INVENT_CATEGORY" SessionField="INVENT_CATEGORY" Type="String"/>
</SelectParameters>
</asp:SqlDataSourc>
C#:
protected void Page_Load(object sender, EventArgs e)
{
string table = "V_INVENTORY"
Session["INVENT_CATEGORY"] = table;
}
When i run this program, i get error "invalid table name". Why i can't embed variable into sqldatasource from session parameter. Thanks for your help
|
|
|
|
|
This would appear to be an ASP.NET question.
I must get a clever new signature for 2011.
|
|
|
|
|
|
Hi,
I have to return corresponding country currency from a function.
I have a disctionary like Dictionary<string,list<string>> that will contain like:
Dictionary<string,list<string>> str = new Dictionary<string,list<string>>();
List<string> currency= GetCurrency();//Will return all currency stored in database.
str.Add("Currency",currency);
Now currency list contains only currency. I would like to add corresponding country also.
I know that I can create datatable,change the dictionary value to DataTable/DataSet type and return..
Datatable is heavy object...So is there any other approach to achieve this?
Many thanks.
|
|
|
|
|
Hi,
1.
you should use PRE tags to show code snippets, and HTML-escape all < and > and & signs to make them show properly.
2.
this would be pretty close to what you want:
Dictionary<string,string>currencies=new Dictionary<string,string>();
string country="Belgium";
string currency="Euro";
currencies[country]=currency;
EDIT recased some /EDIT
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
modified on Tuesday, February 22, 2011 12:48 PM
|
|
|
|
|
your really going to post code that mixes case of local variables to help answer a question?
|
|
|
|
|
yes it seems I have been on the wrong casing track. All fixed.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
hi! m doing a project in c#. if i say 'D drive' it opns my d drive if i say 'notes' it opns the folder notes from d drive.(i have add the 'D drive' and 'notes' in gramer)
but i want to make gramer general i mean if it is in som other pc and should knw what is all in D drive(Drive can b change i use it for my convenient). and what ever the user say it should opn it. how can i make grammer general. one solution is whnever i run the program it should load the contents of D drive. but how? any other solution?
hope it is clear.
|
|
|
|
|
Good luck. There is a huge amount of effort by very intelligent people to work on voice recognition systems.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I just want to second what Mark Nischalke said in his post.
If you are working on voice recognition, this is hard. If you want to use the built-in libraries (such as those that come with Windows 7) then processing the requests with a general grammer is also hard
By hard I mean its the sort of thing requires a team of researchers. To my knowledge no one has got natural languge processing right yet, even the voice recoginition libraries aren't 100%.
|
|
|
|
|
You're talking about a natural speech interface between the user and the computer, like Hal in 2001. You can't afford the hardware, and the software just ain't possible right now. the closest we've come is that Wizard computer that played jeopardy last week, and it was purpose-built to play jeopardy, and do nothing else.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
hmm thn is it possible to control the volum of VLC player or media player by voice command in c#?
means if i say 'increase the volum' volum should b increascd.. or vice versa..
|
|
|
|
|
You haven't been listening, now have you...
You just changed the application requirement, the problem is still very much the same.
|
|
|
|
|
Dave Kreskowiak wrote: You haven't been listening, now have you...
Of course he hasn't, that's the problem; speach recognition
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
aeman wrote: but how? any other solution?
You'd first need a dictionary of words that get recognized, and no, even the hardcore speech-dictation solutions only recognize the words that it knows.
If it was easy, it would be standard functionality. It's neither.
I are Troll
|
|
|
|
|
Don't listen to all the people saying how hard it is, and how you'll never do it.
The iPhone is a good example of this working - it understands a limited range of commands but does make an attempt at recognising names of bands, albums and artists.
e.g. you can say "Play Beatles" - the "Play" is predefined but (one imagines) the "Beatles" is generically algorithmised. (yes, I made up that word)
I think you are right in your idea - here's how I would think about the approach.
Assuming you are looking at a disc. Collect the names of all the top level folders and files, and process the names to sylabalise them (e.g. encode them into a series of syllables) in a similar way to SoundEx.
Then when a command is issued by the user (say, "Open Fred") you first match the command "Open" which is fixed, then compare the sound "Fred" against all of the folders/files previously encoded. And choose the closest match.
Good luck.
And when you have it developed, commercially released, and are rolling in the money, don't forget to come back here and post an "I told you so" message
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
thanks for the hope. i did som work. it now load all the directories of my drive and opn that one which one i say. like if i say 'd drive' it opn it thn whaterever directory is say in D drive it opns that. but only folders.now m trying to control the other files like .doc, .mp3 ets. hope i will do this soon.
and i dont bother -ve things from others i only get +ve. once my project will complete i will defiantly post here. for others help.
|
|
|
|
|
can i get the code for your project
|
|
|
|
|
Hi guys,
I have explained my probs here..,
this problem is occuring in IE browser only...,Mozila its working fine...,
Plz click on the following url in IE browser
http://www.justtrade.in/Portfoliotracker/Default.aspx[^]
U will see "Registered User" link plz click tht one..., u will get a login page, with out changing the browser url...,becoz its opening in an iframe...,
so, the login page also in an iframe...,
here if i am trying to login a user...,if the user is authenticated...,
i am using his user name as session...,and redirecting him to home page...,
but, if the valid user login also, its redirecting him to login page only...,
this problem in IE browser only...,Mozila its working fine...,
can u plz tell me y its not working in IE? and how to solve this one?
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Could you please explain what this has to do with C#? It looks to me that it would be better in the Web Development forum.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Hi,
I have to display an message to the user when he is uploading a file through File Upload,
In clear, if the file he is uploading is open in his desktop, at that time only i need to display this message like "Close the File Before upload" or etc, if the file he is uploading he is not open in his machine, it has to upload without throwing any message..
The code am used for file uploading is like this...
private void BtnBrowseClick(object sender, RoutedEventArgs e)
{
OpenFileDialog file1 = new OpenFileDialog { Multiselect = false, Filter = "Text File|*.txt" };
if (file1.ShowDialog() == true)
{
new FileInfo(file1.FileName);
using (Stream s = file1.OpenFile())
{
TextReader reader = new StreamReader(s);
reader.ReadToEnd();
txtFileName.Text = file1.FileName;
txtFileName.IsEnabled = false;
}
}
}
So in this code, i have to display an message, in case the file he is uploading is open in his machine, so the file uploading is not possible in that case..
So could u tell me how can i do this...
|
|
|
|
|
you first would have to define "open". is it "open" at the functional level (like Notepad or Word is showing the text content), or is it the state the file has from File.Open() to File.Close()?
In the former case, it may or may not be doable. Notepad reads an entire text file and closes it while you can edit it (Proof: open a .txt file and try and delete it while you can edit it in Notepad); Word OTOH keeps the file locked, so you can't delete it while editing.
In the latter case, a File.Delete() would fail. So you could do this:
- make a copy of the file;
- try and delete the original;
- if that succeeds, it was not in use, and you should rename the copy to the original;
- if it fails, the file was not entirely free (either in use, locked, write-protected, ...).
Conclusion: there is no general solution.
Remark: if the upload and the edit could be combined in a single app, then of course that app would know what it is doing, so it could prohibit an upload while editing.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|