Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:745944
More Search Options
RSS Available
Matching Posts
Connection String Encryption
Hi there I have a question about Connection Strings that I'm sure has been asked before but I cannot find the correct answer after hours of searching the forums and Google. I want to encrypt a ConnectionString on a server but I don't own the server. Therefore, I cannot run the command line tool. Also, since I don't own the server, I cannot create mini web applications just for encryption. I'm not worried about someone else internally seeing the web.config configurations since our
Posted to
Security
(Forum)
by
globrite
on 7/6/2009
Re: Currently Using Windows Authentication ....Help with Roles?????
Hi there You set your permissions based on access to the site - therefore your Managers will be able to see content based on their role. You can do this as the other posters have indicated by controlling access to a folder, using the web.config file, you can also control access to content by using the sitemap and indicating what certain roles can do / see. But for your question, you will need to test the role based on how they are logging on to your application and then using Roles.IsUserInRole("Manager"
Posted to
Security
(Forum)
by
globrite
on 7/6/2009
Re: hyperlink or linkbutton ?? how can i go different part of page.asxp when i click hyperlink or linkbutton in same page.aspx ?
Sorry forgot to add how to reference the linked bookmark in the page: <a name="Comments">Comments Section</a>
Posted to
Getting Started
(Forum)
by
globrite
on 7/7/2008
Re: hyperlink or linkbutton ?? how can i go different part of page.asxp when i click hyperlink or linkbutton in same page.aspx ?
I had a similar problem in that I wanted to know how to add in a bookmark in ASP - I knew how to do this with HTML but ASP was not as simple. In my case I had to use either a button or link button so I was not able to use a hyperlink text. This is the way I did it: <asp:LinkButton ID="ComButton" runat="server" OnClientClick="location.href='#Comments';return false">Comments</asp:LinkButton> Hope this helps!
Posted to
Getting Started
(Forum)
by
globrite
on 7/7/2008
Re: Disabling right click
The script already posted by Kalyan should do this. I have something similar and this works for me. It disables the right-click (event.button == 2) anywhere on the page. <script language="javascript"> var message="Sorry, Right Click is disabled."; function click(e) { if (document.all) { if (event.button == 2) { alert(message); return false; } } if (document.layers) { if (e.which == 3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event
Posted to
Getting Started
(Forum)
by
globrite
on 7/7/2008
Re: Server side validation affecting client side validation
Hi there The custom validator I showed is the simplest one I had - there are many others that do quite complex things like validate whether or not some fields are required based on user selection. Although a range validator might work for one, it would not work for them all. In any case, both would return isValid = false if the validation was not met, and I think I would be in the same position with either server validator. Either would cause the page to return with a validation error and re-open
Posted to
Web Forms
(Forum)
by
globrite
on 7/7/2008
Re: Server side validation affecting client side validation
Oops! String jScript = "enableControlsOnYesSelection(" + radioButtonID; Should be String jScript = "enableControlsOnSelection(" + radioButtonID;
Posted to
Web Forms
(Forum)
by
globrite
on 7/4/2008
Re: Server side validation affecting client side validation
Ok, it is quite complicated; I hope you are able to understand how it all happens. However, there are many of these validators on my ASP page so I've only shown a sample. The JavaScript to enable/disable function enableControlsOnSelection() { var numberOfControls = enableControlsOnSelection.arguments.length; // This should always be a RadioControlList used to base our selection criteria upon var tableBody = enableControlsOnSelection.arguments[0].childNodes[0]; for ( var i=0;i<tableBody.childNodes
Posted to
Web Forms
(Forum)
by
globrite
on 7/4/2008
Re: Server side validation affecting client side validation
Thanks for replying. No, the client side validation is working in that I don't see a complete refresh of the page and post back. What I see are the validation messages appearing if a mistake is present. However, other JavaScript that I have on the page is also affected. I have some client side JavaScript that opens and closes radiobuttonlists based on user selections - for example, if they select that they had no previous illnesses then the buttons on type and condition and free text comments
Posted to
Web Forms
(Forum)
by
globrite
on 7/4/2008
Server side validation affecting client side validation
Hi there I have some client side validation that is working fine and enables/disables buttons based on user selections. This works great. However, when I perform server side validation using custom validators (like checking if the user has entered < HTML > tags or decimals in the integer boxes) and the server side validation returns isValid = false then all of the JavaScript validation that I've already done when the user clicked each control is lost. I don't understand why the enabled
Posted to
Web Forms
(Forum)
by
globrite
on 7/3/2008
Page 1 of 6 (58 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 12 of 13
ASP.NET:
ASP.NET MVC 2 RC Released
WindowsClient:
Very exciting Microsoft Pivot from Live Labs
WindowsClient:
XAML for UI & .rc files
TechNet Edge:
DNS Security (DNSSec) Overview
Silverlight:
Silverlight 4 demos from my PDC Keynote now available
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
WindowsClient:
Track Fedex packages with Bing
Channel 9:
Marty O'Donnell - The man behind the Halo Music
Channel 10:
Twitter App for Zune Launches
WindowsClient:
Rotate your text in the WPF DataGrid Column Headers
WindowsClient:
New gameplay video with D&D on Surface
WindowsClient:
ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View?
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 9:
Reactive Extensions API in depth: Retry
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online