1
голосов
2ответов
175 просмотров

two forms or one form with conditional logic

Currently have a form with a ListView. Users of role A get an image when in ViewMode. Users of role B get an image when in EditMode. Is it better to create two clean forms with proper markup, or create one form with conditional logic? The image will be an HTML img, with no runat=server. If I...

1
голосов
2ответов
9213 просмотров

Unable to connect to Visual Studio's Localhost Web Server

Until yesterday everything was normal but today i try to lauch my application using Ctrl+F5 and i get the following error: Unable to connect to Visual Studio's Localhost Web Server I have tried aspnet_regiis -i and iisreset but nothing works. Any ideas?? Environment: Windows XP Visual Studio ...

0
голосов
4ответов
2638 просмотров

ASP.NET: Send Mail

Im trying to send a mail from a asp.net script, but im getting this error: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 4.1.8 : Sender address rejected: Domain not found at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollec...

0
голосов
1ответов
190 просмотров

ScriptManager has no IsNavigating property

I want to follow instructions from this video and add Back/Forward button support to a wizard (System.Web.UI.WebControls.Wizard). However, the ScriptManager object in my code has no IsNavigating property. Why? What do I have to install? (I have .NET Framework 3.5 SP1 installed) What version of S...

1
голосов
2ответов
565 просмотров

Getting the executed output of an aspx page after a short delay

I have an aspx page which has some javascript code like <script> setTimeout("document.write('" + place.address + "');",1); </script> As it is clear from the code it will going to write something on the page after a very short delay of 1 ms. I have created an another page to get...

10
голосов
8ответов
28054 просмотров

How to get server domain name

Can anybody tell me how to get servers domain name in asp.net? (Environment.UserDomainName returns "IIS APPPOOL" string) Thanks for replays, but mostly they are about DNS name of the server, what I need is the domain name. For example when I login via windows authentication I type domain\us...

0
голосов
1ответов
250 просмотров

Using Rake To Scrape ASP.NET Page

Is it possible, and if so how, do I use RAKE to scrape an ASP.Net Application (very simple, just 2 login forms) - Basically a spider bot/web crawler. I only ask since I've heard this mentioned before and wonder what method I would use to go about doing it? Help greatly appreciated.

2
голосов
2ответов
3767 просмотров

Why does my ASP.Net custom control render two id attributes on my first child control?

I'm writing a small ASP.Net custom control inheriting from CompositeControl. The control is just a panel containing two subpanels with a label in each subpanel. When rendered, I am seeing in the HTML source that the first child control of my custom control gets two id attributes - the first bei...

0
голосов
4ответов
2014 просмотров

Data persistence and updates in ASP.NET Web Forms

I'm currently working on a web app/game using C# and ASP.NET(3.5). However, I'm running into a problem of variables used in the main page being reset to null whenever I click a button on the web form. I'm wondering if there was a way to allow to variables to persist for the life cycle of the enti...

0
голосов
2ответов
949 просмотров

Radiobutton.Checked not working for first button in group

I've got a check for the first radiobutton in my group of ASP.NET radiobuttons. For some reason, the page loads and that first button is automatically checked, not that we're setting it to be checked..it must naturally check itself since it's the first in the group. However, when I actually che...

0
голосов
5ответов
1377 просмотров

What is the need for custom collections and enumerables?

Why do we need custom collection and custom enumeration by implementing IEnumerable and IEnumerator (I know what IEnumerable and IEnumerator does and how to implement them). The question is as anything can be done with collections like Dictionary, Hashtable, List. So why do we use custom enumera...

4
голосов
6ответов
6582 просмотров

Entity Framework v2 doesn't support sql 2000?

I installed the beta 2 of Visual Studio 2010 today. I went to test out the new entity framework stuff (to see if my "issues" from v1 were fixed.). I started adding a new connection string, but when i put in my information for sql 2000 it said "this server version is not supported. you must have...

11
голосов
1ответов
5534 просмотров

ASP.NET passing along Windows Authentication credentials

I've got an ASP.NET web application which uses Windows Authentication. This application needs to connect to another ASP.NET web service (which also uses Windows Authentication) and use the same credentials that it received from the user's browser. Can this be done and how?

0
голосов
1ответов
239 просмотров

ASpxGridView Evaluation

I'm evaluating the AspxGridView. I'm interested in peoples experiences of it and whether they would recommend it. I'm also interested in any insight into the following Accessibility Support (to me it looks poor in this regard) The quality of the Xhtml outputted How to deal with change tracking...

0
голосов
2ответов
2452 просмотров

Using Webservice classes in Silverlight when adding service reference instead of web reference

Scenario: I am using Silverlight 3.0 as client for a web service. Design: The server has a class named DeviceInfoService which has the basic functionality of getting the list of devices, getting the properties of devices etc. When I open an ASP.NET project and try to add a web reference, I can fi...

