Seeking Direction For An Admin Interface For Dynamic Data And Web Controls?
Aug 5, 2010
I currently have a datagrid that has no columns, I generate a few column types on the fly using a column prefix. This enables a new dataset to generate a new datagrid, all is well, except...
1) Generating new datasets is beyond the skill of the admin, I could offer a set of options and dynamically create an SQL query/view to be saved in a datatable and retrieved by the querystring, but I'm not sure if there is a better way when I consider my next issue.
2) I want to be able to create an edit/detail page that is generated by a new query returning chosen fields, aliases for the field labels and field drop down options retrieved from the existing database and then positioning of the fields on the page set by the admin then stored as either field & coordinates or ? I'm hoping that there is a way to enable an admin to position the fields & controls either by selecing XY coordinates, then save it off as XML or similar to be reused as a template.
I'm trying not to re-invent the wheel and also keep my billable programming time to a minimum, but I'm willing to spend as much time researching & learning the techniques.
[code]...
View 1 Replies
Similar Messages:
Feb 25, 2011
I need to add textboxes dynamically row by row with ajax when i click on one button control. Can you suggest me some useful tutorials or blog posts?
View 3 Replies
May 15, 2010
So I have a couple of Masterpages as base templates and a couple of themes that can be applied to either one of these masterpages. Using profiles, global.asax and some code behind I can change the Themes dynamically but they are associated with the profile. In other words, once the user logs off, the theme is changed back to default.
My objective is to use an Admin page to
1. change the theme of the site permanently for all users, including anonymous visitors.
2. change the masterpage for all pages permanently for all users, including anonymous visitors.
So when I log off after changing the settings, the new settings are retained.
View 10 Replies
Sep 3, 2010
develop a user admin application.My schema looks like the following:See full size As you can see I've got my own version of the user table and profile tables to store my data with a one-to-one mapping with aspnet membership tables.I'm interested in using ASP.NET dynamics to speed up the proccess of creating an admin system.
I would like to create a customised listing with a search and a data grid listing with just basic details such as name and state information, date registered and then when you click to edit your presented with the domain representation of the data and not the exact undelying data.Has anyone any experiece in doing this or building a real work application with Dynamic data?
View 1 Replies
May 7, 2015
According to thread [URL] ....
I used pagination for datalist and pagination look like below:
Last Previous ... 4 3 2 1 Next First
it is work correctly I want right to left pagination but problem is that here in below code:
private void PopulatePager(int recordCount, int currentPage) {
double dblPageCount = (double)((decimal)recordCount / (decimal)PageSize);
int pageCount = (int)Math.Ceiling(dblPageCount);
List<PagerPage> pages = new List<PagerPage>();
if (pageCount > 0) {
pages.Add(new PagerPage("Last", pageCount.ToString(), currentPage < pageCount, "button"));
[Code] .....
when I changed "first" "Next" "previous" "Last" to persian character:"First='اولین'" "Next='بعدی'" "previous='قبلی'" "Last='آخرین'"
again page number direction changed to left to right:
1 2 3 4 ...
private void PopulatePager(int recordCount, int currentPage) {
double dblPageCount = (double)((decimal)recordCount / (decimal)PageSize);
int pageCount = (int)Math.Ceiling(dblPageCount);
List<PagerPage> pages = new List<PagerPage>();
if (pageCount > 0) {
pages.Add(new PagerPage("آخرین", pageCount.ToString(), currentPage < pageCount, "button"));
[Code] ....
why this happen? Above code worked correctly just when text be in english character when I change to persian or this character "<< < >> >" it changed number direction. what should I do?
View 1 Replies
Mar 26, 2016
I have a project That Is Some Ebooks project..,I want to create a dash Board,If User Register then he Login To Dashboard and he will upload some books in his admin panel..,if new user register then how to create a other Dynamic Panel..Each Admin Panel for Each User..dynamic Panel..how to create it..?
View 1 Replies
Dec 21, 2010
I am looking for some feedback on how to display data from a database where there is a 1 to many relationship. For example table A holds customer data such as name, address and table B will contain information on products that they have ordered. A customer can have multiple products ordered. How would you display the records as one record in a datalist or another control as oppose to the number of records based upon what they have ordered. Would this be accomplish by nesting the datalist or the control used or by the SQL statement?
View 5 Replies
Apr 20, 2010
I have an insert that uses an object data source with out the direction property set and it works fine. I noticed the direction property though and wondered if I should use it.Should the direction property for the parameters of an object data source be used with a simple CRUD operations?
View 3 Replies
Jun 18, 2010
Currently our external customer submit all other data through our public web site, but submit some artifacts (.coc, pdf...) through email, then our administrators save those files come from email to our internal server. This is not efficient, because we cannot identify immdeately if our customer submitted their required documents before our administrator saved them to the server. I am seeking a technology that external customer can upload files through the public website toan intranet server that the external customer would not notice they are accessing intranet server.
View 4 Replies
May 13, 2010
I have constructed a few web pages that are constructed from Nested Master Pages. Here's an example of what they look like: http://pelalusa.com/Downloads/Public/NestedMasterPageExample.JPG
The rectangular area on the right side is where the Content Pages are displayed. Everything else is one of the two nested Master Pages.
To navigate to a particular Content Page the user will navigate down the treeview on the left, then pick an "Activity" and then pick a "Major Task". When this happens then a Page Redirect occurs to the appropriate Content Page.
It works but the page reload leads to a terrible looking UI. What would be MUCH better is if I could somehow just change what appears in the Content Page area. Is there a way to do this? If it matters, every page has an AJAX UpdatePanel on it.
View 1 Replies
Jul 18, 2010
Moderators Note: THIS ISSUE IS BIG FOR ME AND EVEN IF POSSIBLE, GET THE REPLY FROM THE DESIGNER OF GRIDVIEW. I have been looking for him for long. I am really fed up with reviewing a good lot of web pages on how we can possibly customize the gridview to enable sorting and paging. So many sites have listed out a lot of information and so many guidances. But the problem is that one works out fine and the other is a burden. I really feel bad about being given the job of customizing this kind of a gridview which has no user friendly approach to it. Also, this control is rendered without the pager links inside the <tfoot> tag. I have tried the Pear Pager in php. It is that good and easy to use and compared to that, the gridview in asp.net is the worst ever control i have ever tried so far.
1. i can use the images to indicate the sorting direction
2. I can have the custom pager like
[code]
<<Previous 1 2 3 .. 7 Next >>.
[/code]
When i click the next when i am viewing the page at 3 , the pager links should change as
[code]
<<Previous 2 3 4 .. 7 Next >>
[/code]
Kindly look into this type of requirement and firstly tell me whether this is possible with the gridview control. I would like this request even to be escalated to the designers of the gridview control also, so that Microsoft comes out with a reply THAT WORKS and not the kind of stuff like surfing through a lot of links and pages and finally wasting a lot of days precious time and still breaking the head with this useless control. I have spent a lot of time in searching for a perfect way. Not writing a code that is non-standard. I am really serious b'cos I have spent weeks in customizing this control. If I dont get a solid reply atleast now, I am going to generate all the output by HTML content by custom coding.
View 7 Replies
Jan 6, 2010
how to display the gridview control with an interface that is ready for inputting data into columns. Bsically I want the grid to display initially in update mode without the user having to click the update link or button.
View 1 Replies
Jun 13, 2010
I have an Admin folder which contains 4-5 aspx pages. I want to that only user with role="admin" can view those files. What settings i need in web.config?
View 1 Replies
Feb 10, 2011
Got a little dilemma I could use some guidance on. I'm trying to call an Interface method that resides in my Business Layer from within the template of a gridview in the same manner as below:
<%# GetEmployee(Eval("EmpId"))%>
i.e. it reads as follows:
<%# BusinessLayer.IEmployee.GetEmployee(Eval("EmpId"))%>
I'm actually getting the following error:
"An object reference is required for the non-static field, method, or property"
Which makes sense as I haven't instantiated as instance of the Interface. So the queston is how do I do it?
View 2 Replies
Feb 16, 2011
how to upload advertisement in masterpage by admin?
View 1 Replies
Feb 4, 2011
I have used a microsoft tool before that was allowing me to automatically generate admin web pages from database tables. By admin web pages I mean pages that allow me to do CRUD operations on my tables.
View 1 Replies
Aug 10, 2010
I have a dynamic Table which contain 8 rows and 8 Colums
Table t = new Table();
TableRow rr = new TableRow();
TableCell cc = new TableCell();
and in the each Cell CC I add a dynamic Button(Or Linkbtn)
LinkButton LB1 = new LinkButton();
LB1.Text = "AM";
LB1.ID ="Link1";
cc.Controls.Add(LB1);
rr.Cells.Add(cc);
LB1.Click += new EventHandler(LB1_Click);
t.Rows.Add(rr);
i have a table with 8 rows , 8 colums and each cell contain a LinkButton (which diffrent in IDs) I want to add Lable in the same cell of this LinkBtn(LB1) which it clicked but I cann't What shoud I write here?
void LB1_Click(object sender, EventArgs e)
{
// throw new NotImplementedException();
}
View 1 Replies
Dec 11, 2013
I have a Webform with a TextBox (Static) and 3 TextBox (Dynamic - based on the following article: [URL].... )
How to use this scenario with a single GridView table?
Based on the User input, the GridView might have (1 + 3) columns; (1 + 6) columns; (1 + 9) columns; ...etc.
View 1 Replies
Jul 24, 2013
im creating dynamic buttons on page load and on the click event of button1 handlere iam creating more buttons this is going fine but on click event of button 2 work is not done so how to maintain a chain of creation of button on click events
protected void Button2_Click(object sender, EventArgs e)//
{
ClientScript.RegisterClientScriptBlock(this.GetType(), ((Button)sender).ID, "<script>alert('Button_Click');</script>");
Response.Write(DateTime.Now.ToString() + ": " + ((Button)sender).ID + " was clicked");
}
protected void Button_Click(object sender, EventArgs e)//this button click will call all the items related to department
[code]....
View 1 Replies
Apr 1, 2011
I have a loop which creates for each item ID a Dynamic created checkboxlist control
how do I create a dynamic validation control on a dynamic checkboxlist?
View 3 Replies
Feb 21, 2011
i want to crease an admin panel. but i do not use asp.net default membership system.
i know actions enable access can be determine by [Authorize] attribute. but my admin has 10-20 controller and about 100 action.
i do not want to signature all of actions by [Authorize] attribute.
all controller must be required login if user did not login.
View 3 Replies
Oct 21, 2015
I am not able to redirect the user to "SimpleUserLoginAfterRegistration.aspx" page if Administrator is in any one of the .aspx file inside Administrator Folder.
I tried to use: Response.redirect("/SimpleUserLoginAfterRegistration.aspx") But, it is saying Page not found error.
View 1 Replies
Mar 15, 2011
I found a great answer on SO describing how to set up custom user roles, and I've done the same in my project. So in my Login service I have:
public ActionResult Login() {
// password authentication stuff omitted here
var roles = GetRoles(user.Type); // returns a string e.g. "admin,user"
var authTicket = new FormsAuthenticationTicket(
1,
userName,
DateTime.Now,
DateTime.Now.AddMinutes(20), // expiry
false,
roles,
"/");
var cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(authTicket));
Response.Cookies.Add(cookie);
return new XmlResult(xmlDoc); // don't worry so much about this - returns XML as ActionResult
}
And in Global.asax.cs, I have (copied verbatim from the other answer):
protected void Application_AuthenticateRequest(Object sender, EventArgs e) {
var authCookie = Context.Request.Cookies[FormsAuthentication.FormsCookieName];
if (authCookie != null) {
var authTicket = FormsAuthentication.Decrypt(authCookie.Value);
var roles = authTicket.UserData.Split(new Char[] { ',' });
var userPrincipal = new GenericPrincipal(new GenericIdentity(authTicket.Name), roles);
Context.User = userPrincipal;
}
}
Then, in my ServicesController class, I have:
[Authorize(Roles = "admin")]
//[Authorize]
public ActionResult DoAdminStuff() {
...
}
I login as a user with the "admin" role, and that works. Then I call /services/doadminstuff - and I get access denied, even though when I put a breakpoint in Global.asax.cs, I can see that my roles do include "admin". If I comment out the first Authorize attribute (with roles) and just use a plain vanilla Authorize, then I can access the service.
View 1 Replies
Oct 9, 2010
If there's a better way to accomplish what I'm attempting I haven't found it yet. That being said, I have create a gridview like the one here,[URL]And with some minor tweaking it working great for all my fields, checkboxes, etc. The issue is my last column is another gridview, and I'd like it to function the same. that is, a dynamic gridview inside of a dynamic gridview. I get that I have to create it initially with null values or it won't show up. I guess what I'm having trouble figuring out is instead of go will null data in the parent gridviews column, do I place my blank child gridview. Do I create and bind the child gridview first, or second. Generally just not sure. Also, as far as storing the data from the child gridview goes, will each one need it's own datatable?
[Code]....
[Code]....
View 5 Replies
Jan 14, 2010
I developed a website using asp.net 2.0 and sql server 2005. I m using Turkish language content as entries to database tables. But when I try to add any record from my web interface I see strange characters. for example "ş,ğ,İ," characters are viewed like Å,? characters. I set my globalization to culture turkish in web.config. So there s no problem with static data on the page and no problem with records I added earlier in my own machine. I just need to send data in a correct encoding to the database.I first thought it was about collation, but changing collation doesn t differ data sent to database, I think I need to do something from my web app, but still couldn't get any ideas.
View 3 Replies