asp.net-3.5

How do I get asp.net 3.5 validator messages to take up space in a form only when displayed?

My form in asp.net 3.5 is set up inside an html table, and is rendering with enough space to display all the validator error messages attached to the textboxes, checkboxes, etc. in each row. My table is 3 columns, with column one labeling each control, column 2 holding the controls themselves, and column 3 being reserved for the valida...

Why linq LinqServerModeData not working?

I work on Northwind database <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="LinqServerModeDataSource1" KeyFieldName="CategoryID"> <Columns> <dxwgv:GridViewCommandColumn VisibleIndex="0"> <EditButton Visible="True...

In linq how to work on Storprocedure

I work on Northwind database.server MS2008.In linq i active a sp then show me the bellow error: Syntax : <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="LinqServerModeDataSource1" KeyFieldName="CategoryID"> <Columns> <dxwgv:GridViewCom...

Referencing Namespace from Web.Config

Can I declare namespaces in the web.config so that I don't have to write using statements for each namespace in each of my codebehind files? ...

On-Click Event fires first time, but not subsequent times

I have a LinkButton which fires an OnClick event to update some Labels; however, after the first firing of OnClick, it won't fire again when I click another (or the same) LinkButton which runs the same OnClick event. (It's a list of people, each a LinkButton, and clicking on one brings up their details) If I leave the page a few minutes...

Disable ValidateInput for a server control

Hello, I'm using ASP.NET 3.5. I have a page in which i want to display a list in a formatted way: <asp:RadioButtonList runat="server" ID="Options"> <asp:ListItem Text="Yes.<br /><span>Detailed info.</span>" /> <asp:ListItem Text="No.<br /><span>Detailed info.</span>" /> </asp:RadioButtonList> Now the somewhat obvious problem ...

DropDownLists in ASPxGridView - Show message Specified method is not supported.

<div> <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" ClientInstanceName="ASPxGridView1" DataSourceID="LinqServerModeDataSource1" KeyFieldName="ProductID" oncelleditorinitialize="ASPxGridView1_CellEditorInitialize" onrowdeleting="ASPxGridView1_RowDeleting" o...

Save table data as a XML file

Bellow is my SQL syntax CREATE TABLE [dbo].[Security_Module_Info]( [Client_Company_ID] [smallint] NOT NULL, [Module_ID] [tinyint] NOT NULL, [Module_Name] [nvarchar](50) NULL, [Module_Description] [nvarchar](200) NULL, [Is_Active] [bit] NULL, [Active_Date] [smalldatetime] NULL, [Record_Status] [tinyNULL, [...

Change Default "Default.aspx" to "Index.aspx" on Visual Studio 2010

Whenever I create a new Web Form on Visual Studio 2010, the default name is always "Default.aspx". This is a slight pain as I'm having to change it to "Index.aspx" each time. How can I change this so that "Index.aspx" is the default name? Thanks. ...

Dynamic Calendar control

Hi, How to generate dynamic calendar controls based on default calendar control's selectionchanged event? ...

How to bind AspxMenu by .xml file value

XElement xml = new XElement("contacts", from c in db.Categories orderby c.CategoryID select new XElement("contact", new XAttribute("contactId", c.CategoryID), new XElement("firstName", c.CategoryName), new XElement("lastName", c.Desc...

create css class on the fly in codebehind

I have a search page that is used in multiple places with multiple 'themes' throughout my site. I have a few divs that can have their background color changed based on a radio button selection (whether they are enabled or not). I can do this just fine by changing the css class of the div on the fly with javascript. However, these theme...

how to create dynamic Aspxmenu from database

*I work on C#.*I want to develop asp.net application which contains menu but menu items should be generated from database. My intension is that Administrator can change menu items by working only on database, no need to change front end any how. ** For example: Web page contains Menu as 1. Home 2. About Us 3. Contact Us ** ...

How to create Sub Item on Xml Linq

In northwind database .I use order and orderDetails table.I want to create a xml file ,where order show on Item tag on XML and orderdetails show on sub item.Suppose orderid=1 show on Item tag then orderdetais**table information of **OrderID=1 show on sub-Item. XElement xml = new XElement("MyMenu", from c in db.Ord...

How to avoid input space and special character

I work on asp.net C# Window application .in AspxTextbox i want to avoid space and arrow key and also special character .I want just user can input number 0 to 9 and a to z character ...

How to control Loading panel on button click

Work on C#,Asp.net, on my page Click on AspxButton i want to show loading panel with text processing...., After complete the whole event work ,Loading panel become false. On button click how to control Loading Panel ...

How to generate the below XML format in Linq XML.

Below are my table structures; using those tables I want to create XML file. CREATE TABLE [dbo].[Security_Module_Menu]( [Client_Company_ID] [smallint] NOT NULL, [Module_ID] [tinyint] NOT NULL,Module_ID,Menu_ID,Reference_Menu_ID [Menu_ID] [int] NOT NULL, [Reference_Menu_ID] [int] NULL, [Menu_Name] [nvarchar](50) NULL,...

how to write data more than one excel sheet

hi, i have 3 datatables .i need to write these three datatable data in an excel sheet. as we know that under one excel sheet i can have (more than 1 sheet). in a same way i need to write my 3 datatable data into one excel(where sheet1 will conatin dattable1,sheet2 will conatin dattable2,sheet3 will conatin dattable3) this is the...

How to loading XML files from a file

my xml is bellow: <Demo> <ClientCompanyId CompanyId="1"> <MyMenu> <module Text="Basic Settings" ModID="Mod1" ModuleID="1" MenuType="0" Perm="False"> <menu Text="Forms" MID="1-1" ParentID="Mod1" MenuDescription="Mod" ModuleID="1" MenuType="0" Perm="False"> <Leaf Text="LookUp" MID="1-3" ParentID="1" MenuDescription="" ModuleID="1" MenuTyp...

How to AspxMenu fill from xml file

On my page I have two AspxMenu.Click on Master Menu correspondent value will show on Child menu XML syntax: <Demo> <ClientCompanyId CompanyId="1"> <MyMenu> <module Text="Basic Settings" ModID="Mod1" ModuleID="1" MenuType="0" Perm="False"> <menu Text="Forms" MID="1-1" ParentID="Mod1" MenuDescription="Mod" ModuleID="1" MenuType="0" Perm...