16,016,306 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11165607 (Top 23 by date)
Member 11165607
24-Jun-15 5:24am
View
that's right, i've found my question, it use flowlayoutpanel.
thanks for your reply
Member 11165607
4-Jun-15 0:26am
View
sorry I mean is datagridview , is there any other way to make the selected row has a border effect ?
Member 11165607
4-Jun-15 0:18am
View
why in the insert menu there is no sort control ? I use crystal report XI release 2. I have also been looking at other menus but not found. do you know where the sort control in crystal report XI release 2 ?
Member 11165607
3-Feb-15 21:30pm
View
im sorry, that's a comment.. but i can't add xml code in the comment ..
Member 11165607
3-Feb-15 20:39pm
View
I've updated the web.config, please check it ..
sorry I am late reply now..
Member 11165607
3-Feb-15 5:45am
View
i have tried but node is null, code not working to delete location path ..
i want delete all location path with textbox parameter..
Member 11165607
3-Feb-15 5:20am
View
that's code for adding not for deleting..
could you create a sample for deleting ?
Member 11165607
3-Feb-15 5:19am
View
could you create a sample for deleting rule with parameter based on location path = textbox (user input) ?
help me :(
Member 11165607
3-Feb-15 5:06am
View
Deleted
sure , it does works ..
this is the result : <location path="Report/Default.aspx"><system.web><authorization><allow roles="USER">
Member 11165607
3-Feb-15 4:59am
View
i don't understand, can you give a sample ?
Member 11165607
3-Feb-15 4:33am
View
i just could to create add location path but how to delete location path ?
protected void btnsimpan_Click(object sender, EventArgs e)
{
AuthorizationRule newRule;
newRule = new AuthorizationRule(AuthorizationRuleAction.Allow);
AddRoleRule(newRule, txtllocation.Text, txtrole.Text);
}
protected void AddRoleRule(AuthorizationRule newRule, string location, string role)
{
string path = Server.MapPath("~/Web.Config");
XmlDocument xDoc = new XmlDocument();
xDoc.Load(path);
//create location element and the path attribute with it's value set to the
//selected page
XmlElement newLocationelement = xDoc.CreateElement("location");
XmlAttribute newLocationAttrib = xDoc.CreateAttribute("path");
newLocationAttrib.Value = location;
newLocationelement.Attributes.Append(newLocationAttrib);
XmlElement newSystemWebelement = xDoc.CreateElement("system.web");
XmlElement newAuthorizationelement = xDoc.CreateElement("authorization");
//create the allow element
XmlElement newAllowelement = xDoc.CreateElement("allow");
XmlAttribute newAllowAttrib = xDoc.CreateAttribute("users");
newRule.Roles.Add(role).ToString();
string listofRoles = "";
foreach (var item in newRule.Roles)
{
listofRoles = item.ToString();
}
newAllowAttrib.Value = listofRoles;
newAllowelement.Attributes.Append(newAllowAttrib);
//create the deny element
XmlElement newDenyelement = xDoc.CreateElement("deny");
XmlAttribute newUsersAttrib = xDoc.CreateAttribute("users");
newUsersAttrib.Value = "*";
newDenyelement.Attributes.Append(newUsersAttrib);
newAuthorizationelement.AppendChild(newAllowelement);
newAuthorizationelement.AppendChild(newDenyelement);
newLocationelement.AppendChild(newSystemWebelement);
newSystemWebelement.AppendChild(newAuthorizationelement);
xDoc.DocumentElement.AppendChild(newLocationelement);
xDoc.PreserveWhitespace = true;
//write to web.config file using xml writer
XmlTextWriter xwriter = new XmlTextWriter(path, null);
xDoc.WriteTo(xwriter);
xwriter.Close();
}
i want to delete location path in webconfig (using parameter textbox) below :
<location path="3pm.aspx">
<system.web>
<authorization>
<allow users="ADMIN">
<deny users="*">
Member 11165607
3-Feb-15 3:59am
View
could you give me an example to delete location path in c# ? where path= "" using parameter textbox
Member 11165607
3-Feb-15 3:56am
View
Deleted
how if i want to delete location path in web config below :
<location path="3pm.aspx">
<system.web>
<authorization>
<allow users="ADMIN">
<deny users="*">
Member 11165607
3-Feb-15 3:54am
View
i have tried to find but there is nothing as i want, i want dynamically delete web config.. example : if location.path = textbox1 then location path in web.config will be remove :
<location path="test">
<system.web>
<authorization>
<allow roles="USER">
please help me :(
Member 11165607
5-Jan-15 2:33am
View
what if using viewstate instead?
Member 11165607
10-Dec-14 2:07am
View
0 maybe..
Member 11165607
8-Dec-14 6:08am
View
Error list : The name 'trans' does not exist in the current context
Member 11165607
8-Dec-14 5:17am
View
ok thanks, it's worked !!
Member 11165607
7-Dec-14 22:55pm
View
well me explain:
I have a gridview and I have made a page in gridview,
when I save in the database only the data in the gridview on the first page are stored, but the data in the gridview on the second page does not participate stored .. understandable?
Member 11165607
5-Dec-14 5:37am
View
sorry to make you confused, I mean when loaded .. in gridview, like lbltextcol control becomes (txttextcol) textbox control continuously update and cancel buttons appear when I click the update button, txtcolumn Become lblcolumn, so I can directly update some records .. without click edit first, so right click update button
Member 11165607
5-Dec-14 4:00am
View
what if I want to display the update event without clicking the edit button? because I wanted to directly update the column when the gridview is loaded for the first time.
Member 11165607
5-Dec-14 3:48am
View
well thank you to answer, very helpful!
May I ask once again? how to make a row updating appear before the row editing when load the gridview?
Member 11165607
5-Dec-14 3:11am
View
COLUMN, lblcolumn in gridview control ...
Show More