|
Hi,
I run SQL Server 2005 I think Professional edition. It is locally, on my development PC, the same PC that I use to do my C# coding.
I will try your advice over the weekend. I even feel like wiping my whole PC and just install SQL Server and Visual Studio. Then I can know for sure if something is wrong or not. My PC has so much installed stuff which also makes me think it slows down bigger applications like SQL Server.
Thanks
Brendan
|
|
|
|
|
Hello,
I want to create a custom control, more specifically a custom table row control. The control shall have the following structure:
<Custom:TableRow Access="admin">
whatever child controls in here
</Custom:TableRow>
Depending on the Access property I want to show or hide the table row.
The problem is as follows: Visual Studio (.NET 2.0) doesn't allow me to nest child controls between the opening and closing tag of the custom control (in design view). How can I resolve this issue? And furthermore, how can I render the child controls when implementing the Render method void Render(HtmlTextWriter writer)?
Thanks for your support!
Cheers,
Chris
|
|
|
|
|
I don't think you are going in right direction
Can you explain more so that you might get right solution for your problem.
What are you trying to do ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Ok, more details. I want to establish a mechanism to hide and show various parts of a website based on user roles. As the information is organized within a table, it would be nice to hide and show specific table rows. Such a row may contain various child controls such as Labels, Textboxes, Dropdownlists. Instead of hiding each of these controls separately, I'd like to hide (or show) the parent table row. For the mechanism to work, I need to assign the controls with a tag, call it an access level tag. If the control has the tag accessLevel="2" it will be shown to administrators only. Hence, I need to construct user controls that feature this specific access level tag. Not a problem for textboxes or labels, but couldn't solve it for controls that have further child controls such as a custom table row.
Any ideas how to resolve the issue?
Thanks,
Chris
|
|
|
|
|
Why do you want to use user/custom control for it ?
In the Page Itself you can create a method that will handle this functionality. I suppose that you have to make this functionality at server side.
So your function will check user role like this
if(UserRole=="Admin")
{
this.ShowHide(true);
}
private void ShowHide(bool isAdmin)
{
( List of All control to Show)=isAdmin;
( List of All control to Hide)=!isAdmin;
}
Note if there are many controls give id to row and hide this row
Is that you want ?
I think you are thinking/doing some complex logic here
|
|
|
|
|
The thing is, I want to do it application wide and trigger the mechanism from the base class of all Pages. Is that still possible? Now I would have to create the method void ShowHide(bool isAdmin) for each page separately. I'd like to do it in a generic fashion
Further comments on that?
Thanks,
Chris
|
|
|
|
|
Still possible just create this function in base class and pass the page reference of the page like
ShowHide(this);
And do the things in the base page
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hai friends
in a page,i enabled sessionstate as true
and time out is 20 min
after 20 min , session will be expired and if user performs any operation
then he will be redirected to "sessionexpired message" page
now how can i know(find) the session is expired for the user account....
plz help me
thanks in advance
vijay
|
|
|
|
|
Check this out:
http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.2
We are not a Code Charity
|
|
|
|
|
Hi
Iam consuming the webservice on remote server in my webapplication on
local machine .iam getting one excetion in my webapplication.i mentioned
exception details below,
exceptionSystem.Web.Services.Protocols.SoapHeaderException:
Server unavailable, please try later
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TTL.Noads.Client.UIBridge.ClusterWS.ClusterWSWse.ReadTestMessage()
in C:\kona\documents\uibridge\TTL.Noads.Client.UIBridge\Web References\ClusterWS\Reference.cs:line 445
at TTL.Noads.Client.UIBridge.ClusterManager.ReadTestMessage()
in C:\kona\documents\uibridge\TTL.Noads.Client.UIBridge\ClusterManager.cs:line 57
at TestApplication.Test.Page_Load(Object sender, EventArgs e)
in C:\kona\documents\uibridge\TestApplication\Test.aspx.cs:line 26
please help me
madhavi.kona
|
|
|
|
|
Did you query through InnerException?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
When I am using Server.CreateObject( "MSWC.ContentRotator" ) in Asp.Net page I am getting 'No such interface support' error.
Can any one help how can I use this file.
|
|
|
|
|
|
Hi all,
Like the Hashtable in .Net, I want to have a collection in javascript in order to store some predefined key value pair.
Is there any such collection available in JavaScript?
Kindly help me in this regard.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
Dear Vasu,
Thanks a lot.
I will go through it.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Dear Vasu,
I have downloaded and included in my applcation.
Now in the page onload client side event I have invoked a jayavascript function. In that function I have declared a variable and initialized as follows:
var keyValuePair;
keyValuePair = new Hashtable();
It is giving "Hastable is undefined".
Can you tell me why?
And in what way it has to be used in the application.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Its because javascript don't know what is HashTable,
there is not object with this name in javascript
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Did you include the prototype definitions in the article? That actually defines an object called 'HashTable'.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Dear Vasu,
I am new to JavaScript.
Vasudevan Deepak Kumar wrote: prototype definitions
What do you mean by it?
How can I include that to my application?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
There is a downloadable example of hashtable:
http://www.comet.co.il/en/articles/hash/hashtable.zip[^]
Nevertheless, the code snippets near the top of the article like
Hashtable.prototype ... are declarations.
You ought to include the function Hashtable and its associated get and put to define the structure.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Friends,
How to pass FileName Path as querystring in javascript.I have passed like this var file='comment_popup.aspx?Path='+hid.value; when i put alert(file) its getting D:workReview115-02.xml but the path name should come like this D:\work\Review\15-02.xml.How to pass the correct path name as querystring please help me.
Thanks in Advance
|
|
|
|
|
Have the value UrlEncoded before passing it in the querystring.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan Deepak Kumar,
Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring.
Thanks in Advance
|
|
|
|