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.
...
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>...
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) {
...
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 ?
...
$(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...
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?
...
Could someone help me with the precautions that are to be taken to keep the asp.net / cloud website secure?
...
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...
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...
I cam currentlyt using ANTS Anyone knows of a free solution?
Thanks
Luis
...
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...
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 ...
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...
Hi
I have one Listbox and a List of data
I want to bind the list to listbox.
So any Idea any example please
...
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...
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...
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/...
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)
...
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 ...
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...