I have 50 suppliers in the list..i have to show first 10 suppliers as normal and after that i have to put drill down option for remaining 40 suppliers..
Any answers please
I am using c#.net with an Oracle database.
I want an example of how a dropdown list will fetch values from database name. I want to know how to make an Oracle connection in c#.
I have searched the net but have not got exactly what I require.
plz add comment tag to understand me.
Thank you
I'm trying to do a RSS reader but I have no idea on how to identify the unread items. For example what should I do when I refresh my list to prevent having duplicates?
I started a project and added it to hg, but I want to take *.cs file under version control only, so,i have to add bin, obj, sln, suo,_resharper folder etc to ignore pattern, ,how to let hg only monitor certain kind of file like white list? How to do that in Subversion?
Tables:
Product: [id, name, brand_id, is_published]
Brand: [id, name, is_published]
Awards: [id, name]
ProductAwards [product_id, award_id]
How do I select the list of PUBLISHED brands along with the number of AWARDS of brand's products that are Published.
I am cool with all the part except issuing the "is_published" restriction when counting Awards.
I hope this is clear; can anyone just suggest where to dig?
What is the best way to store the cards and suits in python so that I can hold a reference to these values in another variable?
For example, if I have a list called hand (cards in players hand), how could I hold values that could refer to the names of suits and values of specific cards, and how would these names and values of suits and cards be stored?
Often, I am building an array by iterating through some data, e.g.:
my_array = []
for n in range(1000):
# do operation, get value
my_array.append(value)
# cast to array
my_array = array(my_array)
I find that I have to first build a list and then cast it (using "array") to an array. Is there a way around these? all these casting calls clutter the code... how can I iteratively build up "my_array", with it being an array from the start?
thanks.
I know that when a row is selected in list view, the function onListItemClick() is called.
I want to know which function is called when a row in ListView is highlighted(not selected).
If i submit my ajax form from jQuery, and do
print_r($_FILES);
i get a list of files uploaded,
but if i do something like this
$add_form->sound_file->isUploaded();
or
$params = $this->_getAllParams();
print_r($params);
i don't get my file in zend parametars, and i don't get it uploaded!?
Mayb the problem is with he context beng ajax?!
I am in search of a programming language with the below characteristics:
it has existing, large and supportive/helpful community
it has consice syntax
it's fast
it can create standalone apps with no dependencies, totally portable and compatible with windows
I can easily set event listeners of almost anything
I can easily do automatically every action possible
has as extensive as possible ready-to-use commands list
works easily with winxp, win com, firefox, etc api
for example, I want to detect that I have clicked a specific button in a webpage in firefox or in a third-party app in windows:
I want to do this easily, not with writing 100 lines of code
Vim is my editor of choice, and I feel I am above average in my use of it. I do recognize, though, that the feature list of vim is huge. With this in mind, I was wondering what features you vim users out there use on a regular basis.
I need a shallow copy of an java ArrayList, should I use clone() or iterate over original list and copy elements in to new arrayList, which is faster ?
Every time i pass some parameters to a JavasScript or jQuery functon, i use some random letters. What are the correct letters for the corresponding variable types?
function(o){} for example is for a object. But what are the other letters? Do someone have a list of those?
I'm currently trying to perform a deep crawl within a small list of sites. To accomplish this, I updated conf/domain-urlfilter.txt with the domains of the sites I wish to scrape, which worked nicely. However, I found that not only were the links crawled at every step filtered, but the outlinks captured from each page crawled were filtered as well.
Is there a way to avoid filtering captured outlinks while still filtering crawled URLs?
It's been asked a million times, its like this.
Say Invoice is the base class and InvoiceHistory is the class that simply inherits from Invoice.
When I do something like
invoiceList = session.CreateCriteria(typeof(Invoice)).List();
I get everything from Invoice (that I want, plus everything from InvoiceHistory).
Do I need to have an InvoiceBase and create derived versions for Invoice and InvoiceHistory?
Actually what I want - simple DB with simple User Interface. Like MS Access, but for web and it can be without Dragn n Drop, but described with markup language.
For example if I want to create list report, then i need to write something like:
<table query="SELECT * from mytable"></table>
It needed for simple data applications. In that kind application no programming logic required. Just working with DB. Changing DB data and showing it.
I need to parse C#, Ruby and Python source code to generate some reports. I need to get a list of method names inside a class.
What parsers for those languages are provided?
For C#, I found http://csparser.codeplex.com/Wikipage , but for the others, I found a bunch of parsers using those languages, but not the language parsers of them.
Here is my problem.
I need more than one row from the database, and i need the first row for certain task and then go through all the list again to create a record set.
$query = "SELECT * FROM mytable";
$result = mysql_query($query);
$firstrow = //extract first row from database
//add display some field from it
while($row = mysql_fetch_assoc($result)) {
//display all of them
}
Now, how to extract just the first row?
Is there a way to make the GNU C Preprocessor, cpp (or some other tool) list all available macros and their values at a given point in a C file?
I'm looking for system-specific macros while porting a program that's already unix savvy and loading a sparse bunch of unix system files.
Just wondering if there's an easier way than going hunting for definitions.
You can do this:
.info
{
padding: 5px ;
}
Or, if you know it will be a div, you can do this
div.info
{
padding: 5px ;
}
So, when there's a nested list.. you can do this..
div.info ul.navbar li.navitem a.sitelink
{
color: #f00;
}
Or you can do this
a.sitelink
{
color: #f00;
}
Readability aside, which is better for the browser to parse/run?
I have an object allStudents=Dictionary()
In Linq how would I get a list of all the students who are male? (student.Gender=="m") from all the Classrooms?
Ian
I've just found in my java project this code snippet:
List<IssueType> selectedIssueTypes = new ArrayList<IssueType>();
for (Object item : selectedItems)
selectedIssueTypes.add((IssueType) item);
How do you think, can this style be used?