asp.net

finalbuilder versus kinook visual build

Hi, Has anyone used both of these build tools? final builder and visual build (kinook. What advantages did you see over the product you prefer? Are they basically the same just UI differences? ...

Should I Create an API or Webservice ?

Currently I am working on an app property website. Now currently if the user wants to upload a new establishment he has to enter the property details in their in house system and seperately on a different website linked to the website front end. So we would like to eliminate this duplicate data entry. We would like to provide a webservi...

Adding an extra property to the asp.net DropDownList

Hi, I'm trying to extend the DropDownList control to simply add one extra property. Code as follows Public Class CustomDropDownList Inherits DropDownList Private key As Int32 Public Property PrimaryKey() As Int32 Get Return key End Get Set(ByVal value As Int32) key = value ...

Download file from binary array on a webpage

I have file in the form of binary array and i need the browser to open a download dialogue and save the file. i tried Response.BinaryWrite(fileData); but it just added the binary character to the page and didn't open a download dialogue! ...

Website Projects in Azure Web Role

I am researching a new ASP.Net project that we would like to host in a Windows Azure Web Role. One of the technical requirements of this project is to make use of the full pre-compilation options (non-updatable, single page assembly) of the ASP.Net Web Site project model - as opposed to the ASP.Net Web Application project model. Is it p...

Executing method from markup

I'm trying to set some javascript data (json) in my markup by calling a method in my codebehind file. The markup looks like this: Line 12: var businessTypes = "<%=GetBusinessTypes(); %>"; The method is executed and it returns string value but then this exceptions pops out CS1026: ) expected redlining the Line 12 shown above. ...

ASP.Net Cross Page Posting

Currently I have two pages: The first page contains an input form, and the 2nd page generates an excel document. The input form's button posts to this 2nd page. What I'd like to do is add a second button which also posts to the 2nd page; however, I'll need requests created from this new button to act differently, which brings me to my...

ASP.NET Localizations and User definded language.

I'm working on a asp.net web application and one of the requirements is that the user has to be able to select the language they want. I"m using Resx files to store the locals. What my question is do I need to change the CurrentCulture of the thread every time a page is loaded or is there a way to have it handled automatically when a lo...

Why do I need to bind GridView on every postback to make click events from columns to work

Ok, i have a gridview and on page load, i dynamically add a column to it that contains a link control. this link control has a onclick event associated with it so that when its clicked, i want to do some processing. Now I have noticed that if I just bind the grid the first time (i.e. if(!IsPostBack) and have enableviewstate for the grid ...

Getting absolute URL to page in code

I am new to ASP.NET and am trying to convert a web application from using hard-coded deployment locations (ie, /base/path/index.aspx) to discovering them at runtime. If I use Response.Redirect(), I can express the path as '~/index.aspx' and, at runtime, ASP.NET will build the correct URL to send the redirect to based on where the web ap...

Retrieve GridView row based on unique cell value

Hi, I want to retrieve the grid view row based on the cell value. For example, I am having a grid view with 4 columns (name,m1,m2,m3) and name contains unique values. So, I want to get the grid view row corresponding to the name specified. Thanks ...

ASP.NET Menu Control getting padded with white space on IE8

If you have used the ASP.Net menu control on your website and recently updated your browser to IE8, you will probably have noticed your menu no longer renders properly. You may also have noticed this in Firefox as well. The menu will probably look just fine in IE6 & IE7. So why is the ASP.Net menu being padded with space and why don't...

Anyone have experience with Telerik's RadGrid Paging?

I am having an issue with the paging system on Telerik's RadGrid (AJAX). First take a look at this screenshot: As you can see, the First/Last Prev/Next buttons are there, but there is no markings on them. Also, the dropdown (thats where those values are coming from) and whatever that 'select' is are really messed up. Here is my desig...

gridview databinder.eval question

We've got a number of gridviews that we're populating with data from an ADABAS datasource via some middleware that, unfortunately, gives us back lots of arrays of stringBuilder that we turn into a datatable, set as the datasource for a gridview, then bind. It's convoluted, but I'm in a situation where I need to be able to update the gri...

c# updatepanel with timer page_load

I'm experimenting with some AJAX now. I have a custom control which appears on my masterpage in which there is an update panel and a timer. The timer fires and the panel updates and everything is dandy. Except that there are some operations that I don't want it to perform on every refresh. It seems like the entire page lifecycle happ...

Can I get SQL injection attack from SELECT statement?

2 Questions actually: I know i must use Stored Procedures as much as Possible, but i would like to know the following please. A: Can i get a SQL Injection attack from a SELECT statement such as (Select * from MyTable) ? B: Also, can i get a SQL Injection attack when I use the SQLDataSource in ASP.NET? ...

Best display / editing of subcategories (use Tree ASP.NET or VB.NET winform control?)

Hello, I've got a categories table, and sub-category tables 3 levels deep (in the database they're called Categories, SubCategories, SubSubCategories, and SubSubSubCategories). On the presentation side, I am curious what the best way is to manage those. The categories form a tree/hierarchy structure, so a tree control of some kind sou...

In ASP.NET how do I find the Control ID of a TextBox that is nested within a DetailsView which is then nested in an AJAX UpdatePanel control ?

n ASP.NET how do I find the Control ID of a TextBox that is nested within a DetailsView which is then nested in an AJAX UpdatePanel control ? The heirachy is: UpdatePanel1 -> dvContentDetail (DetailsView Control) -> TextBox2 I have tried something like the following but just says that the object isn't found: UpdatePanel1.FindControl("...

Replace [StructLayout] with something that doesn't use System.Runtime.InteropServices?

I have no experience with low level programing and I need this piece of code to not use [StructLayout(LayoutKind.Explicit)]. My site runs on a shared host and in medium trust. So it won't run if this code is in there. Update: I'm using this inside a Octree to Quantize a png file. Does anyone know a work around? Update New question her...

Generating PDF in .NET using XSL-FO

I need to generate a pdf in .NET using XSL-FO. There are no shortage of libraries to do this. What library would you suggest that I use and why? ...