-1
голосов
2ответов
337 просмотров

Is ASP.Net 2.0/Ajax toolkit the right technology for implementing a SEO friendly website

As I understand it, just URL re-writing is not the only thing one needs to do for making a website SEO friendly. You also needs to maximize the use of div (instead of tables), reduce javascripts, flashes and have a clean HTML. I need to know how can this be achieved when one used a ASP.Net contr...

9
голосов
1ответов
4067 просмотров

Embed javascript to existing pdf

Hi I am embedding pdf file to my asp.net page like this <object data="..." type="application/pdf" width="300" height="200"> </object> The problem is that I have created my own toolbar for pdf, and want to zoom in, out document from my toolbar image buttons. I know that I can embed ...

4
голосов
1ответов
3714 просмотров

Dynamically setting themes in ASP.NET

Ive got an application that different domains are connected to, instead of copying and modifying each application i use same physical location on hard drive but separate application pools and websites on IIS. Basically i want to change a theme based on hostname. ie. user comes to "websome.com" g...

1
голосов
2ответов
1384 просмотров

Updating the dataset into the database in C# .net

I am using a stored procedure to fetch the data from the database and populating the dataset with the output. I am trying to update some valued to the dataset that is populated. Now how do i update the modified dataset to the database. 1) Should i update the database by looping through the data...

1
голосов
1ответов
3128 просмотров

Is it possible to change IIS settings from web config

I'm using url rewriting.net. I'm testing web on the local host, it is successfully work. But When i deploying web to remote host, url rewriting not work. Problem is (The resource cannot be found). I found problem. My deployed remote host IIS configuration is (Virtual dir->Properties->Home d...

0
голосов
3ответов
439 просмотров

.net regex meaning of [^\\.]+

I have a question about a regex. Given this part of a regex: (.[^\.]+) The part [^\.]+ Does this mean get everything until the first dot? So with this text: Hello my name is Martijn. I live in Holland. I get 2 results: both sentences. But when I leave the + sign, I get 2 two characters: he, ...

1
голосов
3ответов
514 просмотров

Flex 3 ,ASP.NET and WCF

I want to create a web app. I want to use WCF for distributed transactions, ASP.NET at the middle, and because Flash is so popular, I want to write the front end with Flex3. Does that sound like a good architecture to you ? are there any benefits including WCF ? Can Flex interact nicely with AS...

4
голосов
3ответов
2369 просмотров

How can I extract localized string resources for translation?

I have several Visual Studio 2008 projects (ASP.NET 3.5) with many local resource files for localization of strings found in specific ASP.NET pages. Some of them are grouped in folders, some are named based on the page they are localizing, etc. For example, App_LocalResources folder has a list o...

0
голосов
2ответов
740 просмотров

Jquery Tabs initialization from asp.net pageload

how can i set jquery tabs from my codebehind in page load of child page. I tried setting tabs in initialization & then i am calling function from code behind to select the tab. but its not working at the first time. it works after postback. $(function() { $('#tabsSelection').tabs(); ...

0
голосов
2ответов
2911 просмотров

Get text from HTML

I need a way to get all text from my aspx files. They may contain javascrip also but I only need this for the HTML code. Basically I need to extract everything on Text or Value attributes, text within code, whatever... Is there any parser API available? Cheers! Alex

4
голосов
1ответов
13723 просмотров

Get UserID from ASP.Net Login control LoggedIn event

In ASP.Net, I am trying to get the UserId (i.e., the user GUID) of the user that just logged on, in the LoggedIn event of the Login control. That is, I want to grab the UserId before the user is moved to to the next page. This is the code I am using: Protected Sub Login1_LoggedIn(ByVal sender As...

1
голосов
1ответов
1094 просмотров

System.Security.VerificationException: Operation could destabilize the runtime

I get the above exception after downloading and trying to run the latest Ajax Control Toolkit. I get the exception in ClientCssResourceAttribute.cs, line 28. Anybody else getting the exception?

0
голосов
3ответов
832 просмотров

ASP.Net Progress Bar Help?

Just wondering if anyone knows of any libraries or decent code that is available for a multi purpose progress bar with an ASP.Net web app? I basically need a progress bar that has one bar, for example of 50%, and then another net to it or on top of it etc that shows 30%? If anyone could help tha...

12
голосов
3ответов
24628 просмотров

How to raise a 401 (Unauthorized access) exception in Sharepoint?

As the title said, I need to raise (from the C# code behind a custom SharePoint page) a 401 error page. Any help?

2
голосов
3ответов
4022 просмотров

Asp.net pagelifecycle page_loadComplete

In my web application I load user controls in the page_loadComplete event. This works fine, however when a button is clicked in a user control, the click event is never fired. Does this has something to do with the page lifecycle? That button click (UI) events occur before the LoadComplete event?