asp.net

why grid view doesnt go to invisible mode

I have following Query y my GridView is not go to invisible on selected index change of course please et me know this is my code protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { FillYear(); FillCompany(); FillCourseName(); } Util.JQueryUtils.RegisterTextBoxForDatePick...

multi column dropdownlist using C#

I want to bind data(For ex: Employee name, Employee ID from Employee) to a dropdownlist and the data should be displayed in dropdownlist as two columns. I don't want to separate this columns by using any special characters like | or '-'. I want to display them as different columns in a dropdownlist. How can i achieve this using .net and...

Issues with running SSIS packages programmatically

Hi, I have spent days trying to solve this problem and still stuck with this and I have posted some questions already on this website, but didn't get satisfactory answers. I am trying to be more clear this time and hope to get a better answer. I have gone through this article already http://blogs.msdn.com/b/michen/archive/2007/03/22/r...

ASP.NET MVC Form Values not being set on Post

Hi All, I have a model object called Problem: [Table(Name = "Problems")] public class Problem { [HiddenInput(DisplayValue = false)] [Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)] public int ProblemId { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TablePerso...

windows server Active Directory users data into windows phone 7 (windows mobile 7)?

How do I connect to windows server active directory using windows phone 7 without using a web service/ wcf. Microsoft didn't provide "System.DirectorySerice" namespace in windows compact framework. ...

ASP.net c# File being used by another process

I create thumbnails with the following page, Thumbnail.ashx: <%@ WebHandler Language="C#" Class="Thumbnail" %> using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Web; public class Thumbnail : IHttpHandler { private int _thumbnailSize = 150; public v...

content pageholder stretching to the height

Hi, in my web application using visual studio 2008 (asp .net), i have designed master with menu control and included it in default.aspx.. the contentplaceholder stretches to width but not with height.... help me to stretch the content to the bottom of screen... thanks ...

Server was unable to process request

Hi Friends, I have made web service, when it is accessed by remote computer to send me the data using this web service then the following errors shows on the remote computer:- "Server was unable to process request..A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not fo...

Opening a new window in asp.net

Hi all, When i click a particular video in grid view that video should be played in a new window. When i click a video in grid view i will check certain conditions in server side page. Only if that condition is true i want to play that video in new window (or) tab. If that condition is false then i want to play the selected video...

how to add an UserControl into another UserControl?

I have a UserControl called UC_Widget, it inheriting from System.Web.UI.UserControl and ITextControl and it also overide the function AddParsedSubObject.when i used it like below,it runs well. <uc1:UC_Widget ID="UC_Widget1" runat="server"> hello world </uc1:UC_Widget> but,it come out a problem: if i want to use this control to contai...

can we inherit more then on class in asp.net aspx page ?

I want to inherit more then one class is there any method ? For instance in login.aspx page: <%@ page language="c#" codefile="nishant.aspx.cs" autowireup="true" inherit="nishant"%> now code behind file nishant.aspx.cs: class nishant { //code... } class bill { //code..... } now i want to inherit bill class then how i will ? ...

ASP.NET Accessing web control inside DataList control

Am not sure why I cannot access my Label control which was inside the Panel and the Panel is inside the DataList <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource1" Width="100%"> <ItemTemplate> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <!-- post details --> ...

Load FlowPlayer video dynamically into asp.net page

How can I do this? I tried passing in the name of the file via querstrying but it looks like flowplayer wants to load it before the Request.Querstring["videoName"] value is retrieved. ...

when we will use user control ?

when and where we will use user control ? actually i want to ask it's best practices. i have read on msdn about user control there it was written . At times, you might need functionality in a control that is not provided by the built-in ASP.NET Web server controls. In those cases, you can create your own controls. You have two options....

Validations in asp.net & C#

Which is best — client-side validation or server-side validation? ...

Scroll ListBox to top selection

Is there any way to programmatically scroll down a multiselect ListBox to show the top selection? Using ASP.NET here. UPDATE (to clarify): There's a form with a multiselect ListBox with a lot of items (country list), so not all of them are visible at the same time. The user makes one or several selections and saves the form. Later, the ...

clearing checkboxlist

on my save button i want to clear all values of form i did the following for CheckBoxList beach. But it doesn't work. Why so, it doesn't make values clear for checkbox list Branch is filled like this: protected void course_SelectedIndexChanged(object sender, EventArgs e) { try { int courseId = Convert.ToInt32(course....

Importing XML into Excel over HTTP

Hi, I've got a simple (inline) ASPX page that is ouputting XML. I want to import this XML into Excel 2007 using Data | From Other Sources | From XML Data Import. If I specify the URL for my APSX page Excel opens the result into the Text Import Wizard :( If I open my URL directly from Notepad, save the content to a file and import th...

With out using Microsoft.Application.Service namespace in windows server 2003 on appbric server environment?

I am using Windows AppFabric Server in my dotnet application and hosted using windows 2003 server.I am using Microsoft.Application.Service name space in my web application..if suppose i have not used appfabic server used in this situation..this Microsoft.Application.Service namespace will support?...is this namespace is interrelated? ...

How to write an NPAPI plugin with functionality of WScript.Shell

I am very new to Web development, and have been writing some javascript that makes use of WScript.Shell via ActiveX. I am aware that browsers other than IE don't support ActiveX though. After doing some digging through Google, I have discovered that I may be able to do something similar on all web kit based browsers via NPAPI. I have n...