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:744924
More Search Options
RSS Available
Matching Posts
Re: GoDaddy website gives security exception
The problem is not with the GridView itself. It's with your AccessDataSource. When the GridView performs its data binding it will call to the data source (obviously) for data. Since the data source references a file that is outside of the application's run space you will get the security exception you are experiencing. This is due to the medium trust configuration I mentioned earlier. GoDaddy has a "Databases" section in their website management screen. You can "enable Access"
Posted to
Security
(Forum)
by
Bravo9
on 7/10/2008
Re: GoDaddy website gives security exception
It's because you're trying to access a file that it is outside of your application's run space: C:\Documents and Settings\Administrator\Desktop\db.mdb GoDaddy shared server sites run in Medium Trust. This means you are restricted to accessing files for your own application. You should adjust the above file reference to be relative to your applications location instead. IMPORTANT SECURITY NOTE: Make sure your .mdb file is not located under your website's root folder.
Posted to
Security
(Forum)
by
Bravo9
on 7/10/2008
Re: datavalidating
DateTime start = DateTime.MinValue, end = DateTime.MinValue; bool datesValid = DateTime.TryParse(txtDateStart.Text, out start) && DateTime.TryParse(txtDateEnd.Text, out end); if (datesValid && start < end && (end - start).TotalDays == 365) { // Dates are valid } else { // Dates are not valid }
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/9/2008
Re: trying to disable controls past a certain date.time??
Your problem is probably the fact that there is no built in comparison between DateTime and string. Try casting the string to a DateTime instance before comparing. Your code for this might look like: bool isGreaterThanOrEqualTo = DateTime.Now >= DateTime.Parse("6/8/2008 12:00 PM"); for (int i = 1; i <= 5; i++) { WebControl webControl = FindControl("ddlPick" + i) as WebControl; if (webControl != null) webControl.Enabled = !isGreaterThanOrEqualTo; } btnSubmit.Enabled = !isGreaterThanOrEqualTo;
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Re: Get SelectedValue from dynamically loaded .ascx controls for use in .Aspx page.
The quick solution is to simply expose a property that returns the value of the inner control's backing field. This might look like: public partial class MyUserControl : System.Web.UI.UserControl { public Calendar Calendar { get { return cEmpPrev_App; } } } Some object oriented purists might claim that this violates encapsulation. If you agree, then you can expose the relevant values via read only properties. This is typically done by forwarding them to the properties of the inner control's
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Re: how do I implement something like DOS command prompt in asp page?
The easy part: Put a textbox on the page and wrap it in a UpdatePanel. Next, programmatically post the content of the textbox to the server when the user presses the ENTER key. The hard part: Parsing the incoming command and its relevant options, executing the command, and returning the results to the UI. My question to you is why do you want/need to do this? You might consider using Powershell for this.
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Re: Custom Classes and IntelliSense
As the error message alludes to, you can only reference namespaces with the "using" directive. As I suggested perviously, the best you can do is use a wrapper method in your base Page: public abstract class BasePage : Page { protected string CurrentUserLogin() { return ADHelper.CurrentUserLogin(); } } public class MyPage : BasePage { protected void Page_Load(object sender, EventArgs e) { UserLabel.Text = CurrentUserLogin(); } }
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Re: Custom Classes and IntelliSense
F#, Haskell, OCaml.... Heck, even JavaScript. Lots and lots more. :) BTW - I never said that I was calling a class method without referencing the class.
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Re: DropDown - adding a 'Select All' option and passing a wildcard parameter back
If it's a stored procedure, you must declare the parameter. If it's ad hoc SQL, you must pass a parameter value.
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Re: Custom Classes and IntelliSense
Oh jeez... nobody's "taking on" (whatever that means) anybody. The original post asked how to call a helper method directly from within an .aspx page, without the need to reference the parent (static) class. photoshoper - BTW, I wouldn't call it the nature of any programming language. For example, most functional programming languages allow for functions as first class citizens. This would, of course, mean that they do not require a parent class.
Posted to
Web Forms
(Forum)
by
Bravo9
on 7/7/2008
Page 1 of 8 (71 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
ASP.NET:
Hanselminutes Podcast 188: ASP.NET MVC 2 Beta with Phil Haack
ASP.NET:
Hanselminutes Podcast 186: .NET Debugging 101 with Tess Ferrandez
TechNet Edge:
WinRE and free stuff with Sean Kearney
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
Channel 9:
The Visual Studio Documentary: Jeff Hadfield Full Length Interview
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online