asp.net

how can i check and change the Text Of the DataBound column of My telerik RadGrid?

hi my dear friends: in my rad grid i have a boundColumn(system.string) that i want to change it's null value to another customize text... how can i check and change the Text Of the DataBound column of My telerik RadGrid? thanks for your future answer ...

Accessing control attributes from static function

Here's what I've got: <textarea id="TextArea1" rows="6" cols="20" runat="server"></textarea> and in the code-behind: partial class _Default : System.Web.UI.Page { [Webmethod()] public static void Data(int TestNum) { if (TestNum > 0) TextArea1.InnerText = "hello world"; } } And I'm getting the following error...

Asp.Net MVC - JQuery remote validation

I got the following JQuery validation script : <script type="text/javascript"> $(document).ready(function() { $("#myForm").validate({ rules: { "Content": { required: true, rangelength: [20, 1000], remote: { url: "/RemoteValidation/IsValidContent"...

Printing from ASP.NET to a network printer

I need to send documents to a network printer (\myserver\myprinter). I'm using the System.Printing classes to print, and it works fine when it's from a Windows Service, but from an ASP.NET app, it's only able to print to local printers, not network printers. The error I'm getting is "Printer Name is not valid" This is what I'm using to...

what Control do i Use???

Hey guys, I have a user-control in which i want to achieve the following functionality, Search for the records by the records last name and date of birth, the search results should be displayed with all the details(picture image, contact, height, length, Parents Name... etc.) below the search I also want to provide a control to add, d...

WCF, ASP.NET sharing session when WCF is called from flash

I've followed the advice in various places, including other questions posted on stackoverflow about sharing the session state between a WCF service and an ASP.NET website, but cannot get my specific scenario to work: The website and WCF service are both virtual directories of the same application in IIS 7 and both share an app pool. Th...

Should I start learning ASP Classic or 'continue' learning ASP.NET?

Some background info: A year ago I had to learn PHP in school, I already knew ActionScript3 so it wasn't that difficult, and together with a friend of mine we were the first 2 of our school to learn ourselves OOP in PHP. It wasn't required but we thought it was important. Last year I started learning C# and ASP.NET, I really like C# btw...

Information on migrating from Client/Server to ASP.net web parts

I have had the question posed at my work that, since we are planning to eventually move to Sharepoint 2010 for most of our Development, and since Sharepoint 2010 supports asp.net web parts, should we start moving all of our new development to be exclusively asp.net web parts? It was also asked how prism factors into all of this. So my ...

Hitting backspace in ASP.NET AJAX ComboBox causes JavaScript error

I am using a ComboBox from the ASP.NET AJAX Toolkit (version for .NET 3.5) with values populated into its DataSource property. If I use my mouse to drop the combobox down and select a value, then highlight the value and click backspace, I get an error: Microsoft JScript runtime error: '_optionListItems[...].text' is null or not an obj...

create local user account

i have this code to create a local windows user public static bool CreateLocalWindowsAccount(string username, string password, string displayName, string description, bool canChangePwd, bool pwdExpires) { try { PrincipalContext context = new PrincipalContext(ContextType.Machine); UserPrincipa...

problems with xmlpoke in nant script when reading a semicolon in a string

I have a nant script that is trying to change a URL value in my web.config but Nant keeps throwing this error: '=' is an unexpected token. The expected token is ';'. Line 1, position 80. I traced it down to the semicolon in the URL of the nant script. The reason I have a semicolon in the URL in the first place is because the web.conf...

How to access FaceBook Ads API using asp.net

I wish to access the FaceBook Ads API using the FaceBook toolkit for .NET (which i found in codeplex.com) Wish to access the ads.estimateTargetingStats in particular . details of FaceBook Ads API FaceBook Ads API reference Are there any frameworks(in .NET) developed around the FaceBook APIs . I am aware of FaceBook Toolkit , FaceB...

ASP.NET Request.Files is empty on flash control postback

I'm using the new Aurigma Image Uploader Flash control, and creating sample pages works great. However, when I drop this control onto an existing page on my existing site, it doesn't work. I can only suspect something in the masterpage or something else on the page is messing with it. I've tracked down the problem - Request.Files is e...

Object property validation in MVC (using web service)

Hi, I have an ASP.Net MVC site, which connects to a web service. The site's view model contains objects for each group of required service data AccountDetails (containing AccountId, AccountType, etc.), ContactDetails (containing Name, Address, etc.) and so on. The service has a 'CreateUser()' method that accepts these objects as para...

ASP.NET System.IO.File.Open("C:\TEST.TXT", System.IO.FileMode.Open); ERROR FILE NOT FOUND? LOCAL:

Dumb question.. is this c# code intended to read local client files? System.IO.FileStream content = System.IO.File.Open("c:\test.txt", System.IO.FileMode.Open); It gives me error FILE NOT FOUND I'm running Windows 7 and IE 8. ...

div float:left style within an asp TabContainer

I am using ASP.NET Ajax control toolkit v3.5 TabContainer control. Anytime I use the style "float:left" my tab container "lets go" of the div's it contains and all my content appears outside/disconnected from the tab control (there's a black border around the tab area). Online, some people say setting "overflow:hidden" helps, but this ...

Is it possible to configure all things from system.web in system.webserver?

I find it really hard to find clear documentation on IIS7 and integrated mode. Apparently the system.webserver section is for IIS7 integrated mode... but, does IIS7 Integrated Mode ignore a system.web section? + Can you configure everything from the system.web section in the system.webserver section? There's a tool to migrate from IIS6 ...

How to do polling in GoDaddy

Hi, I want to do some polling to fetch data from Yahoo Financial Service for my website to update stock quotes. I want this to work through out the day ( 6 hours ). How to do that ? I am using GoDaddy as my server. If its not possible, please recommend any other option. No heavy stuff is involved. I just need to fetch that data only whic...

javascript confirm asp.net button never submits?

Hi All, i have a regular asp:button. I am working in .Net 3.5. I've tried adding a js confirm to the button with the OnClientClick attribute as well as adding in code-behind and the result is the same. No matter what the user clicks in the confirm pop-up the form will not submit?? BtnDeleteSelected.Attributes.Add("onclick", "return con...

How to change img src on document ready before browser downloads images?

On my page I have some images on thisdomain.com/images. on document.ready(), I change the src attribute of images to thatdomain.com/images. Firebug's Net tab shows me that images are downloaded from both thisdomain.com and thatdomain.com. How can I prevent the browser from downloading images from thisdomain.com? $(document).ready(fun...