asp.net

ASP.NET Master Page + pageLoad() = kills jquery?

In my MasterPage, I have a ScriptManager that has a ScriptReference to my jquery.js file. This has always worked with no problems, all content pages that utilize jquery work fine. Recently, I added the following javascript script block at the end of my MasterPage: function pageLoad(sender, args) { } By simply adding the above pa...

Populating Models using LINQ

I'm trying to figure out a clear way of populating my model classes from LINQ to SQL generated objects. My goal is to keep my Models and LinqModels separate. Say I have the following models: public class Person { public List<Account> Accounts {get; set;} } public class Account { public List<Purchase> Purchases {get; set;} } pub...

Hide Textbox Targeted by the ColorPickerExtender

Is there a way to hide the textbox that is targeted by the colorpickerextender in the newest release of the ajax control toolkit? If you add style="display:none" to the textbox, then the color picker shows up in the top left corner of the browser window. I want it to show up near the button that is referenced in the extenders popupbutto...

Filling in parent master page from child

I'd like to have a page that uses a child master page, fill in a content placeholder of the parent, but I cannot get it to work. Whenever I try I get the error "Cannot find ContentPlaceHolder 'customHead' in the master page '/templates/info.master', verify content control's ContentPlaceHolderID attribute in the content page." I have a ...

Jquery Ajax call to webservice is failing

Hi there, Can anyone help? I have an issue with calling a asp.net webservice from jquery.. actually i think it maybe jquery ... as i have a break point and it doesn't arrive in the webservice.. Here is my jquery, the webservice method accepts 2 parameters... So i setup a simple test to pass in 7 and 7 .. i tried replacing with the wor...

Automating paper forms and process flow in the office

I have been tasked with automating some of the paper forms in HR. This might turn into "automate all forms" eventually, so I want to approach this in a way which will be best for the long term and will be a good framework as this project grows. The first things that come to mind were: -InfoPath/SharePoint (We currently don't use Share...

ASP.NET Windows Authentication with Custom Roles

If I am using Windows Authentication in an ASP.NET app, and I want to use custom roles instead of using Windows security groups as roles, do I need to write a custom Role provider? The solution needs to be able to map Windows users and groups to application specific roles. ...

How do I programmatically add an unknown number of columns to an ASP.NET page using a repeater where some of the columns are declared at runtime in the SQL string?

I am declaring a SQL string that looks something similar to the following: string SQL = "SELECT Column1, Column2, Column3, Date1, Date2 FROM Somewhere"; The number of columns can vary by circumstance and the dates can be called different names such as StartDate, InterestDate and so on. What I would like to do is bind this to an ASP.N...

Creating and saving a text file to the server

In C# ASP.Net, I would like to create and save a text file to a server. This will be happening daily (by a user action, not scheduled). I would like the location to not be in the application path but in a separate folder (for this question, lets say the folder is off the root). I am new to this site and if this question is too "open...

Passing Html Element to the Controller

Hi, How can I pass a HTML element to a controller action. Let's say I have the following element: <table id="list"></table> How do I pass this table into the controller action? Also will it be automatically converted to HtmlTable object? ...

ASP.NET textbox losing value after postback when value is changed client-side via javascript.

I am setting the value of a textbox via javascript client-side. When I refresh the page the value is lost. The textbox is not disabled or set to read-only. I have read suggestions to put the value in a hidden field, I'd prefer not to do this. It seems like a hack. The textbox is in a user control as such: <div id="Row" class="RaidRow...

Validator - Show one error at a time

Is there a simples way to do this? I have 2 TextBox, for email input, with regex and compare validator. If user input invalid email and a different email at second textbox, is shown two error messages. But i want to display just one error message at a time. ...

Best implementation for a rss feed in C# (ASP.net)

The thing I have a web app (asp.net) which needs to have a feed. So I used the System.ServiceModel.Syndication namespace to create the function that creates the 'news'. The thing is it executes everytime somebody calls it, should I use it just to create an xml file and make my rss url point to the file? What's the best approach? Edit...

how to pass id's frm one page to another on mobile?

Is it possible to send a query string to the url using get method and then getting the values in another page using eval or bind on mobile? some code example would b helpful... thanks alot ...

Is there a way to read the clients machine/computer name from the browser?

possibly using javascript or asp.net? ...

Print Bar code using Crystal Reports

I have a crystal report that I have to add a Bar Code to. I have downloaded some free and demo TrueType fonts Code 39, Code 128 and UPC from various sources. When I print out the report I can see the bar code but it will not scan with my scanner(the scanner works as I have tested it on multiple other bar codes). Do I need to use some...

Trying to open up PDF after creating it with iTextSharp, but can't get it to work?

I have a button when clicked, inserts text into form fields in a pdf and saves the filled pdf to a directory. When I am done editing the pdf, I want to open the pdf in the browswer, but Process.Start() is not working. Is there better way to immediately show the pdf after it has been generated? Here is the code for the button: protec...

ASP.NET: Multiple assembly versions, same web application

Hello, Hopefully you ASP.NET pros out there can answer this question. I have a single web application that contains a website and a web service - both have several assembly references in common (data access layer, utilities, etc) - however, recent changes made to the web service will require different versions of the common assemblies,...

Audio Libraries for MP3 editing

In one o f my projects using ASP.NET + C# I want to be able to dynamically create 30 seconds clip of MP3 files and add a fade in/out. What library would you recommend? I saw there are a lot, including: http://www.alvas.net/alvas.audio.aspx http://www.audiosoundeditor.com/ http://www.mitov.com/html/audiolab.html Have you...

How to organize ASP.NET app_code folder?

In ASP.NET my app_code folder has a ton of .cs files in it. It would be great if I could organize them by the module they belong to in my project so I am not scrolling forever when I expand the app_code folder. How do you organize yours? ...