|
|
I have to write a method named
GetAttributes("keyh%", object type)
in this the (object type) should be such that
setobjecttype("codeservices", "subservices")
Actually I have to search the keywords starting with "keyh" along with that i have to provide the objecttype as codeservices or subservices or i can provide both so that the keywords starting with "keyh" can be in codeservices objecttype or subservices objecttype or can be in both ....
I can provide the objecttype as codeservices & subservices & search in both or i can provide only one objecttype ..... & search the keyword in that
or both the objecttypes can be null and the keyword can be searched only based on keyh% it depends upon the client who uses it he can search the keyword based on like keyh% which gives all the keywords starting with keyh% irrespective of the objectype or he can give only one objecttype as coreservices and search the keyh% in the coreservices objectype or he can give both the coreservices & subservices as objectype and search the keyword starting with keyh% in both the objecttype it depends on the clients wish who enter it
How to do this can anyone help me..........
Thanking you in anticipation
I hope i have explained clearly about my query incase u cant understand pls mail me.... ASAP
Regards
Aruna
-- modified at 15:13 Sunday 11th June, 2006
|
|
|
|
|
Please use punctuation. If the sentences you write can be distinguished from each other, someone might understand what you are trying to say.
I could make out that you are trying to make some sort of search. What is it you are searching?
---
b { font-weight: normal; }
|
|
|
|
|
Ya you are correct am doing a search....
Let me be more clear to you...
I should have a method in which the client raise a query to search an attribute like "keyp%" which displays all the keywords from my database starting with 'keyp'
The tree view of mine will be just like this
Coreservices (root)
Subservices1 subservices2
(immediate children of the root)
careactivities1 careactivities2
(immediate child of (immediate child of
the subservices1 ) the subservices2)
The root ,the immediate children of the root and the immediate children of the subservices has some attributes each..
The client has to get the attributes starting with something for example like he wants to search an attribute starting with "keyp%"
& also the client can give (keyp%, Coreservices,Subservices1) which means that the attribute starting with keyp must be in the careActivities1 under the Subservices1
else the client can give only (keyp%, CoreServices) which means that the attribute starting with keyp must be in any of the careactivites under the coreservices root
else the client can give only (Coreservices , Subservices) which means that all the attributes under the specified subservices 's careactivities will be displayed.
Like this the client can give his own input of passing one or more inputs at runtime (its the wish of the client he can pass one, two or three inputs at runtime) & search for the attribute in the treeview...
I hope so that am clear now if not pls let me know i will try to make it more obvious...
Thanking you in anticipation
Hint:: I hope so that whether it can be done by dynamic query else using if statement in SQL but am not so clear on how to do these and also am more particular in performance issues...
Regards
Aruna Gopalakrishnan
-- modified at 6:10 Sunday 18th June, 2006
|
|
|
|
|
how can i make a button like O circle
MD_NADA
|
|
|
|
|
|
A foreach loop uses an enumerator. If you change the collection, the enumerator is invalidated, so you can't change the collection while you are looping it.
---
b { font-weight: normal; }
|
|
|
|
|
But if i try changing it outside the loop, it wont recognize the 'table' in the:
foreach (DataTable table in xmlFile.Tables)
Line.
Can you make a suggestion to make this work?
|
|
|
|
|
Yustme wrote: But if i try changing it outside the loop, it wont recognize the 'table' in the:
foreach (DataTable table in xmlFile.Tables)
Line.
What do you mean? What does removing an item have to do with the loop if you do it outside the loop?
Why are you using a loop anyway? You are removing the same table regardless of what table you are referencing in the loop.
---
b { font-weight: normal; }
|
|
|
|
|
This is outside the loop:
foreach (DataTable table in xmlFile.Tables)
{
some code....
}
mydataset.remove(table) <-- table does not exist in the current context.
Because its outside the loop.
Im using a loop to iterate through all tables. I think i have to remove it by index.
The names are all the same anyway.
|
|
|
|
|
Use a for or while loop, or store the references to the tables to be removed in a list.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All. I must write an windows app where i must be able to send a message to a pager,E-mail and an SMS to a cell phone. I managed to get the e-mail working, but not such luck with the SMS or sending a messgae to a pager. I am not getting much help with the help files. Is there anyone that can perhaps help me?
Thanks
|
|
|
|
|
You'll need to find a Telecoms company which lets you send SMS or pager messages. Some Telco's offer such a service via a WebService, whilst others rely on other means.
Google hard enough, and you might find a free WebService, if not... be prepared to pay $$$$ for the privilige.
|
|
|
|
|
Hey...
I'm looking for an image comparison algorithm.
I have two same-sized images which I would like to compare, where speed is of the essence.
I have tried google, and articles in codeproject, but not much success...
Can anyone link me to an article, or a website where I can start learning?
Thanks,
Shy.
|
|
|
|
|
What kind of comparison? Exact? Then simple pixel by pixel comparison will do. Have a look at this[^] article series to find out how to do this fast.
|
|
|
|
|
Well... I'm looking for a quick way to compare two images.
I'm comparing the last screen capture to the current capture, in order to check for changes.
I guess it's kind'a like motion detection.
Robert Rohde wrote: Have a look at this[^] article series to find out how to do this fast.
I already read this article series... Well... Most of it
I also came across this[^]article showing how to detect motion, but the source code archive was corrupted, and he uses an AForge class which I couldn't figure what is doing, or where to find it.
Help...?
|
|
|
|
|
int var = 0;
int one = 1;
int six = 6;
hurt =+ one;
if (var = six)
label1.Text = "text..";
I am kinda new to this...
I want to make it so when you click on a button, var increses in value and when it finally reaches 6, to close the program. I know what I have is no where close to 'right' or even the easiest way, it's just easier for me to understand.
Thanks
Hengy
I like Pie
|
|
|
|
|
try
if(var == six)
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi
I need some help
I have a bit of code that i got from the tutorials on writing to text file.
Problem is they used binary formatter.I dont want the text to be encrypted in binary.I want to see what has been written to txt.
int id = int.Parse(textBox1.Text);
string name = textBox2.Text;
//create a new employee object
Employee mp = new Employee(id, name);
stream = File.Open("EmployeeInfo.txt",FileMode.Create,FileAccess.ReadWrite);
BinaryFormatter bformatter = new BinaryFormatter();
bformatter.Serialize(stream, mp);
stream.Close();
If someone could please help me out
|
|
|
|
|
|
I think that you are reading the wrong tutorial. That code is not writing a text file, it's serializing an object to a binary file.
Use the File.CreateText method to create a text file.
---
b { font-weight: normal; }
|
|
|
|
|
if you are just writing to a normal txt file just use normal File create operations.
string fname = "C:\\test.txt"
using(StreamWriter sw = File.CreateText(fname))
{
sw.WriteLine(data_to_be_written);
}
|
|
|
|
|
StreamWriter sw = new StreamWriter(@"c:\filename.txt",false);
sw.WriteLine((char)15); /// set char size while printing
sw.WriteLine("My name is: Jey");
sw.Close();
If u execute this code the text "My name is: Jey" inside the txt file. in "C Drive" and the file name "filename.txt"
Jey
|
|
|
|
|
In VS2005, whenever I write "using System.Windows.Forms.VisualStyles;" I get an error saying that 'VisualStyles' is not part of the 'System.Windows.Forms' namespace. Any ideas? Thanks.
|
|
|
|
|