asp.net

How to recycle my asp.net web application in production server?

I have made changes to my global.asax file so i want to recycle my web application to make the changes work. How to safely recycle my asp.net web application in production server? Any ideas.. ...

Read entire File Content asp.net???

Greetings everyone, i've been searching for awhile now and nothing seems to satisfy my desired output... All i want to achieved is to get the whole and same content of any file i uploaded, for my editing purposes in my editor w/c retrieves file from the database. i.e of files are ".doc and .txt"and by the way what i meant by same conten...

Menu Control in master page

hi, Im developing a asp.net web application using visual studio 2008. in my application i have developed a master page which contains logo and menus. also i have included that master in default.aspx.. Including this master to all the navigate urls for menus is time consuming(since having many menus) help me to load the navigate urls in t...

Optimal way to display dynamic data in a grid-like structure

I have a requirement where I would not know the columns and any result set information at design-time, so I'd be generating the data-display control dynamically. What is the most suitable way to display this type of information on-the-fly in a table/grid like structure on an ASP.NET page considering the following parameters (in order of...

hide url in asp.net MVC

actually i just want to show main address of my site like "http://localhost/website/" and want to keep this address for my all of views(security Purpose so that after login no one can navigate through address bar not also for those pages for which person is authenticated person should only supposed to navigate from menus) which i wi...

what is the future of ASP.NET?

i am beginner to asp.net...just want to know the future technology of asp.net....can one know that.... ...

Add an assembly to the ASP.NET AppDomain from the hosting domain.

I would like to load an assembly into ASP.NET's AppDomain from the another app domain. Microsoft's Cassini does this by calling an internal class (BuildManagerHost.RegisterAssembly). I would like to do this using just public APIs, at least on the Mono platform because this internal class does not exist there. What I have tried: AppDo...

asp.net free open source cms

I m looking for very basic level of asp.net web forms CMS.. not very mature one like umbraco. please suggest ...

How to create stored procedure in sql server and call that procedure from C# code behind with some parameters to that procedure

I am trying to create the following stored procedure in sql server Lat and Lng are the parameters being passed from c# code behind .But I am not able to create this stored procedure it indicates with error saying undefined column name Lat,Lng CREATE FUNCTION spherical_distance(@a float, @b float, @c float) RETURNS float AS BEGIN RET...

Good ways of using CSS in Visual Studio

I searched a lot around here, and did not find anything spectacular about using CSS in Visual Studio. Many people talk around, but not specifically. But I just want to know if there are some simple ways of managing CSS and collaborating it with ASP.NET pages and stuff in VS. Theming is out of discussion for today. I would gladly accept...

Can Customcontrol event can be overriddden?

I have a gridview customcontrol, for that paging event has defined in seperate class library. Can i write an paging event in my aspx.cs where i am using the customcontrol instead of calling that event from seperate class file ...

How 'Sys._application' javascript error suddenly came up?

A javascript error suddenly came up throughout all files containing <asp:ScriptManager..>, error message is as below, Error: Sys.ArgumentTypeException: OBject of type 'Sys_Application' cannot be converted to type 'Sys._Application'/ Parameter name: instance I resolved the issue by adding 'ScriptMode="Release"' to ScriptMana...

Dual listbox, change element not possible

Hello, The code below works fines when I "hardcode" values but when I add the runat="server" with a binding in the code behind (for the sourceList), I can't anymore add/remove element from a list to another via jQuery Any idea ? <div id="Global"> <select size="10" runat="server" style="width:150px;" class="testMe" id="sourceSelect...

Detect if a web request is the result of an <img src=""> tag

If you have <img src=""> on your page, the image load will result in another web request to the page that was originally loaded. Is there a way (in ASP.NET) to detect that the web request was the result of being loaded for an <img> tag like this? The only difference I can find is the HTTP_ACCEPT value of */* for <IMG> requests, vs. a l...

Access Facebook UserId in Facebook Canvas before OAuth Authentification

In my facebook canvas applikation, i store the access token in session. (I use ASP.NET MVC) But i want to store the access token in a database along with the facebook user id that i can save different access tokens for different facebook users accessing my application. So when i query the facebook user id and if it doen't return any ac...

Enable disable tabs in a tab container

I have a tab container in aspx page and i want to enable disable the last tab in aspx page my tab container is like below <asp:TabContainer runat="server" ID="tabContainer"> <asp:TabPanel runat="server" ID="tabSettings" HeaderText="Settings"> <HeaderTemplate>Settings</HeaderTemplate> <ContentTemplate> <spsp:SlidingParametersSettingsPage...

Access Javascript function on Default.aspx from web Control

I have some ajax fucntions on my default.aspx that I use for saving data to my db. I have the form on my web control. When I try calling the function from my button which resides on the web control. I get an error. Any help? function ShowAvailability() { $.ajax({ type: "POST", url: "Default.aspx/CheckEmail", data: '{usermai...

Telrik grid extension for export

Hello, I want to take the export of my telerik grid data. My question is from that page:So please See the url: http://www.telerik.com/support/kb/aspnet-mvc/grid/export-to-excel.aspx At the above url page I found the way to export the grid data, but one thing which is not make me clear is that in controller the action Export(int page...

How to center one div in form

I work on C# Asp.net Main div ---- table want to show this div on middle of the form.i want to build a login form.my table contain User name:**(it's a lable,on browser it's broken like user name : show why?)** password: <div id="main"> <table width="600px" border="1"> ...

Error while adding service reference for a wcf service

Hi, I am getting an error when i try to add a service reference of a WCF service. Error details is below. My web service is hosted on a different server and my client is on different server. When i run the service directly from IE i can see the service but adding it in .net web application i get error. Please advise There was an err...