Web Forms :: Web Parts Catalog Zone Contains Depend On The Role?
Jan 21, 2010
I have different roles like Administrator ,Accountant, Clerk,Enforcment When user open Catalog Zone to add parts to Web part Zone i want only those parts should apper on the screen for which user selected Group,like if user selected Enforcement Group then Parts of that group should only appear in the Catalog Zone.
I want Catalog Zone cantains to be depend on which Group user was selected.
View 2 Replies
Similar Messages:
Sep 27, 2010
When in the Catalog Zone, I select a Web Part and a zone in which to put it and then click Add. I need to know immediately which zone has been selected in which to place the selected Web Part.
My Catalog Zone is declaratively a class called CatalogPart1 which inherits the CatalogPart class:
[code]....
But I cannot work out how to use this event to get the Zone that has been selected.
How do I get the Zone that has been selected?
View 3 Replies
Jan 25, 2010
I am facing problem with webpartzone web parts. Web PartZone LayoutOrientation is set to Horizontal.
It's not getting horizonatlly repeating when it's reach browser end i mean at 100%!!
Or anything anyone can help to do best for web parts postioning ,in my case i have 8 textboxes and i want it to horizontally repeat but it's only in the one row.
View 5 Replies
Mar 31, 2010
I am having a .net project that builds the web based installer. I was using visual studio 2005 environment and the project is targetted to .Net 2.0 framework earlier. I don't see any issues with installing the product that was builted from above environment.
Recently i migrated to Vs2008 and .Net 3.5 framework and the i was facing the following issue. During the installation the web browser( opened in IE 6.0) is getting opened in INTERNET Zone which applied higher security settings including disabling of all Java scripts.The browser was not responding any click events( next or back or cancel).Copying the URL to the new IE doesn't have this issue. I am not sure whether it is an environment issue or not.
View 1 Replies
Mar 22, 2013
How to Divide image in two parts like I have an image which width x Height = 16 x 32.
And I want to split image in two images 16x 16 and 16x 16.
How can i do it?
View 1 Replies
Mar 24, 2010
I have data repeater , I want depending on value of one of its contained label , highlight the row , how can I do that
Unffortunatelly in asp.net 1.1 there's no e.item.css = ""
View 5 Replies
Apr 8, 2010
I then found an excellent tutorial with code! It is the following: [URL] It works perfectly but only with TextBox controls. Change the TextBox to Label and it doesn't work (neither will ListBox). I have been trying to get it to work and it may have something to do with ViewState not being enabled for these other controls. I managed to get around the MasterPage and container problems, but can't get it to work with either Labels or ListBoxes. (As I understand it, the Load View State stage is not re-populating the controls from the previous time it was posted for these other two controls.) Does anybody know how? If I could get the C# code working (with Label instead of TextBox, e.g.)
View 13 Replies
Feb 2, 2010
I have a catalog that hase standard pricing now i need to increase this to 5% for each product. this is the way i bind the data:
Price:<%#Eval("Price",
"{0:c}")%>
View 3 Replies
Jan 26, 2010
Language: C#
Values for multiline textbox in gridview are coming from SQL db "text" type previously entered by user...sometimes a small amount, sometimes a lot. Want to display enough to make it readable without wasting space on the screen. Can't believe this mechanism is not built in but have researched & see I may have to count lines then set the "number of row" property.
Question 1: Should this be done in databound or rowdatabound event?
Question 2: Could someone provide the "row counting" code (in C#)?
View 5 Replies
Jun 29, 2010
Is there any good code (paid or open source) out there for:Handling PPC ads on our site? This would (hopefully) include pages to create ads, reports of ads run, determining what ad to show, and tracking billing.Adding comments to our site? This would (hopefully) include up/down/inappropiate votes on other's comments.A product catalog? This would (hopefully) include advanced search and entering product items.
View 1 Replies
Jan 6, 2010
I am binding a treeview with XmlDataSource. On my login page I want to hide some node like
see my login code
if (Session["uname"] != null)
{
if ((Session["uname"]).ToString() != "")
{
if ((Session["UserType"]).ToString() == "Administrator")
{ dont hide nodes }
else { hide some nodes}
}
else
{
Response.Redirect("index.aspx");
Session["uname"] = "";
}
}
else
{
Response.Redirect("index.aspx");
Session["uname"] = "";
}
}
so how to do that, if you need my .aspx code for treeview so free to ask.
View 2 Replies
Feb 11, 2011
i want to add control 1, control 2 etc.. by default in Declarative Catalog Part
and using following code
[Code]....
but it only displays last item in it
any one guide me what mistake am i doing or what is the solution to my problem?
actually i want to give default 4-5 webparts options so that user could add it to page
View 1 Replies
Mar 15, 2011
I have numeric textbox1, numeric textbox2 and numeric textbox3, where textbox3 should show the value that is the multiple of textbox1 and textbox2. The textbox3 should change dynamically when the values in the other two change.
View 2 Replies
Apr 20, 2010
I read an article on the www.4guysfromrolla.com which tells to store gatetime in getutcdate() in the database.and while displaying use javascript
[Code]....
But one came to my find that if i want to show something time critical data on page load,then how would i call javascript before page load,
View 1 Replies
Jul 25, 2010
I have two Jquery button in my asp.net page. When I load data I wanto to disable both or only one depend from some data value.
My code is:
[Code]....
but only first row was executed. Why? How I can disable Jquery button?
View 2 Replies
Feb 15, 2011
I have a page that has 5 zones, by default have also defined the layout.
Now I need to restrict the user to have only one web part control in a zone at a time. Is that possible? Currenty we can add more than one control in the same zone.
View 2 Replies
Nov 14, 2010
How to see Form Height and width and adjest according to panel height and width
[Code]....
View 2 Replies
Nov 13, 2010
Usually in sub-folder we will limit the access right to some roles and this feature requires pre-defined database schema.
However, if i still want to use this role feature of asp.net, but I do not like the pre-define database schema, I want to extract role information from my own database table and bind it to the role.
View 2 Replies
Jan 31, 2010
specify method to remove web Part Zone names.
View 3 Replies
Jan 14, 2010
I want to hide the dropdown in PageCatalogPart, which lists the Available Zones.I want to programmatically add the closed webpart to the Zones and not allow the user to select zone.
View 2 Replies
Mar 4, 2011
I'm using a UI that works with webpartzones, I created a class that implement ITemplate , zones are created but drag and drop is allowed just inside the container zone(webpart).
View 2 Replies
May 7, 2015
How to set default time zone in ASP.Net Application?
View 1 Replies
Jul 9, 2010
I'm really new at asp.net 3.5 I'm comming from Classic ASP and I have been experimenting with ASP.NET. I'm trying to use the ListView Control to display a products catalog comming from a database. My first test was succesfull but I have a question.I want to be able to display the title of the product in Bold if certain conditions exists for that product. I tried using the ItemDataBound event but I don't know how I to get the value from the database field.I have the following code
ASPX PAGE
[Code]....
CODE BEHIND
Protected Sub productsList_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewItemEventArgs) Handles productsList.ItemDataBound
View 3 Replies
Jun 9, 2010
I need to check whether the request will return a 500 Server Internal Error or not (so getting the error is expected). I'm doing this:
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
request.Method = "GET";
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
if (response.StatusCode == HttpStatusCode.OK)
return true;
else
return false;
But when I get the 500 Internal Server Error, a WebException is thrown, and I don't want to depend on it to control the application flow - how can this be done?
View 2 Replies
Sep 10, 2010
Can we depend on the current working directory in ASP.NET code-behinds? Or, in other words, can we use relative paths, and be sure that they'll work?If, in one page on a website, I set the current working directory to something specific, will it still be the same the next time another page on the website is loaded? When the same page on the website is loaded?If I set the current working directory to something specific, in Page_Load(), can I be sure that it will still be the same by the time Page_PreRender() is called? Or could another page on the same website change it on me, in between? Could a page on a different website in the same application pool change it on me? A page in a different website in a different app pool?
In other words, what is the scope of the current working directory, in IIS? Is it specific to a page? Is it specific to a web site? Or is it shared among all pages in an app pool?Where, among page, website, app pool, and server, are the boundaries that isolate different values of current working directory?
View 2 Replies