asp.net

Accessing crystal reports in an ASP.NET application?

I need to access a Crystal Report that is deployed on a Crystal Report server. I want to display this report on my ASP.NET page. However, I don't want to include the report file in my project. I need to use the report file deployed on crystal report server. Can you please guide me on how to do this? ...

ASP.Net MVC RC1 RouteCollection.MapRoute Problem

I have a problem with the RC1 version of ASP.Net MVC. Whenever I add a Route before the "Default" route, the resulting Urls created are for the first Route added. Here is my Routing in Global.asax.cs routes.MapRoute( "product-detailed", "Products/{controller}/{action}/{id}", new { controller = "Produ...

Is there any free web based web.config editor?

Does anyone know a web based editor for the web.config? I want to offer the possibility of changing and adding settings through a nice web interface. Update: I am aware of the security issues but still i want to make it possible. The application is an internal app which is not available for outside. I configure authorization within web....

How do I create my first database for .NET development?

Ok! I'm ready to embark on some .NET development for the first time. I've recently installed Microsoft Visual Studio which included Microsoft SQL Sever 2005. What is the prefered method for programming against a development database? I want to write an ASP.NET application that uses a database and I'm not sure how to create one. In...

How can i get thumbnails of autocad(dwg) files and show them into "asp:image" control?

I am trying to write a web base document management system(ASP.NET,C#),now i need to show thumbnails of recived files when users viewing them.Thanks for any solutions... ...

.NET 3.5 GridView - Select multiple rows with Control key press

Hi, I am working on a .NET 3.5 web application and i am using GridView. I want to select multiple rows when the user presses control key and clicks on the row. If the clicks without pressing control key i want to do only single row selection. How to check whether user has pressed Control key in javascript and highlight all the selec...

Fluent Nhibernate mapping inner join on 3 tables

Datastructure is: Table[Questionnaire] the top node Table[QuestionGroup] just a grouping for heading etc Table[QuestionnaireQuestion] mapping [Question]<->[QuestionGroup]s many to many relationship and the [Questionnaire]<->[Question]s many to many relationship Table[Question] One question can exist in many questionnaires/questiongro...

how do you pass a parameter to an asp.net page method using jquery/ajax?

I'm trying to pass parameters to my static web method (which is in an asp.net page). I'm trying to pass the "test1" param with a value of "myvalue". Any ideas on what I am doing wrong? $.ajax({ type: "POST", url: "WebForm1.aspx/WebMethod1", data: {"test1": "myvalue"}, contentType: "application/json; charset=utf-8", d...

ASP.NET ObjectDataSource - reference static properties for parameter names

I use a lot of ObjectDataSources (ods) in my website projects. Almost all of my ods's use SessionParameters; typing the session parameter name into the SessionField property of the ods is annoying and prone to typos. I have a static SessionParams class where I store all the session parameter names, is it possible to reference the membe...

Authorization, authentication when doing AJAX (jquery) calls to .net web services (asmx, wcf, etc), what do I need to know?

Hi all I am prototyping a AJAX based web application running up against ASP.NET, where I need to have general authorization to different parts of the site, and also have to make sure that various web methods/web services can't be called by unauthorized users (from a rouge html page for example). Is there anything I need to be aware of,...

ASP.net MVC Routes

Hi guys, I am currently creating a mobile version of my company's site and using it as a time to learn asp.net mvc. The URLs which I'm meant to be creating are as follows Jobs/in/location Jobs/for/jobTitle Jobs/in/location/for/jobtitle jobs/for/jobtitle/in/location Now the more types we add the more I'll need to add and differ...

Getting errorInfo back from tryParse()

Im playing around with TryParse() But lets say the parsing fails, then returns false, and ... nothing.. Is there a way to get info back about what failed the parsing? I saw something like that at codeproject, but i didnt really understand it. Thanks :) ...

What Literal control is used for in asp.net? and difference between it and Label?

What Literal control is used for in asp.net? and What is the difference between them and Label control? ...

Dynamically adding controls to the page with ASP.NET Ajax library

Is it possible, with the ASP.NET Ajax library (Sys....) to add controls to the page. For example in JQuery I would perform $("#mydiv").append($("#anotherdiv input")); Or something similar. I want to do this without wrapping everything in an UpdatePanel if possible, preferably through clientside scripting. But I have a feeling this wil...

Using doPostBack Function in asp.net

Hi, i want to use doPostBack function in my link.When user clicks it,it wont redirect to another page and page will be postback.I am using this code but it doesnt function.Where do i miss? < a id="Sample" href="javascript:__doPostBack('__PAGE','');"> function __doPostBack(eventTarget, eventArgument) { var theform = documen...

GridView FindControl returns null when HeaderText is set

I have a GridView... <asp:GridView EnableViewState="true" ID="grdResults" runat="server" CssClass="resultsGrid" OnRowDataBound="grdResults_OnRowDataBound" AutoGenerateColumns="false" HeaderStyle-CssClass="header" OnRo...

Why am I getting this generic, non-descript error in GDI+ when trying to save a PNG?

I have a function that dynamically adds text to an image in a predesignated spot. Originally I did it with jpegs, and it was working. I switched to PNG so the images would be better quality, as the original jpegs were kind of pixely. Anyway, here is my code. It executes down to the oBitmap.Save(), then dies with "A General Error Has O...

ASP.NET: Making something similar to Facebook application bar

I am a beginning ASP.NET programmer. I am just wondering if there is any built-in control that is close to an application bar at the bottom of Facebook, or is such a function only available through the use of JavaScript/AJAX? ...

Events and Event handling in VB

I have a web user control which my aspx page contains. During testing I discovered a exception being thrown. (The general rule that is in place, is that when an exception occurs the user is redirected to a excpetion page detailing the error) Once the excpetion was handled in my User Control I wanted to throw it to the page where the pa...

jQuery's ajax is causing a full page refresh in FireFox

I'm making an ajax call with jQuery. The ajax call works fine in IE 7, but FireFox 3 always does a full page refresh when making this call. The ajax call is POSTing to an ASP.NET page method. Is there a problem in jQuery or am I just missing some setting? $.ajax({ async: false, type: "POST", url: "Default.aspx/DoSomething", data: "...