asp.net

how to bind the data from database to the dropdown?

Suppose in .aspx page their is dropdown in which i want to bind two coloumn in that dropdown.for example :- in database their two column of First_name ,Last_name .I want these two columns value come in a single dropdown using C#. How to do that? Please tell me. ...

ASP.NET JavaScript from MasterPage doesn't work

Hello. I put common(for all my content pages) js to head section at my masterpage. <head runat="server"> <script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script> <script type="text/javascript" src="../Scripts/jquery.corner.js?v2.11"></script> <script type="text/javascript" src="../Scripts/jquery.timers.js"></script>...

A call error on a web method using ajax platform... Unable to connect to the remote server ?

the methods below used to work but now I get this error: Error: Sys.Net.WebServiceFailedException: The server method ' failed with the following error: System.Net.WebException-- Unable to connect to the remote server how can I fix it? function CallMe() { // call server side method PageMethods.GetData(function (result) { ...

Disable button in update panel on async postback

I have multiple update panels with various asp buttons on a single page. I want to disable the buttons which caused the postback in update panel untill it completes. Is there a way to avoid using a third party control for this? through JQuery or any other method ? ...

My Return false is not working in this code..using jquery

$(function () { $('#form4').submit(function () { var val = $("#txtNewServiceTypeCategory").val(); $("#ServiceTypeCategoryName").children("option").each(function () { var $this = $(this); if (val == $this.val()) { alert("ServiceTypeCategory Name is already added! Please Choose D...

Running shell scripts on a remote machine from an ASP.Net/Winforms application

I have some shell scripts on a Windows 2003 server. These scripts process some flat files and upload data to Oracle using sqlldr. Currently I'm using telnet to go into the box and run each of these scripts manually. Is there a way that these scripts can be run from a ASP.Net/Winforms application? ...

website security

Could someone help me with the precautions that are to be taken to keep the asp.net / cloud website secure? ...

Hide outer tables in ASP.net

One of the features of a website I'm working on is that you can "maximize" the contents of the page, basically removing all the outer elements of the page, navigation, banners, etc. This is currently done in what seems like the worst possible way: <% if (shouldBreakFrame) { %><!--#include file="header.include" --><% } %> // Contents o...

"A network-related or instance-specific error occurred.." on Production Server Deployment

This is probably something simple but i just cannot figure it out so i'm just going to put it out there. In my c# class library i have a connection string Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\As.mdf;Integrated Security=True;User Instance=True And this works fine in my local development environment. However this cl...

Freeware asp.net profiler

I cam currentlyt using ANTS Anyone knows of a free solution? Thanks Luis ...

DataList and Checkbox

Hi there, I have checkbox in the DataList. Now I need to execute a code-behind when the checkbox is ticked. As far as I know the itemcommand in datalist will not triggered when the checkbox is ticked. I even tried to put the onCheckChanged event in the checkbox but it even worse the situation (not just does not trigger the event but als...

What is better solution to passing an uknown parameter problem?

Hi guys. My problem is like this: In ASP DetailsView component we have three different EventArgs for different DB operations: DetailsViewInsertedEventArgs, DetailsViewDeletedEventArgs, DetailsViewUpdatedEventArgs. All above EventArgs have common properites, I am interested in two of them: Exception and ExceptionHandled. Unfortunately ...

Filters on an N:M relation

It's simple. I have three tables, for example: Persons(ID, Name, etc.) Lessons(ID, ClassroomID, Description, Etc.) Person_Lesson_Link(PersonID, LessonID) The third table links the two others in an N:M relationship. A person can follow multiple lessons, and a lesson is given to multiple persons. I've created an entity model around these t...

How to fill listbox from a List without any loop

Hi I have one Listbox and a List of data I want to bind the list to listbox. So any Idea any example please ...

Load template from user control

Hello, Im working with Sitefinity and I'm developing a Control Designer - however i dont think my question is specific to SiteFinity. I have a class such as: public class CaseStudyFeaturedItem : CaseStudySelectorControlDEsignerBase The class it is inherriting from is itself inheriting from UserControl, like so: public class CaseStud...

IIS Request Timeout on long ASP.NET operation

I am experiencing a request timeout from IIS when I run a long operation. Behind the scene my ASP.NET application is processing data, but the number of records being processed is great, and thus the operation is taking a long time. However, I think IIS times out the session. Is this a problem with IIS or ASP.NET session? Thanks in adv...

Asp.net Url Rewriting Problem

Hi; Global.asax Code protected void Application_BeginRequest(object sender, EventArgs e) { string fullOrigionalpath = Request.Url.ToString(); if (fullOrigionalpath.Contains("/Form/Electronic/Led")) { Context.RewritePath("/Form/Handler.aspx?Id=Led&cat=Electronic"); } } How to make url map ? Url: /Form/Car/Mercedes Map: /Form/...

Send An Email On Specific Date & TIme By ASP.Net and Using SMTP

Hi i have made application...that can have numbers of Event on Specified Date, So i want to code tat when time for event is arrived so tat automatically the participant get information about the event..so i want to send email to all participant before a day..so suggest me the best idea of links Thanks (In Advance) ...

Adding usercontrol twice in asp.net

Hi, I got a user control that has a few links, one of them is "add article". It's placed on top of the article and bottom of it. When the user clicks on it, the text changes to 'article added'. But the text only gets changed for one of the links which has been clicked on. How can I make it so that both text changes no matter which one ...

ASP.NET MVC using the Repository Pattern

Currently im using EF and using its datacontext directly in all of my actions, but since i started reading about loose coupling and testability im thinking that thats not the best way to go. Im trying to understand all the pro's and con's before i start refactor all my current code. Problem 1: Considering that every entity needs its own...