asp.net

Passing Viewstate Data to Popup Window

Hey, As far as I can tell it is impossible to access the ViewState of a parent page from a popup. What is the best approach to accomplish passing this information? I have considered the following: Using the Session but this may have memory implications on the server. Passing data in querystring but this may have security implication...

Nhibernate and multilingual data mapping

We are trying to design a site that will support multilingual data and we use asp.net and nhibernate for O/R mapping. After some googling we decided that for us its best to create the entity classes containing all fields we need for supporting the default (english) language and for each multilingual class we would create a new class cont...

ASP.NET on a linux webserver

Can I host a asp.net application on a linux based webserver? Do they allow .net framework to be installed on linux? ...

How do i simulate a click event in a webbrowser control? .NET

So there is a button call next (page). Its href link is site/blah/#. So i know its really running javascript code. After i finish parsing the first page i would like to parse the next page. How do i simulate a mouse click there so i can continue loading and parsing pages? i am using C# .NET ...

Does anyone know of a good diff tool for C#?

I'm looking for a diff tool that can analyse my code and tell me what has changed on a construct by construct basis. For instance, if I cut and paste a method from the start of my file and put it at the end but leave that method unchanged, I don't want it flagged. If however I insert a line of code or change something inside that metho...

If SqlDatareader fetches one record at a time, and not one field at a time, then lazy load pattern wasn’t…

Hello, Does SqlDataReader fetch one record at a time from DB or one field at a time? Assume the following query returns a single row: select columns_1, column_2, column_3 from some_Table and suppose readerS ( readerS is an instance returned by SqlCommand.ExecuteReader() )only reads *column_3* before closing the connection: ...

Does ASP.NET PostBack keep content secure

Okay, I'm still new to the whole ASP.NET and exactly how it posts back to its page. But I was wondering if it leaves a trace of what content is currently on the page. For example, if I have a Social Security text box, and wanted to encrypt it and ship it off to another server I would do that through a hidden server script after posti...

How do I build a user control into a self-contained assembly in VS2008?

More specifically, what do I need to know about doing this in Visual Studio 2008 that's different from VS2005? I have found a decent number of references for doing this kind of thing in VS2005, such as http://webproject.scottgu.com/CSharp/usercontrols/usercontrols.aspx http://stackoverflow.com/questions/323702/techniques-for-distributi...

ASP.NET ReorderList - Update Fails

I have an AjaxControlToolkit ReorderList bound by a SQLDataSource to a table with the following schema: OrgID MilestoneID Name Priority The Priority field is attached to the ReorderList as its SortOrderField. OrgID is specific to each user that logs in. The idea is that there is a different list of Milestones for each Org. I...

After adding an AJAX panel, page won't post back.

Hi, I have a C# web form with a search button and some search criteria. But after adding an AJAX panel, the search button won't post back. Any idea? Thanks in advance! ...

Search Engine Optimisation and multiple sub-domains per html page

Hi, We are looking for some tips over a performance and search engine optimisation (SEO) technique. For our clients, we would like to place all of their page images in a sub domain in order to have a better browser related performance. For example by replacing: <img src=”/images/foobar.jpg” /> By <img src=”http://images.domain.c...

JQuery FixedTable

I'm trying to use the JQuery plugin called FixedTable in an ASP.Net WebForm to add a vertical scrollbar to an html table (see code below). I've added a reference to the JQuery document for Visual Studio (jquery-1.3.2-vsdoc2.js), and a reference to the fixedtable plugin (jquery.fixedtable.js) to my project. When I run it, I'm getting an...

Asp.net + Google Charts - Attached html file won't open correctly

I have an Asp.Net page containing one grid and an image. The image is a google charts chart and its urls is around 1600 characters. I out together an .htm file containing the grid and the image. For the grid I use RenderControl to get its html code, and for the image, I just add an img html tag and assing the url to its src. I then send ...

setting correct row of dropdownlist not working

Hello, I have a dropdownlist that is being populated from a database. That is working fine. The nonselectvalue of the control is -1 and the nonselectlabel is "..". When I try to open an existing record for editing, I can't seem to select the correct row. There are three parts to the ID: 111A-DD-12345. When the record is returned fro...

Display Oracle Reports in an ASP.NET Web Application

Hi, I have a web application written in C#/ASP.Net and the backend DB is Oracle. There are already Oracle Reports written for this, I am just wondering how I go about hooking them up within the code? What is the syntax for this, and how to pass parameters etc? Everywhere I see seems to be using either Crystal or SQL Reporting Service...

ASP.NET, OpenID and registration confusion

Hi, I have managed to get all the authentication parts working, however i am confused about setting up registration. By registration i mean that if the OpenID is not attached to an existing account, then a new account must be created. Should i simply have it return to a registration page (with from fields for registration) and redirec...

User Login session variable filtered

I am trying to compare a session variable to another string so that i can enable or disable image buttons. i am using asp.net vb with a sql2005 express backend Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim string1 As String Dim string2 As String Label1.Text = Session("User...

Deploying a Pre Compiled Web Site Project

So I have a website project, which I precompile when I publish. I have a question, when I need to make a small change to the deployed site, do I have to rebuild, re-publish and deploy the entire website structure again, or can I just copy the modified aspx page and the bin directory? Please let me know! Thanks guys! ...

Problem with table content leaking outside it's container: how to manipulate table layouts

I'm having a problem keeping the contents of this table within it's container: See here. The table is being automatically generated by something called CataLook store which is a DNN module. I really wish they would make modules up to standards-- ie. <div> instead of <table> but this is what I'm stuck with... I've tried Firebugging it ...

Can TeamCity publish a Web project using the sln2008 build runner?

I'm building an ASP.Net MVC project in TeamCity. Can I somehow call the Publish target and get the output copied to a folder under IIS? or do I need to write an msbuild script for this? ...