asp.net-2.0

TagCloud snippet confused how to use Asp.Net 2.0

I found this piece of code and it only had two lines of code my problem is the minFontSize and maxFonSite variables they seem to me that they wiill never change as opposed to minOccurs and maxOccurs. here is the code. from this site http://blogs.dekoh.com/dev/2007/10/29/choosing-a-good-font-size-variation-algorithm-for-your-tag-cloud/ w...

JSON undefined parsererror

Im trying to run a sipmle ASP.NET 2 Webmethod with JSON this is my code : <head> <title></title> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.3.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function () { $("#btGetDate").click(function () { $.a...

Accessing the property inside Dynamic control gives Null reference exception.

Hi I have an app with 24 different Forms. They have some security options based on which the 5 different buttons Submit, Approve, 2nd Approve, 3rd Approve, Reject etc get enabled disabled. Now I designed a MainForm that has all the buttons and the security code for them. I have created eachform as a usercontrol and load them dynamical...

Deploying Asp.Net 2.0 AJAX Extsions in BIN folder

My web server does not have the framework installed and they are telling me to use the DLLs in bin folder.. is there any difference (performance, security etc) between deploying it by server installation and through bin.. ...

insert dynamic text "google ads" on a asp.net repeter

I want to insert Google ads on a asp.net repeater on the 3rd iteration. I'm trying to figure out how to do this, here is what I have. Thanks for your help <asp:Repeater ID="Repeater1" runat="server" > <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <div class="Pl"> ...

Unit testing an ASP.NET 2.0 Web service application in VS 2005.

Hi, Most of the stuff I find about unit testing ASP.NET apps seems to be for VS 2010 / later versions of .NET / Visual studio in general. I can't really find the "Create unit tests" option in Visual studio 2005 at all. Can anyone point me to how I can go about Unit testing a .NET 2.0 app in VS 2005? Thanks, Teja. ...

ASP.NET Countries List and DropDownlist change language code

I want to have a link that is like this change(en-NZ) which shows the language Im using and that page will take me to another page that has a dropdownlist of countries and their language codes from there I can select from the dropdownlist which has already selected my current language and change it for all my pages, is there any sample c...

.browser file target browser matching order

Hi I need to make my website compatible with Chrome. I have TextBox control adapter, that matches all browser (refID='default'), unfortunately it breaks pages in chrome. The simplest solution would be to keep using the old adapter for all browsers except chrome. My .browser file looks like this: <browsers> <browser id="Chrome" p...

In C# asp.net is it possible to send back a valid web page half way through a method?

When I want to redirect a user who has lost session state back to the StartPage I find Response.Redirect("~/StartPage.aspx") causes the error "Response Redirect Cannot Be Called In A Page Callback". Therefore in a Page.IsCallback situation I want to add javascript to do the redirect - this works - see code below. protected void ForceBac...

register DLL in ASP.NET

I'm getting Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string /ErrorProcess.asp, line 64 error while I try to run my project in ASP.NET. I've registered all the necessary DLLs but it is not working. Do I have to restart my machine after registration? or is there any other problem? ...

Reusing existing types in classic XML Web Services

How can I reuse existing class library types in a generated web service proxy, in Visual Studio 2008 "old-school" XML Web Service reference? Thx ...

Declarative syntax for a collection of value types in ASP.NET?

I know that in ASP.NET (talking about 2.0 here primarily) one can set a property on an object that takes a collection of things (an enumerable type I'm guessing is the trigger) and then reference it declaritivly. For example: <ObjectDataSource properties="blahblahblah"> <SelectParameters> <asp:Parameter /> </SelectParam...

Send uploadify submit/post to aspx code behind method instead of handler and close jQuery modal form

We're using Telerik's Sitefinity community edition and we've been having a fun time deploying handlers and webservices with it. As such, I'm wondering if when using Uploadify instead of the script option heading to an ashx could we post it to a server side method that can take care of the uploading? If so, would someone please be very k...

Need help with pager want empty div on current page

I created this pager script in asp.net 2.0 it was originally done in MVC but it had errors so went ahead and recreated it in asp.net 2.0 and fixed the errors. What I want to be able to do is set the current page to div element with no link just a div and maybe a class applied to it, can someone help me make this possible. Here is my code...

how to fire the event when value is there in textbox when autopostback=true,ontextchanged

Hi Guys, textbox has autopostback=true , and onTextChanged="ShowHours" , i am using textbox and calender datetime picker.when i select a date from picker date is binding to textbox .how to fire the event when value is there? regards kumar ...

BC30456: 'CreateResourceBasedLiteralControl' is not a member of

hi experts, i am getting the following error. i am using visual studio 2005. suddenly i got this error in my application. Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.frontpage_masterpage_master'. please help me asap.. thanks & regards murali ...

add, delete and update xml from an asp.net 2.0 form

I have an asp.net 2.0 (VB) application that loads an xml file into a datagrid. From there I can edit, update, delete and add new items in a web page. The problem I have is my XML file isn’t RSS compliant. If I add an extra node to my XML file then the form will no longer allow me to add new items however I can still edit and delete item...

Background Intelligent Transfer Service (BITS) Upload Problem

Hi friends, I have a problem while using Background Intelligent Transfer Service (BITS). I have a code that Upload/download the file in virtual directory. I have tested that code in my local domain on IIS6 its working very fine but when I am trying to upload the file to the external network its not working its give the error “request URL...

When calling ScriptManager.RegisterStartupScript, what is the point of the 'Type' parameter?

A minor question that I hope admits of a simple answer that I'll kick myself for not noticing. So, when we have the following overload of RegisterStartupScript public static void RegisterStartupScript( Control control, Type type, string key, string script, bool addScriptTags ) we have to provide a type as well as...

format a url address in asp.net

I want to format a URL to go back one directory. The code I have currently is formatting the URL like this http://localhost/contoso/place/category/florida-beach.aspx. But I want the links to be like http://localhost/contoso/category/good-beach.aspx. My current dir is http://localhost/contoso/place/ . So I need to go back one dir. Thanks...