(in real i have more joins)
View Complete Post
how can i auto select paraten listview item on selecting child listview item?
I am a longtime .NET developer but for big applications and services. This is my first asp.net project and I have chosen MVC. I have a need for nesting a ListView within a ListView. In this simple catalog app, I have EF 4 Entities that are Categories, SubCategories, ItemTypes, and Items.
My goal is to display a 5 column layout of SubCategories with their ItemTypes below them in a ViewPage. I did just fine with it done out in C# as server directives such as:
var subcats = Model.SubCategory.ToArray();
var nrSubCats = subcats.Count();
var rows = (nrSubCats/5) + (((nrSubCats % 5) > 0) ? 1 : 0);
for (var row = 0; row < rows; row++)
<div style="width: 100%; float: left; clear: right;">
var start = row * 5;
for (var i = start; (i < start + 5) && (i < nrSubCats); i++)
var subcat = subcats[i];
<div style="float: left; clear: right; width: 20%; margin-left: 5;">
foreach (var its in subcat.ItemType)
I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?Any help would be greatly appreciated as I am confused.
I have some nested tracers. The outer one has a category of 'PageTrace' and the inner ones have categories of 'DBTrace'. When I set the outer category source to 'All' I get both traces. When I switch on the inner trace, I just get the inner trace.
So, my question: is there any way to just log the outer trace events, i.e. the Page Traces.
In my organization we use nested groups.
For a particular usage, we have a group (let's assume that
the group name "kuku"), and the names of all the nested groups under it contains
"kuku" as well.
We may assume that no other group in the LDAP has "kuku" in
I need to create a filter which will return all the users
which belong to one of the "kuku"s group.
Obviously, using this filter will bring only the head kukus
(&(&(objectclass=user)(objectclass=person))(memberOf=CN=kuku,cn=.rest of the
How can I use wild card to fetch all users which belong to
For example: (&(&(objectclass=user)(objectclass=person))(memberOf=CN=.*kuku.*))
Edited by Nancy Michell
MSDN Magazine November 2003
MSDN Magazine October 2003
Both the .NET Framework and Windows have some very interesting APIs for creating applications that are capable of updating themselves automatically over a network. There are many advantages to writing your application to update itself like Windows Update does, including convenience for your users, from easier maintenance to network administration. Automatic updates require attention to factors such as discovery, security, and file replacement. In this article, the author covers the BITS API as well as a number of features of the .NET Framework that take care of these facets of auto-updating using the same facilities that the Windows Update uses.
MSDN Magazine February 2003
MSDN Magazine April 2002
I've got this page where I display a 3 level nested gridview. First gridview displays data, 2nd one displays data based on the 1st one's row and 3rd one displays data based on the 2nd gridview. All of this works perfectly, including the edit mode for the 3rd gridview.
The issue comes when I make each gridview collapsible, again, it works fine but when I click on "Edit" on the 3rd gridview all the grids collapse, I can then re-open them and the "edit mode" is still present and I can still save my updated data. But that collapsing thing is quite annoying.
I based a lot of my code from this page: http://www.codeproject.com/KB/webforms/EditNestedGridView.aspx
And I understand how I can fix my issue on a 2 level nested gridview, by simply adding the C# code:
protected void GridView2_RowEditing(object sender, GridViewEditEventArgs e)
GridView gvTemp = (GridView)sender;
gvUniqueID = gvTemp.UniqueID;
gvEditIndex = e.NewEditIndex;
This makes allows me to save the index and prevent it from collapsing when I'm editing. Unfortunately, because I'm actually editing the 3rd gridview, if I code:
when the textbox of the autocomplete extender looses focas the auto complete extender stops the returning any results or even firing events(onpopulating, onpupulated).
Could you please help me fix this.
and I there any way to know when the extender fires the request(please provide code example if you can).
thanks a lot.
hello every one
i bought a hosting plan that allows me to send about 500email/per hour
but my client wish to send about 2000 or 3000 email at a time
is there a way to split them and 500 email per a time automaticly without the need of reloging again every hour
my hosting plan doesn't allow me to create a sql jop or send mails via Sql Server.
any bright ideas ?
Can anyone guide me in the right direction or give an example of How I would accomplish this?
I have this so far but kind of stuck on how to do it programtically if I'm using header and content templates
I have a xmldatasource.. In a nutshell at what point in my code do I need to create a new accordion? does it need to be
in the item_databound handler?
Public Class AccordionTemplate
Dim templateType As String
Sub New(ByVal type As String)
templateType = type
Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) _
Dim ph As New PlaceHolder()
Select Case (templateType)
Dim myLabel As Label = New Label()
myLabel.Text = "Test"
Partial Class Accordion
<MasterProjectTitle>PB test 1</MasterProjectTitle>
I am making use of SharePoint List Batch Updating methodology in order to update the items in bulk. I build the query dynamically for each and every item using StringBuilder and process the data ultimately using 'ProcessBatchData' Method.
Now, I have a requirement where I have to increment a particular field value in the query while iterating through each item for building the query. How can I auto-increment a field value for each item in the batch query?
Hello.. I created a website in which I have an update panel being updated via a timer. This works fine when there's only a few people online.
But now, during live testing, this bogs down the server because we have 30-60 people hitting the website and this page is being updated via the server.