|
|
Hi All,
I need to implement the locking mechanism in my use case, I don't now how many ways to
achieve locking in ADO.Net to resolve the concurrency issues.
Thanks for advance reply..
Thanks,
Ranga
|
|
|
|
|
|
Hey guys,
as you may have noticed while reading this precisive title, I don't know where to get started with my problem. Any search has been unsuccessful so far, most likely because I don't know what to search for!
I would like to restrict the list of possible child elements within a control. To clarify this statement: I want the same behaviour for self-written webserver controls as it is for microsofts Table, TableRow and TableCell class.
It would be great, if a specific control is ONLY visible within another specific control.
Let me show you some example markup to illustrate what I just wrote:
<... some other markup ...>
<mcl:MyParentControl>
<!-- MyChildControl is ONLY visible right here, inside the MyParentControl -->
<mcl:MyChildControl />
</mcl:MyParentControl>
<!-- MyChildControl is NOT visible here, because we're outside the MyParentControl -->
<... some other markup ...>
As already mentioned, I don't even know where to get started, so it would be great if someone could push me in the right direction (I really don't need a working complete solution).
EDIT: Well, I should have written that I already figured out, how to make the MyChildControl appear in the MyParentControl (as the only control available).
I did this, by adding some attributes (ParseChildren, PersistChildren) to the MyParentControl class and set its Property ChildControls ( List<MyChildControl> ) to the inner default property of the control.
I now need MyChildControl NOT to appear outside of MyParentControl.
Thanks in advance!
modified on Tuesday, October 14, 2008 4:52 AM
|
|
|
|
|
Just for your interest:
You can realize such a behaviour by implementing a control builder for the control whichs child types should be restricted. It goes like this:
1. You derive a class from System.Web.UI.ControlBuilder (e.g. MyControlBuilder)
2. Now you have to assign the ControlBuilderAttribute to the control class and pass the type of MyControlBuilder to the attributes constructor
3. You implement/override the appropriate methods inside MyControlBuilder (which could be GetChildControlType and so on).
4. You are happy now!
Regards
mik
|
|
|
|
|
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
What to do
thanks in advance
|
|
|
|
|
Still this question is incomplete and it is quite tough to tell you because of what you are getting this error. You need to give the code which is producing this error.
Apurva Kaushal
|
|
|
|
|
Ignore
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
So what does this tell us? Not only do you post the same question twice, you don't take notice of any advice given. Therefore what help do you expect?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
kankeyan wrote: What to do
As I said, try stepping through the code in debug mode and see what is causing the error. And try reading the replies people give.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Same post!!!Check answer in last post
Cheers!!
Brij
|
|
|
|
|
Sorry this error comes under while loading the page in rowdatabound it showing the errorlike this
System.ArgumentOutOfRangeException
Specified argument was out of the range of valid values.
Parameter name: index
|
|
|
|
|
kankeyan wrote: Sorry this error comes under while loading the page in rowdatabound it showing the error
You were told "You need to give the code which is producing this error". You have not done this. You have just indicated what area the code may be in.
|
|
|
|
|
..and started posting to the C# forum instead!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
kankeyan wrote: What to do
Fix it.
|
|
|
|
|
I have to show the grid view header in the left side of the control instead of on the top.
Can anyone help me.
|
|
|
|
|
you can use Table which having Two Column, First For Header and second one will holde your grid .
cheers,
Abhijit
|
|
|
|
|
Currently i m using asp.net with c# (framework 2.0).
in my page i have a datagrid with many dropdownbox. when user select a drop down value it goes to the first line and user again want to scroll down each time (here autopostback=true). HOW TO FREEZE THE SCROLLER..
below i have shown how i designed the table and the datagrid scrolling
<->table<->
<->tr<->
<->td<->
<->div id="DIV1" runat="server"<->
-------DATA GRID WITH MANY DROP DOWN BOX-------
<->/div<->
<->/td<->
<->/tr<->
<->/table<->
help me - KARAN
|
|
|
|
|
In the "<%@ Page >" tag of your page put the tag MaintainScrollPositionOnPostback="true".
That will let the page return to its original scroll position after a postback.
Hope this helps.
|
|
|
|
|
thanks for ur reply bcozian. but the coding which u mentioned is just controlling the page scroll. i need to control a particular gridview dropdownbox's which is placed inside a table. please go through my post exactly.
waiting for your replies friends... help me - KARAN
|
|
|
|
|
Dear friends
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
I don't know what to do please help me.
thanks in advance
|
|
|
|
|
kankeyan wrote: I don't know what to do
Try debugging your code and see what causes the error.
Also, a decent subject will get more response - most people are posting here because they need help.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
kankeyan wrote: Dear friends
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
what does it mean ? just your are getting a Exception. Be specific while post some question. where did get this exception, where are the Line of code.
kankeyan wrote: Subject:please hlp
Never put subject like that .
cheers,
Abhijit
|
|
|
|
|
sorry friends
please forgive me
|
|
|
|
|
A quick google bring sup lots of results:
Googleresults
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|