asp.net

.NET - Error trying to compile Automatic Properties

I'm trying to compile a POCO with this code public class MenuItem { public string Name { get; set; } public string Url { get; set; } } I keep getting compile errors on the gets and sets with messages like: 'MenuItem.Name.get' must declare a body because it is not marked abstract or extern. What am I missing? I'm com...

Get Id using LINQ to SQL

Hi everyone, How can I get a record id after saving it into database. Which I mean is actually something like that. I have Document class (which is entity tho from DataBase) and I create an instance like Document doc = new Document() {title="Math",name="Important"}; dataContext.Documents.InsertOnSubmit(doc); dataContext.SubmitChanges...

How to import mdb to sql server.

I have a vb application. Now I have developed that same vb application in Asp.net. In vb I had used MSAccess database. In asp.net I am using Sql server. Now I want to Move or copy the MSaccess database data into Sql server. ...

Fixing a slow GridView

I am trying to determine why an asp.net grid view is so horribly slow. The grid view is contained in a custom sub class that adds a custom pager and does some special formatting. Further, the custom grid view is contained in a user control that puts the grid view in an update panel and combines it with an object data source to making the...

How to use Crystal Reports with ASP.NET?

How to use crystal Reports with ASP.Net 2.0. Any Samples/Tutorials/Examples which shows how to deploy Crystal Reports on a production Server. ...

Server Error ASP.NET 2.0

Hi Guys can you please help me with this error? What is it? Server Error in '/' Application. The request failed with HTTP status 400: Bad Request. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in t...

Enable adapter renedering with conditional basis

Hi, I was working in a web-application which uses the Adpeters to render the controls for some of the controls. I was adding a new control to a page which has already using a control rendered by the adapter. Can we make the rendering of the adapter more conditional ? If possible on control basis ? Thanks. ...

How to get DataTextField of DropDownList in javascript?

Hi, I am using a DropDownList as <asp:DropDownList ID="ddlLocationName" runat="server" DataValueField="Guid" DataTextField="LocationName" AppendDataBoundItems="false" AutoPostBack="false" onchange="LocationChange()" ></asp:DropDownList> and when I select item from dropdown the DataTextField should be displayed i...

Server-side paging with DevExpress without XPO

Is there any (relatively) easy way to implement server-side paging using DevExpress controls (either Win- or Web-ones) without using an XPO data source? By server-side paging I mean control retrieving only the records it needs to display from the database, not the whole table. ...

jquery UI Dialog and __DoPostback

Hi All I have a problem with the jquery-ui dialog in ASP.NET form, $("#pnlReceiverDialog").dialog({ autoOpen:false, modal: true, height:220, width:500, resizable :false, overlay: { opacity: 0.5,background: "black" }, buttons: { "Cancel": function() { $(this).dialog("close"); }, "Ok": function() { ...

Can I automate creating a .NET web application / virtual directory in IIS 5?

I asked this http://stackoverflow.com/questions/313877/can-i-automate-creating-a-net-web-application-in-iis a little ago, and got solutions for IIS 6 and IIS 7: IIS6 : iisweb /create C:\Rome "My Vacations" /d www.reskit.com /dontstart IIS7 : %windir%\system32\inetsrv\AppCmd ADD SITE /name:MyNewSite /bindings:http/*:81: /physicalPath:c...

ASP.Net error: "The type 'foo' exists in both "temp1.dll" and "temp2.dll"

When running a web application project, at seemingly random times a page may fail with a CS0433 error: type exists in multiple DLL's. The DLL's are all generated DLL's residing in the "Temporary ASP.NET Files" directory. ...

Linq2SQL: Update object not created in datacontext.

Normally when you update an object in linq2sql you get the object from a datacontext and use the same datacontext to save the object, right? What's the best way to update a object that hasn't been retreived by that datacontext that you use to perform the save operation, i.e. I'm using flourinefx to pass data between flex and asp.net and...

How can I get started developing a site in Arabic in ASP.NET?

I would like to develop a website using ASP.NET in an Arabic language. What would be some good places to begin? Useful advice to keep in mind? ...

Looking for a workaround for IE 6/7 "Unspecified Error" bug when accessing offsetParent; using ASP.NET AJAX and jQuery

I'm using jQuery UI's draggable and droppable libraries in a simple ASP.NET proof of concept application. This page uses the ASP.NET AJAX UpdatePanel to do partial page updates. The page allows a user to drop an item into a trashcan div, which will invoke a postback that deletes a record from the database, then rebinds the list (and othe...

ASP.NET 2.0 RijndaelManaged encryption algorithm vs. FIPS

I'm running into an issue with an ASP.NET 2.0 application. Our network folks just upped our security, and now I get the floowing error whenever I try to access the app: "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms." I've done a little research, and it sounds like ASP.NET uses the...

Template control in ASP.NET hiding content from page

I'm writing my own Modal Popup as a template control in ASP.NET. I got two template containers - one for the heading of the window and one for the actual control i want to display in the modal window (let's call it the form control). The form controls can contain server controls like buttons, textbox'es etc. It works well, except when i...

How to Save Record to Relational Tables With Linq To Sql

I have three tables like that: Articles IdArticle Title Content Tags IdTag TagName ContentTag IdContentTag Idtag IdContent When user in my site write an article with adding tags and submit, I want to save it to tables above. In traditional ways, I used to use transaction and I could do it. But How can I do it by using linq to sql? ...

FindControl in a RoleGroup in a LoginView

I can't seem to find a control in a login view. The aspx is: <asp:LoginView ID="SuperUserLV" runat="server"> <RoleGroups> <asp:RoleGroup Roles="SuperUser"> <ContentTemplate> <asp:CheckBox ID="Active" runat="server" /><br /> <asp:CheckBox ID="R...

Software to simplify displaying build status on a big visible monitor for team?

I had a little bit of budget left at year end and I wanted to start a little skunk works project to display build status what everyone was working on (our team is aobut 10 folks all told). I am thinking to buy a 47" LCD HD TV and drive it from a small pc via a browser/.NET web application. I was going to build the software over the chr...