asp.net

create 3 identical websites that uses diffrent resources

Hi guys i am starting a new web project that contains 3 identical sites the only thing that differs is that each site got its own resources(database with asp.net membership, xml, web.config). i would like to know if it is possible to setup a website project that uses different resources for different sub folders and how can i setup vir...

asp.net mvc multiple values to route

Hi guys, is there a way to send multiple parameters to controller as one parameter? for example, if I have route: {controller}/{action}/{languages} can parameter languages be array of strings? if it does, how to use it...how to send array to controller and how to parse it in controller method? thanks Marko ...

Using SASS with ASP.NET

I'm looking into ways to use SASS (Syntactically Awesome StyleSheets) from the Ruby HAML package in an ASP.NET environment. Ideally, I would like compilation of SASS files into CSS to be a seamless part of the build process. What are the best ways to this integration? Alternatively, are there other CSS-generation tools that are better s...

Creating an Infragistics Edit Template using code

Hi, We currently use Infragistics grid and we don't bind our datasets until run time, and then setup the grid settings in code. This seems a bit long winded, but its the way our senior developer wants it done. I would like to look into using the edit template and I was wondering if there was a way of auto generating an edit template f...

ASP.NET dynamic iframe on IIS

I know they are bad practice but I have a real need on an internal website for an iframe. I achieved this using the following code behind code on the go button and the iframe html code below. frame1.Visible = true; frame1.Attributes["src"] = "http://freckles/bksb_ict/frmDiagnostic.aspx?" + args; <iframe id="frame1" scrolling="auto" sty...

Screen Readers For Testing Website Accessibility

My website is designed to meet the accessibility guidelines. I'm HOPING that this means screen readers should work well with it...... But I have two questions Is this a fair assumption to make? Are there any free/cheap screen readers clients I can use to test or online emulators? ...

ASP.NET MVC – Database Driven Menu

I have a database menu structure which I would like to add to the site.master file. I’ve looked at other questions on StackOverflow but cannot get this to work on my website. How do I add a User Control to the Site.Master file? Menu.ascx <%foreach (MainMenuSort mainMenuSort in (List<MainMenuSort>)ViewData["MainMenuSortListDisplay"]) ...

Web Application Project @Reference tag

I am converting a web site project to a web application project in VS 2008 and i've run across a query regarding dynamically loading user controls. <%@ Reference Control="~/UserControls/MyUserControl.ascx" %> and then in the page I simply called... Dim ucSupplierDetails As New ASP.usercontrols_myusercontrol_ascx Sadly when updatein...

Mapping WSDL enumeration to string in ASP.NET webservice

Hi, Background: I'm in the process of creating a web service using ASP.NET 2.0. This web service provides another interface to an existing web form which contains selection boxes dynamically populated from a database. My first draft of the web service accepted a string for each of these and then ensured that it was valid, throwing back...

ExecuteNonQuery returns -1 even though the execution was successful

I'm running an asp.net 2.0 web application. Suddenly this morning, ExecuteNonQuery started returning -1, even though the commands in the SP that ExecuteNonQuery is running, are executing (I see items inserted and updated in the DB), and there is no exception thrown. This happens only when I am connected to our production DB. When I'm co...

ASP.NET MVC How to specify additional parameters in POST method?

Hi, in my MVC application I have a controller (ProjectController) which has an action (create). The create function accepts a projectEntity (custom 3d party datalayer component) as a parameter. The framework automatically binds the entered form values to the projectEntity object. This is the create-function signature: <AcceptVerbs(Htt...

for AJAX implementation : please suggest

which one should use i have following options available ASP.NET ajax with its ajax control toolkit controls ASP.NET ajax with jQuery Ajax Pro http://www.ajaxpro.info/ Please suggest which one to use keeping in mind performance and page size. Please if any one can shed some light on pros and cons of each of the above Thanks ...

Importing HTML in Word 2003 using C#

I am trying to export the web page content into Word. In word 2007 the datas are displaying in correct format. But in case of word 2003 the display format is not correct. What is the reason for this? What should I have to do to rectify this? I am displaying a textbox and some check box controls which is in the form of Matrix. Actually i...

Access User context from a class library

Background: I have a win app and a web app and a shared class library. In my class lib I have some static methods for SQL queries which pick up my SQL connection string I store my SQL connection string in a Session variable since it is set at log in time where it is determined which database to use. My class lib cannot access my sessio...

File uploading in AJAX updatepanel without full postback

I have a update panel, in the update panel I have fileupload control and button control, On button click, I need the file that I have upload in the fileupload control in updatepanel. Exact scenario, I have 8 tabs on page, each tab contains too much information, One of the tab is Attachment, when user click on Add New Attachment Modal P...

jquery plugin not loading -- script failing

I've tried this with a couple of different plugins, so I'm sure it's not them. I also have one running on my personal machine and it works just fine. I'm loading jquery and then loading the plugin second. Then the next line of code is calling the plugin via: $("a[rel]").colorbox(...) or $("a[rel]").overlay(...) and I'm getting "...

How can i solve this error:"Column 'ASSET' does not belong to table ."?

How can i solve this error:"Column 'ASSET' does not belong to table ." ? i really learn it is belong this table: i want to do that: if(mydataset.hasgot(dr["asset"].tostring())) { // do something } for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { DataRow dr_ = tbl.NewRow(); if (ds.Tabl...

How to access to the elements properties inside a Repeater?

Hi, I have a Repeater control who has its dataSource setted with a typed object list and in the inline code I want to access to its elements properties inside the ItemTemplate tag. I tried this with the eval expression but it does not work: <ItemTemplate> <tr> <td><%# Eval("code") %></td> <td><%# Eval("description") %></td> ...

Alert message in ASP.NET

I am new to ASP.NET programming. I need to display a message if RadioButton is not clicked. I have already written JavaScript for the onclick event to handle single selection. My code: if(rbTest.Checked == true) { //my code } else { string message = "Please select case to download"; lnkbtnDownload.Attributes.Add("oncli...

User Authentication in ASP.NET with user data not even readable by admin or man-in-the-middle

Hello, Imagine you have an ASP.NET based website that users have to authenticate for to get access. The user data (such as username, password and other information relevant for the website) is stored in a Microsoft Sql database. I know that it is possible to write an custom membership provider to create an own authentication method. H...