asp.net

C# wrapper or samples for Google Site Search

Anybody seen any c# code examples for using Google site search to send a request to the Google search api and return the results in xml? ...

How to implement caching for the whole page except user control?

Hello, I have aspx page with a user control. I want to implement caching for the entire page except the user control. Please any help to implement this. Thanks, Pradeep ...

ASP.NET Method error 500 on dropdown

I get a method error 500 on my dropdown. I've seen other posts, but those solutions did not work for me. Strange thing is that if I call the webservice outside the page (directly) I do get the desired response. But via the dropdown it seems that the webservice is not even called... Here's my code: <asp:DropDownList ID="ddlCountries" ru...

ASP.NET 4.0 - How can I make my customized panel control more lightweight?

I've created a custom control that inherits from panel for the purpose of wrapping a drop-shadow around HTML entities. The creation of the control itself was simple enough, but I'd like to utilize this control up to 100 times on the same page. I'm concerned about the additional viewstate size or other bits of additional overhead that ma...

How to replace every second space, but not first/last with "&nbsp;" in a given string?

Hello, let's say I have the following string: string s = "A B C D TESTTEST BLA BLA TEST TEST2" Then I need the following: "A B &nbsp;C &nbsp; D &nbsp;&nbsp; TESTTEST &nbsp;BLA BLA &nbsp; &nbsp;&nbsp; TEST &nbsp; &nbsp; &nbsp; TEST2" So the rules are: a) replace every second space (between non space chars) with &n...

Add pre-defined icon to ASP page

I'm making a table with data, and the last column needs to be have a recycle-bin icon for each row, allowing me to delete that row. Problem is, I can't find this icon or how to add it. This is an <asp:Table> Web Control and I'm adding rows and cells via the C# file behind it. I'm thinking of using something like: TableCell cell = new ...

asp.net 4.0 - When I create a custom control that inherits from HtmlContainerControl, I can't get it to show up in the VS Toolbox

I've tried two methods to include my custom control in the toolbox. First, I tried to drag the DLL onto my toolbox, but only some of my controls appeared. Again, when I did it the "choose items" way, only some of my controls appeared. Any of my custom controls that inherit from Web.UI.HtmlControls.HtmlContainerControl don't show up. ...

Telerik RadWindows / How Open Telerik RadWindows With A DocMenu

hi my Dear Friends : I Have A DocMenu That is working with jquery... one of it's item is like this : <a class="dock-item" href="#"> <img src="JQueryDocMenu/Images/1.png" alt="Test" /><span>Test</span></a> i am using Telerik Rad Windiws For pop up Windows... when i am using a button or something like that , so ev...

Warning for limited Access

This is regarding ASP.NET MVC. Let's say I have a web site that is accessed publicly name as "www.welcomeeveryone.com". There is also a web site name as "www.companyemployeeonly.com" that is allowed only for certain range of IP address. Employees have to go to "www.welcomeeveryone.com" first in order to have a link for "www.companyemploy...

any one know how i add file manager to asp.net ajax toolkit editor?

any one know file manager for asp.net ajax toolkit editor? i know there is other editors but i want know if ajax toolkit editor can have file or/and image manager . thank you. ...

Need sample Applications to develop my own site and application in asp.net using c#

I am developing a small and simple web application for a hotel in asp.net using C#. It is a web site which gives hotels information and we can order items from that site. I want a reference source code to develop this application. Before a year there were sample application on www.asp.net such as myWebPageStarterKit. But now there are ...

Any ASP.NET Opensource project that works on both SQL Server and MS Access DB ?

I searched on Google and I can't find any, do you know some ? ...

asp.net session in usercontrol empty until page refresh

I'm creating some sort of "wishlist" where users can click on any item in a repeater (clicking on a button). When a users clicks the button I add that item to a session("wishlist"). The session contains a list of strings that are shown in a wishlist. To render the wishlist on several pages I'm using a user control that contains a repe...

How to learn threading in asp.net?

could somebody tell me the best example in coding form t learn the threading in c#? ...

MultiView issue with validation in form

Hi all, Currently I am working on a user control which has the following "layout": the user control elements are placed inside an Update Panel inside the Update Panel I have a MultiView control with 4 views: first view 2 buttons to select the type of the user to create (clicking one button changes the active view to the second view, c...

Why can I not combine if and eval? And whats the best alternative?

In a Asp Net data bound control one can use the nice Eval() syntax: <div><%# Eval("MyProp") %></div> but it's not possible to combine with a conditional statement is it?: <% if (Eval("MyProp")!="") { %> <div><%# Eval("MyProp") %></div> <%} %> Would be nice to have that option. So - my option is to put part of the markup in CodeBe...

ASP .NET upgrade to .NET or move to MVC

Hello, I'm fairly new to the .NET ASP and MVC. My company has developed an application using ASP2. They are considering upgrades: I'd like to know what the big advantages would be in moving to ASP .NET 4 and also would there be even greater advantages in using MVC4. Just some background. The application is internal and will not face...

Could not determine a MetaTable

I have simple application with FormView and SQLDataSource. When I check "Enable dynamic data support" I get following error: Could not determine a MetaTable. A MetaTable could not be determined for the data source 'SqlDataSource1' and one could not be inferred from the request URL. Make sure that the table is mapped to the ...

How to call a javascript function before OnInit() - ASP.NET

Hello I'm calculating the screen size of the browser and storing it in a hidden field and i'm dynamically creating controls on the page OnInit() based on the sizes. But OnInit() is getting fired before javascript function fires to calculate the screen size. Any ideas? ...

Opensource ASP.NET CMS or ECommerce that has sites which proposes beautifull templates ?

On PHP Platforms like Worldpress, Joomla, OSCommerce there are plenty of beautifull templates some even free, I cannot find any asp.net cms (the ones in Microsoft Gallery are boring) that has such a variety of templates, am I missing something in my search or do you know some ? ...