tagged [webforms]

Which is the better framework to build a HTML survey builder?

Which is the better framework to build a HTML survey builder? I’ve to build a HTML survey builder application with an AJAXified user interface (i.e.,...). The typical survey will be multistep with mul...

14 Jan at 16:57

Get All Web Controls of a Specific Type on a Page

Get All Web Controls of a Specific Type on a Page I have been pondering how I can get all controls on a page and then perform a task on them in this related question: [How to Search Through a C# DropD...

23 May at 12:17

How to fix "SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value."

How to fix "SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value." > SqlException: The conversion of a datetime2 data type to a datetime data...

8 May at 08:58

How to click a link element programmatially with HTMLElement?

How to click a link element programmatially with HTMLElement? I'm doing an automation program. I load a webpage into my windows form and load it in WebBrowser control. Then, I need to click on a link ...

2 Mar at 19:46

How to get string from url in ASP.NET webforms?

How to get string from url in ASP.NET webforms? I think my tittle is inaccurate. When a user clicks on a button I need it to do this: How can I get the `"userid?"` from `?userid.` so I can show a page...

24 Jun at 13:46

"The given path's format is not supported."

"The given path's format is not supported." I have the following code in my web service: Can someone help me resolve the issue with this error message from line 2 of the code. > The given path's form

26 Apr at 08:16

ASP.Net web forms with ServiceStack.Net

ASP.Net web forms with ServiceStack.Net I have a ASP.Net web application with around 100 forms. The coding is in VB.Net. We now want to add servicestack.net services inside this application. We want t...

12 Jun at 16:15

Page.Title vs Title tag in asp.net

Page.Title vs Title tag in asp.net I am using asp.net. I have noticed that we can configure page title (static and dynamic both) in two ways: 1. We have a Title attribute in the page directive: 2. We...

7 Oct at 12:16

Find a control in a webform

Find a control in a webform I have a Web content form and need to access a control inside the content panel. I know of two ways to access the control: 1. TextBox txt = (TextBox)Page.Controls[0].Contro...

24 Feb at 12:59

Adding style to asp.net label

Adding style to asp.net label I want to adding style to asp.net label, but it wont work. I want to add the following style to the label ``` { float:right; w

8 May at 16:40

LINQ: find all checked checkboxes in a GridView

LINQ: find all checked checkboxes in a GridView Consider the current algorithm below that iterates through a `GridView`'s rows to find whether the contained `Checkbox` is selected/checked. ``` List ch...

5 Aug at 16:21

Convert a Dictionary to string of url parameters?

Convert a Dictionary to string of url parameters? Is there a way to convert a Dictionary in code into a url parameter string? e.g. Inside MVC HtmlHelpers you can generate

7 May at 13:24

DropDownList AppendDataBoundItems (first item to be blank and no duplicates)

DropDownList AppendDataBoundItems (first item to be blank and no duplicates) I have a `DropDownList` inside an `UpdatePanel` that is populated on postback from a `SqlDataSource`. It has a parameter wh...

How to do a Jquery Callback after form submit?

How to do a Jquery Callback after form submit? I have a simple form with remote=true. This form is actually on an HTML Dialog, which gets closed as soon as the Submit button is clicked. Now I need to ...

How to allow CORS for ASP.NET WebForms endpoint?

How to allow CORS for ASP.NET WebForms endpoint? I am trying to add some `[WebMethod]` annotated endpoint functions to a Webforms style web app (.aspx and .asmx). I'd like to annotate those endpoints ...

30 Mar at 19:5

Check if Cookie Exists

Check if Cookie Exists From a quick search on I saw people suggesting the following way of checking if a cookie exists: or (inside a `Page` class): However, when I try to use the indexer (or the Cooki...

How can you set the selected item in an ASP.NET dropdown via the display text?

How can you set the selected item in an ASP.NET dropdown via the display text? I have an ASP.NET dropdown that I've filled via databinding. I have the text that matches the display text for the listit...

27 Aug at 19:10

Most Efficient Way To Watermark Image C# On The Fly?

Most Efficient Way To Watermark Image C# On The Fly? I have an ecommerce store built in asp.net c# (Webforms) and a lot of the new product images are very hard to source, so I'd like to watermark them...

2 Dec at 15:25

"Could not load type [Namespace].Global" causing me grief

"Could not load type [Namespace].Global" causing me grief In my .Net 2.0 Asp.net WebForms app, I have my Global.asax containing the following code: However when I build I get an error stating- > Could...

Creating a customized "Yes / No" alert box in asp.net (javascript) - Part 2

Creating a customized "Yes / No" alert box in asp.net (javascript) - Part 2 I am trying to create a customized messagebox using javascript but not getting too far. ``` string txtConfirmMessage = "On "...

How to re-implement legacy aspx with ServiceStack and maintain the address?

How to re-implement legacy aspx with ServiceStack and maintain the address? Is it possible to keep the following address and re-implement it with ServiceStack? I don't have access to the original cod...

10 Oct at 18:29

A potentially dangerous Request.Path value was detected from the client (*)

A potentially dangerous Request.Path value was detected from the client (*) I am receiving the rather self explanatory error: > A potentially dangerous Request.Path value was detected from the client ...

10 Dec at 01:48

What is the best way to code up a Month and Year drop down list for ASP.NET?

What is the best way to code up a Month and Year drop down list for ASP.NET? I have an internal application that I needs to have a drop down list for two date type elements: and . These values are no...

1 May at 18:12

asp:RequiredFieldValidator does not validate hidden fields

asp:RequiredFieldValidator does not validate hidden fields It seems that ASP.NET validators do not validate hidden fields. I get messages like this: > Control 'hiddenField' referenced by the ControlTo...

Viewstate is null on postback

Viewstate is null on postback Right, I've got something very peculiar going on here... ASP.NET 4 page with the following property: During the initial `Page_Load()` in (`!Page.IsPostBack`) the `QuickSh...

16 Jun at 12:0