Web Forms :: Letting Admin To Edit Contents Nontechnically?
Jul 26, 2010
I've built a web app to practice what I'd learnt about asp.net and css. The problem I've come across is that if I were to sell it to a customer how would I be supposed to allow the customer (admin) to edit contents e.g., posting new blogs, uploading photos? look I'm not going to build in a visible 'sign in | sign up' on the header for example, because the website is a personal one and just customer (admin) is supposed to edit it. To be straight I need to know what actions I must take to do to let one SINGLE customer edit his web without dealing with technical codes (knowing what a content place holder is and etc.)
View 1 Replies
Similar Messages:
Jul 19, 2010
In my web site I have a admin login page to edit the contents. Is it necessary that the default page has to be the login page..............Because in web.config file , under Authentication of Forms am using loginurl="MyLoginPage.aspx"......So is it compulsory that the Default.aspx =MyLoginPage.aspx.i mean to ask i should not change the name of default page or what?
View 5 Replies
May 17, 2010
I can't let my button's OnClientClick fire if the requiredFieldvalidator fails. I created a webform that defines my problem. displayMessageClient() will always run whether
RequiredFieldValidator passes or fails.
I want to run displayMessageClient() only if the RequiredFieldValidator passes
[Code]....
View 3 Replies
Mar 14, 2011
Currently i'm saving pictures to our sql server db. A user can go to a clients info page and click an id card image to open a new tab or window and see the picture saved for that client.
What I would like to do is when a client info page opens a small version (thumnail) of the picture to display and let the user click the thumbnail to open a bigger icture in a popup window.
View 2 Replies
May 26, 2010
On my website, registered users can make a profile about themselves suchas name, Favoirite color, hobbies, etcI have a DataTable called User which hold this information.also there are other datatables for Hobbies and Colors which list all possible options.To let the user update their choices I have a FormView in Edit mode on the aspx page whichis binded to the UserTable with a GetProfileByUserId Method and objectdatasource.
Within the formview, i have added drop down lists that are binded to the hobbies and Colors tables so they can edit their previous selection.On clicking Uodate update formview calls an Update Method that adds new selections to the User databaseNow I have two questionsIs it possible to show in the dropdown list the selected value that the User has already made?If the user only changes hobbies and not colors when they click update will a null value be passed into the data table for colors that replaces their previous selection?
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
Jan 17, 2011
i want to get the contents of a textbox and set them to a asp label for output, we can cause a postback to if that makes it easier, so far i did this and it comes up trumps
View 11 Replies
Mar 19, 2010
There is a term beginning with "w" which is an ASP.NET which allows javascript to access and call WCF/ASMX services.It is just like scripthandlerfactory,and the term is not webmethod or webservice(the attributes),but something else.Does anyone know what this term/feature is called?
View 1 Replies
Feb 22, 2010
I have a pdf file, how can I extract the contents of the pdf file and show the contents in one of my web page
View 4 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
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
May 23, 2010
What is the difference, if any, between letting the framework do the modelbinding to a parameter:
[Code]....
vs. invoking the modelbindng manually/explicitly in the action method:
[Code]....
Is there any difference(s)? E.g., does the framework use the parameter name (m) during the modelbinding in the former method in some way that it might not do in the latter way?
View 2 Replies
Jan 25, 2011
I have a user requirement to hav the ability to directly edit the gridview without having to click the edit link. I was thinking of showing dropdown lists for each column-to-row so that the user can select the values for each record. Then the table will be updated accordingly (no update link).
Is this possible or do I still need the edit template and specify the item template with the dropdown list?
View 1 Replies
Mar 30, 2010
I have a grid view with edit and save buttons when I click on edit it is letting me edit it and if I click on save it is lettingme save the data that I have edited.
The thing is after save is done it is showing the data in edit mode i.e <edit item template > mode I am still seeing the textboxes if I refresh the page then I am seeing it normally.
How can I stop the gridview to show edit mode after the save is done?
View 4 Replies
Apr 5, 2010
Can someone tell me if there is a technique to make an entire Column within an gridview (for example digits) editable (instaed of a single row) and update this column after changing values by press an Update-button?
A commercial solution is also o.k. with me, but, of course, a method to do it ourselve would be nice.
View 2 Replies
Dec 4, 2010
- I want to put multiple rows of a gridview into edit mode
- I have not found any easy method to accomplish this task. I found a way to programmatically put a gridview into edit mode, but in testing the code below it works for only 1 row at a time :
[Code]....
View 5 Replies
Mar 16, 2011
I have a page with 2 GridViews on it. The top GridView shows all the Bike Riders the bottom GridView shows all the Bike Lockers. I have set up both GridViews to be able to Edit the data. And the top GridView to Select.
When I click the Select buton on the top GridView I programically reset the DataSource for the bottom GridView to show the Locker for the Biker of the top GridView Selected.
So far everything works great. I select a Biker on the Top GridView and the Bottom GridView resets just showing one record for the bike locker.
The problem is that if I then click on the Edit button on the bottom GridView (The Bike Locker GridView) the GridView goes into the Edit Mode but it now shows all the Bike Locker records and the edit record is always the top record of the GrdView.
Here is my code Behind:
[Code]....
View 1 Replies
Aug 18, 2010
How do I change these hyperlinks to say something other then Edit and Cancel?
View 4 Replies
Mar 1, 2010
I have a page where I have a tab container and four tabs. the problem is on the first tab "manage quote request" I have a Gridview with the quote request general informatin listed and have a template field created with a link button to databind to the formview quote details. the porblem comes in when after I click on the select linkbutton. the Formview loads right. Then Whe I try to click on the edit linkbuttin in the form view I have to click it twice to change the mode to edit.
here is the page code:
[Code]....
Here is the Codebehind:
[Code]....
View 1 Replies
Jun 22, 2010
I load some text from the database to display on the website. Search through the text and if the text contains links to pdfs documents etc I want to edit the link to point to the correct location.
I have already done it with images by editig the src andpoint the image to the correct location.
Regex regex = new Regex("src=(?:"|')?");
// replaces urls in <img> tag with corresponding unique ids
string body = regex.Replace(strMessage,"src=""+getVirtualImageRootRelative());
getVirtualImageRootRelative is a function I created which contains the address where the image is located.
View 1 Replies
Jun 24, 2010
how i can add new admin tab in BlogEngine?and refer to sample page
View 2 Replies
Mar 2, 2011
I want to develop a website for a photographer where the admin (the photographer) is allowed to upload new fotos which will then automatically be added to the gallery.
I was thinking of using a flash gallery as there are some nice free templates online. But I don't know how I will make the flash automatically show new images aswell. Or maybe I should just make a javascript gallery.
View 2 Replies
Nov 23, 2010
I have a feedback form that should send an email to the site Admin. This is just on my laptop in development stage and not on a server, but I think it still should function with my personal email account settings, shouldn't it? Everything seems to work fine - there are no error messages. But no emails are received in my testing.
Code Behind:
[Code]....
Web Config:
[Code]....
View 13 Replies
Jun 1, 2010
ok this is that My Master Page is out side the folder but i Have Folder with Name Admin which contain Admin.aspx but it cannot all the images and stylesheet
see how it looks
[IMG]http://i49.tinypic.com/w2hqg9.jpg[/IMG]
code of page
[Code]....
but this prbolem don't come when i take the same page outside of Folder
i am thinking there is soultion to it is that again making a copy of all IMages and Style sheet and place in admin folder which gonna solve my prbolem but is that a right solution...?
View 13 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