Showing posts with label website. Show all posts
Showing posts with label website. Show all posts

Saturday, March 31, 2012

Subscription website software in ASP.NET C#

Looking for an all-in-one solution for building and managing subscription or member's only web sites in ASP.NET C#. A quick scope of features are the ability to bill monthly to our subscribers via real-time credit card processing, posting content features (news, articles, blogs, etc), manage subscribers, shopping cart, discussion groups, RSS, flexible searching (tags, etc..) and basic reports.

Any ideas and comments welcomed.

Thanks,
Gio

Look to Sharepoint. Most the things are inbuilt in this. Its a Microsoft Product. Click try to search Sharepoint at msdn.microsoft.com or google.

SubSonic web.config problem

Hi,

I'm using SubSonic tool, and my website works fine on my machine. When I try to host my website on my hosting account, I get web.config error:

-- ERROR --

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

...

Line 25: <SubSonicService defaultProvider="MYWebsiteDB">

-- ERROR --

- Here's the full web.config file.

Thanks!


<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" restartOnExternalChanges="true" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="MyWebsiteConnection" connectionString="Data Source=localhost\SQL2005;Database=MyWebsiteDB;User ID=myUser;Password=myPass;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<SubSonicService defaultProvider="MyWebsiteSQL">
<providers>
<add name="MyWebsiteSQL" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="MyWebsiteConnection" generatedNamespace="MyWebsite.DataAccess" fixPluralClassName="true"/>
</providers>
</SubSonicService>
<appSettings>
<add key="SupplierFilePath" value="~/admin/SuppliersFiles/"/>
<add key="SupplierFilePathTemp" value="~/admin/SuppliersFiles/Temp/"/>
</appSettings>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
</authentication>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
<system.net>
<mailSettings>
<smtp>
<network host="localhost" port="25" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
</configuration>You have a virtual directory under a virtual directory with a web.config in it. Am I right?

Wednesday, March 28, 2012

Substring from URL

OK, i thought I was quite experienced with asp.net, though I have a silly question. I have a photo album on my website, but at the moment most of the data is stored in a database, and I get long URLs like www.arsluminis.com/photography/album/?aid=2, I'd like to have it like www.arsluminis.com/photography/album/1/2/, so I need to get the "1" and the "2" both in a parameter, I tried it using "indexOf" and "lastIndexOf", but I can't find it.
Anyone got an idea please?

Regards,
NielsHello,
if all the urls that you have are in the form of the url that you gave :
www.arsluminis.com/photography/album/?aid=2

then, you might have something like this:

string s = url.IndexOf('=');
then you can copy the value after "=" by using any method in Strings

then, also, use the methods of String like concat and create the new url that yoy want, in the format that you want.

best of luck
Consider using the .net class System.Uri. Pass the URL into the constructor and use its Query parameter to get a string representing the querystring.

If you want to look through individual parameters, there are two ways:
1. Brute force. Use the Split('&') method on the string class to create an array of elements. Then loop through them.
2. Regular expression. I think the expression is:
Parameter name;
=
any text
? OR end of line

Here's the reference I like for building regular expressions:
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/regexp.html#1193136

The .net class is System.Text.RegularExpressions.Regex.

Subtracting Quantities

Hi,

I have a query about updating quantity values within an website written in asp.net 1.1, vb2003 which references an access database. Basically what I want to do is when the customer confirms their order, I want then the number of items purchased to then be subtracted from the Products table in the database. Thus this ensures the number of each item in stock is kept up to date within the database.

My checkout table contains the intCartitemID (autonumber), Cart ID (random number and date value), quantity ordered and the productID for the item purchased.

The products table contains the ProductID, description, attributes, sale price and quantities in stock.

Now I assume I need to take the quantity of item purchased from the checkout table and then subtract this value from the products table. However, how do I put this idea into practice in terms of the asp.net coding ?

Any online examples of coding would help.

Thanks,

Just pass it in a SQL query

"Update productsTable set quantity = quantity - 1 where productID = " & productID


I agree with the above, except not "quantity = quantity - 1" ... but rather "quantity = quantity - @.howMuchWasOrdered"


Thanks both...Smile

Subweb in ASP.Net?

I'm not realy sure if this is called a "subweb" or not, but here's what I
want to do:
I have a website, smccabe.net
The pages on this site are accessed by the form
http://smccabe.net/somepage.aspx
What I would like to do is create a page accessed with the form:
http://somepage.smccabe.net
How do you do this with ASP.Net?
Thanks!
--SeldenYes, that form of addressing is called a subweb and requires the use of host
headers. Its an IIS configuration.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Selden" <seldenm@.msn.com> wrote in message
news:_663h.18156$gU6.7744@.tornado.socal.rr.com...
> I'm not realy sure if this is called a "subweb" or not, but here's what I
> want to do:
> I have a website, smccabe.net
> The pages on this site are accessed by the form
> http://smccabe.net/somepage.aspx
> What I would like to do is create a page accessed with the form:
> http://somepage.smccabe.net
> How do you do this with ASP.Net?
> Thanks!
> --Selden
>
Selden,
Actually, it's not really a subweb. A "subweb" would be
http://smccabe.net/somepage/ in IIS terminology. Usually when IIS refers to
a subweb it is referring to a logical entity packed as a FrontPage subweb,
which is basically a directory that has been compartmentalized for use by
the FrontPage Server Extensions and FrontPage publishing.
What you are referring to is a subdomain. You would first have to setup
the DNS settings in order to handle the subdomain so it points somewhere.
It's possible that you could have the server automatically point the entry
so that it exists within your site, but at a directory different from the
root. In orther words http://somepage.smccabe.net would map to
http://smccabe.net/somepage/ In some scenarious this becomes unstable
because you would have subdirectories of your root web being seen by the
application possibly as the root level of the site.
Basically, this is a server setup that you wouldn't do in ASP.Net.
Has to be configured through DNS and IIS itself.
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199...2006
"Selden" <seldenm@.msn.com> wrote in message
news:_663h.18156$gU6.7744@.tornado.socal.rr.com...
> I'm not realy sure if this is called a "subweb" or not, but here's what I
> want to do:
> I have a website, smccabe.net
> The pages on this site are accessed by the form
> http://smccabe.net/somepage.aspx
> What I would like to do is create a page accessed with the form:
> http://somepage.smccabe.net
> How do you do this with ASP.Net?
> Thanks!
> --Selden
>
Thanks, you've cleared it up perfectly!
"Mark Fitzpatrick" <markfitz@.fitzme.com> wrote in message
news:u4y8q$FAHHA.204@.TK2MSFTNGP04.phx.gbl...
> Selden,
> Actually, it's not really a subweb. A "subweb" would be
> http://smccabe.net/somepage/ in IIS terminology. Usually when IIS refers
> to a subweb it is referring to a logical entity packed as a FrontPage
> subweb, which is basically a directory that has been compartmentalized for
> use by the FrontPage Server Extensions and FrontPage publishing.
> What you are referring to is a subdomain. You would first have to setup
> the DNS settings in order to handle the subdomain so it points somewhere.
> It's possible that you could have the server automatically point the entry
> so that it exists within your site, but at a directory different from the
> root. In orther words http://somepage.smccabe.net would map to
> http://smccabe.net/somepage/ In some scenarious this becomes unstable
> because you would have subdirectories of your root web being seen by the
> application possibly as the root level of the site.
> Basically, this is a server setup that you wouldn't do in ASP.Net.
> Has to be configured through DNS and IIS itself.
>
> --
> Hope this helps,
> Mark Fitzpatrick
> Former Microsoft FrontPage MVP 199...2006
>
> "Selden" <seldenm@.msn.com> wrote in message
> news:_663h.18156$gU6.7744@.tornado.socal.rr.com...
>

Subweb in ASP.Net?

I'm not realy sure if this is called a "subweb" or not, but here's what I
want to do:

I have a website, smccabe.net

The pages on this site are accessed by the form
http://smccabe.net/somepage.aspx
What I would like to do is create a page accessed with the form:

http://somepage.smccabe.net
How do you do this with ASP.Net?

Thanks!
--SeldenYes, that form of addressing is called a subweb and requires the use of host
headers. Its an IIS configuration.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Selden" <seldenm@.msn.comwrote in message
news:_663h.18156$gU6.7744@.tornado.socal.rr.com...

Quote:

Originally Posted by

I'm not realy sure if this is called a "subweb" or not, but here's what I
want to do:
>
I have a website, smccabe.net
>
The pages on this site are accessed by the form
http://smccabe.net/somepage.aspx
>
What I would like to do is create a page accessed with the form:
>
http://somepage.smccabe.net
>
How do you do this with ASP.Net?
>
Thanks!
--Selden
>
>


Selden,
Actually, it's not really a subweb. A "subweb" would be
http://smccabe.net/somepage/ in IIS terminology. Usually when IIS refers to
a subweb it is referring to a logical entity packed as a FrontPage subweb,
which is basically a directory that has been compartmentalized for use by
the FrontPage Server Extensions and FrontPage publishing.

What you are referring to is a subdomain. You would first have to setup
the DNS settings in order to handle the subdomain so it points somewhere.
It's possible that you could have the server automatically point the entry
so that it exists within your site, but at a directory different from the
root. In orther words http://somepage.smccabe.net would map to
http://smccabe.net/somepage/ In some scenarious this becomes unstable
because you would have subdirectories of your root web being seen by the
application possibly as the root level of the site.

Basically, this is a server setup that you wouldn't do in ASP.Net.
Has to be configured through DNS and IIS itself.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Selden" <seldenm@.msn.comwrote in message
news:_663h.18156$gU6.7744@.tornado.socal.rr.com...

Quote:

Originally Posted by

I'm not realy sure if this is called a "subweb" or not, but here's what I
want to do:
>
I have a website, smccabe.net
>
The pages on this site are accessed by the form
http://smccabe.net/somepage.aspx
>
What I would like to do is create a page accessed with the form:
>
http://somepage.smccabe.net
>
How do you do this with ASP.Net?
>
Thanks!
--Selden
>
>


Thanks, you've cleared it up perfectly!

"Mark Fitzpatrick" <markfitz@.fitzme.comwrote in message
news:u4y8q$FAHHA.204@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

Selden,
Actually, it's not really a subweb. A "subweb" would be
http://smccabe.net/somepage/ in IIS terminology. Usually when IIS refers
to a subweb it is referring to a logical entity packed as a FrontPage
subweb, which is basically a directory that has been compartmentalized for
use by the FrontPage Server Extensions and FrontPage publishing.
>
What you are referring to is a subdomain. You would first have to setup
the DNS settings in order to handle the subdomain so it points somewhere.
It's possible that you could have the server automatically point the entry
so that it exists within your site, but at a directory different from the
root. In orther words http://somepage.smccabe.net would map to
http://smccabe.net/somepage/ In some scenarious this becomes unstable
because you would have subdirectories of your root web being seen by the
application possibly as the root level of the site.
>
Basically, this is a server setup that you wouldn't do in ASP.Net.
Has to be configured through DNS and IIS itself.
>
>
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
>
>
>
"Selden" <seldenm@.msn.comwrote in message
news:_663h.18156$gU6.7744@.tornado.socal.rr.com...

Quote:

Originally Posted by

>I'm not realy sure if this is called a "subweb" or not, but here's what I
>want to do:
>>
>I have a website, smccabe.net
>>
>The pages on this site are accessed by the form
>http://smccabe.net/somepage.aspx
>>
>What I would like to do is create a page accessed with the form:
>>
>http://somepage.smccabe.net
>>
>How do you do this with ASP.Net?
>>
>Thanks!
> --Selden
>>
>>


>
>

Successful Download Tracking

Hello,

Currently on my Website my downloads are simply hyperlinks to binary
files, which when clicked, prompt the user for download. I would like to
try and track my downloads and determine if the entire file was transferred
to the user's machine. Is there a way to do this? Do I need a specialized
httphandler?

Thanks,

MikeInstead of an HttpHandler, why don't you look at an
HttpModule. It will allow you to intercept both incoming
and outgoing calls so that you can log the downloads
while allowing ASP.NET to continue to do it's thing.

Bruce Johnson
http://www.objectsharp.com/Bruce

>--Original Message--
>Hello,
> Currently on my Website my downloads are simply
hyperlinks to binary
>files, which when clicked, prompt the user for
download. I would like to
>try and track my downloads and determine if the entire
file was transferred
>to the user's machine. Is there a way to do this? Do I
need a specialized
>httphandler?
>Thanks,
>Mike
>
>.

Monday, March 26, 2012

Suddenly my web run very slow.

I have very big and complicated website. Suddenly (in the past few days) it started to run very slow. In each page it "can't find" one or two images (usually very small ones like arrow or something) and the browser show "open 1 item…" and stuck. As much as I can remember I didn't change any thing that related to the images or to my home page.

Does any body have idea what can cause such behavior?

Have you rebooted recently? You might have some memory issues on the server.

Nick


oh, yes... again and again.

Suggested Graphics Programs for use with VS

Hello -
I have developed the world's ugliest website -- functions well, but it
leaves a lot to be desired aesthetically.
What are the recommended web graphics programs to integrate with Visual
Studio projects? I don't want to just go out and buy something without
knowing it works well with VS.
Also, how would you integrate it? Just copy and paste stuff?
Any help will be greatly appreciated!
--
SandyMicrosoft has several visual editing tools in beta that can generate UI
elements but these tools are for future releases of Vista and so on. There's
really nothing available now in the context I think you are asking.
I've used PaintShop Pro (PSP) for years myself. It is inexpensive, generally
considered easy to use, and rivals the over-priced PhotoShop. Use PSP for
screen captures of various elements from other sites and paste up various
'comps' (compositions) as reference works. I also recommend you use a
reference book such as "Designer's Guide To Color 2" as it is an excellent
resource for color combinations you can recreate using PSP.
Some of the basic techniques designer's use to make page elements distintive
are 'over-lays' and 'juxtapositions' which is artsy-fartsy talk you may be
able to understand simply by observing the use of these techniques at my
current homepage noting I had to beat myself up with CSS to get the effect
without turning the page into an over-weight slow loading sleeper. I'm also
still using multiple stylesheets because IE has been crippleware and I
haven't mastered the dozen and more CSS hacks IE requires to build
'standards compliant' GUIs.
Get a grip on color, page layout, and a couple of artsy-fartsy techniques
and you're all set for a clean page with distinctive design elements but
remember to go easy on the eye shadow ;-)
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
[1]
http://www.amazon.com/exec/obidos/t...=gla
nce
"Sandy" <Sandy@.discussions.microsoft.com> wrote in message
news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
> Hello -
> I have developed the world's ugliest website -- functions well, but it
> leaves a lot to be desired aesthetically.
> What are the recommended web graphics programs to integrate with Visual
> Studio projects? I don't want to just go out and buy something without
> knowing it works well with VS.
> Also, how would you integrate it? Just copy and paste stuff?
> Any help will be greatly appreciated!
> --
> Sandy
re:
> I've used PaintShop Pro (PSP) for years
That's a good choice.
I use Snagit :
http://www.techsmith.com/products/snagit/default.asp
It does everything I need to do.
PhotoShop is overkill for most situations but
for specialized requirements, it can't be beat.
Its learning curve is quite stiff, though.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"clintonG" < csgallagher@.REMOVETHISTEXTmetromilwaukee
.com> wrote in message
news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
> Microsoft has several visual editing tools in beta that can generate UI el
ements but
> these tools are for future releases of Vista and so on. There's really not
hing available
> now in the context I think you are asking.
> I've used PaintShop Pro (PSP) for years myself. It is inexpensive, general
ly considered
> easy to use, and rivals the over-priced PhotoShop. Use PSP for screen capt
ures of
> various elements from other sites and paste up various 'comps' (compositio
ns) as
> reference works. I also recommend you use a reference book such as "Design
er's Guide To
> Color 2" as it is an excellent resource for color combinations you can rec
reate using
> PSP.
> Some of the basic techniques designer's use to make page elements distinti
ve are
> 'over-lays' and 'juxtapositions' which is artsy-fartsy talk you may be abl
e to
> understand simply by observing the use of these techniques at my current h
omepage noting
> I had to beat myself up with CSS to get the effect without turning the pag
e into an
> over-weight slow loading sleeper. I'm also still using multiple stylesheet
s because IE
> has been crippleware and I haven't mastered the dozen and more CSS hacks I
E requires to
> build 'standards compliant' GUIs.
> Get a grip on color, page layout, and a couple of artsy-fartsy techniques
and you're all
> set for a clean page with distinctive design elements but remember to go e
asy on the eye
> shadow ;-)
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
> [1]
> [url]http://www.amazon.com/exec/obidos/tg/detail/-/B0009WDTIE/104-9118257-0723165?v=glance[/u
rl]

> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>
PSP is exceptionally good.
However, when I read this post, I thought the OP 'May' be talking about
general presentation rather than just the graphics themselves, such as that
made easier by using packages like Front Page or Dreamweaver etc.
On that subject, I do know two professional designers ( ASP.NET ) who use
third parties to create their design and then back-engineer ( or add
accurately ) the coding to fit the ASP.NET model.
This way, they dont have the less than intuative VS interface for designing
web sites but have the benefit of all the managability features already
built in to Front Page for example.
This can present difficulties in itself and you really have to know what
your doing, but it's how some people work.
It would be nice if one day Front Page could be absorbed into Visual Studio
( At least all the good bits )
;-)
Regards - Mr N
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:urQ7G$qxFHA.3856@.tk2msftngp13.phx.gbl...
> re:
> That's a good choice.
> I use Snagit :
> http://www.techsmith.com/products/snagit/default.asp
> It does everything I need to do.
> PhotoShop is overkill for most situations but
> for specialized requirements, it can't be beat.
> Its learning curve is quite stiff, though.
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "clintonG" < csgallagher@.REMOVETHISTEXTmetromilwaukee
.com> wrote in message
> news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
>
>
>
Your comments about Colour are both interesting and incisive.
I think teaching Software Engineers to appreciate Colour may be more
difficult than teaching artists to design web sites. Logical thinkers
rarely make great artists in my humble opinion (get ready for the
flames!!!), although I am sure there are exceptions to the rule.
Marketing departments also have their own interesting take on use of
colours; apparently colours signify things to people. For example, the Roman
Purple/Blue promotes a feeling of reliability, depth and maturity.
All good stuff as they say !
Cheers - Mr N. . . .
"clintonG" < csgallagher@.REMOVETHISTEXTmetromilwaukee
.com> wrote in message
news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
> Microsoft has several visual editing tools in beta that can generate UI
> elements but these tools are for future releases of Vista and so on.
> There's really nothing available now in the context I think you are
> asking.
> I've used PaintShop Pro (PSP) for years myself. It is inexpensive,
> generally considered easy to use, and rivals the over-priced PhotoShop.
> Use PSP for screen captures of various elements from other sites and paste
> up various 'comps' (compositions) as reference works. I also recommend you
> use a reference book such as "Designer's Guide To Color 2" as it is an
> excellent resource for color combinations you can recreate using PSP.
> Some of the basic techniques designer's use to make page elements
> distintive are 'over-lays' and 'juxtapositions' which is artsy-fartsy talk
> you may be able to understand simply by observing the use of these
> techniques at my current homepage noting I had to beat myself up with CSS
> to get the effect without turning the page into an over-weight slow
> loading sleeper. I'm also still using multiple stylesheets because IE has
> been crippleware and I haven't mastered the dozen and more CSS hacks IE
> requires to build 'standards compliant' GUIs.
> Get a grip on color, page layout, and a couple of artsy-fartsy techniques
> and you're all set for a clean page with distinctive design elements but
> remember to go easy on the eye shadow ;-)
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
> [1]
> http://www.amazon.com/exec/obidos/t...=g
lance
>
> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>

Suggested Graphics Programs for use with VS

Hello -

I have developed the world's ugliest website -- functions well, but it
leaves a lot to be desired aesthetically.

What are the recommended web graphics programs to integrate with Visual
Studio projects? I don't want to just go out and buy something without
knowing it works well with VS.

Also, how would you integrate it? Just copy and paste stuff?

Any help will be greatly appreciated!
--
SandyMicrosoft has several visual editing tools in beta that can generate UI
elements but these tools are for future releases of Vista and so on. There's
really nothing available now in the context I think you are asking.

I've used PaintShop Pro (PSP) for years myself. It is inexpensive, generally
considered easy to use, and rivals the over-priced PhotoShop. Use PSP for
screen captures of various elements from other sites and paste up various
'comps' (compositions) as reference works. I also recommend you use a
reference book such as "Designer's Guide To Color 2" as it is an excellent
resource for color combinations you can recreate using PSP.

Some of the basic techniques designer's use to make page elements distintive
are 'over-lays' and 'juxtapositions' which is artsy-fartsy talk you may be
able to understand simply by observing the use of these techniques at my
current homepage noting I had to beat myself up with CSS to get the effect
without turning the page into an over-weight slow loading sleeper. I'm also
still using multiple stylesheets because IE has been crippleware and I
haven't mastered the dozen and more CSS hacks IE requires to build
'standards compliant' GUIs.

Get a grip on color, page layout, and a couple of artsy-fartsy techniques
and you're all set for a clean page with distinctive design elements but
remember to go easy on the eye shadow ;-)

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.amazon.com/exec/obidos/t...723165?v=glance

"Sandy" <Sandy@.discussions.microsoft.com> wrote in message
news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
> Hello -
> I have developed the world's ugliest website -- functions well, but it
> leaves a lot to be desired aesthetically.
> What are the recommended web graphics programs to integrate with Visual
> Studio projects? I don't want to just go out and buy something without
> knowing it works well with VS.
> Also, how would you integrate it? Just copy and paste stuff?
> Any help will be greatly appreciated!
> --
> Sandy
re:
> I've used PaintShop Pro (PSP) for years

That's a good choice.

I use Snagit :

http://www.techsmith.com/products/snagit/default.asp

It does everything I need to do.

PhotoShop is overkill for most situations but
for specialized requirements, it can't be beat.

Its learning curve is quite stiff, though.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
> Microsoft has several visual editing tools in beta that can generate UI elements but
> these tools are for future releases of Vista and so on. There's really nothing available
> now in the context I think you are asking.
> I've used PaintShop Pro (PSP) for years myself. It is inexpensive, generally considered
> easy to use, and rivals the over-priced PhotoShop. Use PSP for screen captures of
> various elements from other sites and paste up various 'comps' (compositions) as
> reference works. I also recommend you use a reference book such as "Designer's Guide To
> Color 2" as it is an excellent resource for color combinations you can recreate using
> PSP.
> Some of the basic techniques designer's use to make page elements distintive are
> 'over-lays' and 'juxtapositions' which is artsy-fartsy talk you may be able to
> understand simply by observing the use of these techniques at my current homepage noting
> I had to beat myself up with CSS to get the effect without turning the page into an
> over-weight slow loading sleeper. I'm also still using multiple stylesheets because IE
> has been crippleware and I haven't mastered the dozen and more CSS hacks IE requires to
> build 'standards compliant' GUIs.
> Get a grip on color, page layout, and a couple of artsy-fartsy techniques and you're all
> set for a clean page with distinctive design elements but remember to go easy on the eye
> shadow ;-)
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
> [1]
> http://www.amazon.com/exec/obidos/t...723165?v=glance

> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>> Hello -
>>
>> I have developed the world's ugliest website -- functions well, but it
>> leaves a lot to be desired aesthetically.
>>
>> What are the recommended web graphics programs to integrate with Visual
>> Studio projects? I don't want to just go out and buy something without
>> knowing it works well with VS.
>>
>> Also, how would you integrate it? Just copy and paste stuff?
>>
>> Any help will be greatly appreciated!
>> --
>> Sandy
PSP is exceptionally good.

However, when I read this post, I thought the OP 'May' be talking about
general presentation rather than just the graphics themselves, such as that
made easier by using packages like Front Page or Dreamweaver etc.

On that subject, I do know two professional designers ( ASP.NET ) who use
third parties to create their design and then back-engineer ( or add
accurately ) the coding to fit the ASP.NET model.

This way, they dont have the less than intuative VS interface for designing
web sites but have the benefit of all the managability features already
built in to Front Page for example.

This can present difficulties in itself and you really have to know what
your doing, but it's how some people work.

It would be nice if one day Front Page could be absorbed into Visual Studio
( At least all the good bits )

;-)

Regards - Mr N

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:urQ7G$qxFHA.3856@.tk2msftngp13.phx.gbl...
> re:
>> I've used PaintShop Pro (PSP) for years
> That's a good choice.
> I use Snagit :
> http://www.techsmith.com/products/snagit/default.asp
> It does everything I need to do.
> PhotoShop is overkill for most situations but
> for specialized requirements, it can't be beat.
> Its learning curve is quite stiff, though.
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
> news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
>> Microsoft has several visual editing tools in beta that can generate UI
>> elements but these tools are for future releases of Vista and so on.
>> There's really nothing available now in the context I think you are
>> asking.
>>
>> I've used PaintShop Pro (PSP) for years myself. It is inexpensive,
>> generally considered easy to use, and rivals the over-priced PhotoShop.
>> Use PSP for screen captures of various elements from other sites and
>> paste up various 'comps' (compositions) as reference works. I also
>> recommend you use a reference book such as "Designer's Guide To Color 2"
>> as it is an excellent resource for color combinations you can recreate
>> using PSP.
>>
>> Some of the basic techniques designer's use to make page elements
>> distintive are 'over-lays' and 'juxtapositions' which is artsy-fartsy
>> talk you may be able to understand simply by observing the use of these
>> techniques at my current homepage noting I had to beat myself up with CSS
>> to get the effect without turning the page into an over-weight slow
>> loading sleeper. I'm also still using multiple stylesheets because IE has
>> been crippleware and I haven't mastered the dozen and more CSS hacks IE
>> requires to build 'standards compliant' GUIs.
>>
>> Get a grip on color, page layout, and a couple of artsy-fartsy techniques
>> and you're all set for a clean page with distinctive design elements but
>> remember to go easy on the eye shadow ;-)
>>
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>> [1]
>> http://www.amazon.com/exec/obidos/t...723165?v=glance
>
>> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
>> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>>> Hello -
>>>
>>> I have developed the world's ugliest website -- functions well, but it
>>> leaves a lot to be desired aesthetically.
>>>
>>> What are the recommended web graphics programs to integrate with Visual
>>> Studio projects? I don't want to just go out and buy something without
>>> knowing it works well with VS.
>>>
>>> Also, how would you integrate it? Just copy and paste stuff?
>>>
>>> Any help will be greatly appreciated!
>>> --
>>> Sandy
>>
>>
Your comments about Colour are both interesting and incisive.

I think teaching Software Engineers to appreciate Colour may be more
difficult than teaching artists to design web sites. Logical thinkers
rarely make great artists in my humble opinion (get ready for the
flames!!!), although I am sure there are exceptions to the rule.

Marketing departments also have their own interesting take on use of
colours; apparently colours signify things to people. For example, the Roman
Purple/Blue promotes a feeling of reliability, depth and maturity.

All good stuff as they say !

Cheers - Mr N. . . .

"clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
> Microsoft has several visual editing tools in beta that can generate UI
> elements but these tools are for future releases of Vista and so on.
> There's really nothing available now in the context I think you are
> asking.
> I've used PaintShop Pro (PSP) for years myself. It is inexpensive,
> generally considered easy to use, and rivals the over-priced PhotoShop.
> Use PSP for screen captures of various elements from other sites and paste
> up various 'comps' (compositions) as reference works. I also recommend you
> use a reference book such as "Designer's Guide To Color 2" as it is an
> excellent resource for color combinations you can recreate using PSP.
> Some of the basic techniques designer's use to make page elements
> distintive are 'over-lays' and 'juxtapositions' which is artsy-fartsy talk
> you may be able to understand simply by observing the use of these
> techniques at my current homepage noting I had to beat myself up with CSS
> to get the effect without turning the page into an over-weight slow
> loading sleeper. I'm also still using multiple stylesheets because IE has
> been crippleware and I haven't mastered the dozen and more CSS hacks IE
> requires to build 'standards compliant' GUIs.
> Get a grip on color, page layout, and a couple of artsy-fartsy techniques
> and you're all set for a clean page with distinctive design elements but
> remember to go easy on the eye shadow ;-)
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
> [1]
> http://www.amazon.com/exec/obidos/t...723165?v=glance
>
> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>> Hello -
>>
>> I have developed the world's ugliest website -- functions well, but it
>> leaves a lot to be desired aesthetically.
>>
>> What are the recommended web graphics programs to integrate with Visual
>> Studio projects? I don't want to just go out and buy something without
>> knowing it works well with VS.
>>
>> Also, how would you integrate it? Just copy and paste stuff?
>>
>> Any help will be greatly appreciated!
>> --
>> Sandy

Saturday, March 24, 2012

suggestions for smart card or biometric web authentication?

Anyone have suggestions for biometric or smart card or key fob or [whatever
else] authentication of a future public facing website? For example, a
customer could do something to authenticate themselves and the computer
passes some data in the background of their browser session so a user can be
authenticated better than the typical "username/password" fields? We'd use
ASP.NET 2.0 on the server side. I see a few miscellaneous tools in a google
search but nothing is jumping out at me. For example, one is not really
..NET compatible but you could work around that. Not great. We also need
something affordable. Considering that online banking sites are exploring
better options to prevent spyware from grabbing usernames/passwords, I was
hoping someone in this group might have done some research into this already
and have some concrete thoughts or suggestions.

User Group Etiquette: Please don't be the first to reply to this post
unless you have something truly helpful to add, else others will think I've
already been helped and not read the post.HK:

You can have a look at our opensource two-factor authentication
solution:

http://www.wikidsystems.net (or
https://sourceforge.net/projects/wikid-twofactor/) and our commercial
site: http://www.wikidsystems.com.

We currently have a COM object for windows apps, but we're also working
on an ISAPI plugin.

In addition, the PC clients for mac, linux and windows can do mutual
authentication - i.e. host & user auth, which prevents MITM attacks. It
can run on a usb device. The commercial version supports wireless
devices - Blackberry, cell phones, Palm, WindowsMobile.

suggestions for smart card or biometric web authentication?

Anyone have suggestions for biometric or smart card or key fob or [whatever
else] authentication of a future public facing website? For example, a
customer could do something to authenticate themselves and the computer
passes some data in the background of their browser session so a user can be
authenticated better than the typical "username/password" fields? We'd use
ASP.NET 2.0 on the server side. I see a few miscellaneous tools in a google
search but nothing is jumping out at me. For example, one is not really
.NET compatible but you could work around that. Not great. We also need
something affordable. Considering that online banking sites are exploring
better options to prevent spyware from grabbing usernames/passwords, I was
hoping someone in this group might have done some research into this already
and have some concrete thoughts or suggestions.
User Group Etiquette: Please don't be the first to reply to this post
unless you have something truly helpful to add, else others will think I've
already been helped and not read the post."HK" <replywithingroup@.notreal.com> wrote in
news:ZHhtf.6970$pE4.4961@.tornado.socal.rr.com:

> Anyone have suggestions for biometric or smart card or key fob or
> [whatever else] authentication of a future public facing website?
Biometrics is still in its infancy - at least for the web.
As for keyfobs, take a look at RSA Security's SecureID authentication.
Also Entrust provides secure identity solutions.
SecurID needs a bit of fudging to work with ASP.NET:
http://sourceforge.net/projects/securid4dotnet/
A cheaper solution maybe to use client-side certificates. You send a
certificate to each user:
http://support.microsoft.com/defaul...b;EN-US;Q315588
So to authentication, a user will need a password + certificate.
But I guess a bigger question is - are you going to provide all your
customers keyfobs or biometric readers? This stuff doesn't come cheap.
Also, are you willing to deal with all the support issues? Perhaps you
should consider building better logging/monitoring tools - and force
users to reset there passwords often?

> User Group Etiquette: Please don't be the first to reply to this post
> unless you have something truly helpful to add, else others will think
> I've already been helped and not read the post.
Newsgroup (usenet)... not user group!
Anyhow, I don't think there is such an "etiquette" rule. What one
considers junk maybe gold for another? : ) You can always repost if you
don't like the answers!
Stan Kee (spamhoneypot@.rogers.com)
HK:
You can have a look at our opensource two-factor authentication
solution:
http://www.wikidsystems.net (or
https://sourceforge.net/projects/wikid-twofactor/) and our commercial
site: http://www.wikidsystems.com.
We currently have a COM object for windows apps, but we're also working
on an ISAPI plugin.
In addition, the PC clients for mac, linux and windows can do mutual
authentication - i.e. host & user auth, which prevents MITM attacks. It
can run on a usb device. The commercial version supports wireless
devices - Blackberry, cell phones, Palm, WindowsMobile.

Super weird problem

I have a really strange problem. I've implemented a website using a lot of user controls (ascx). Everything worked fine before, and it has run for months.

And today, suddenly all those user controls (scrolling messages, tabstrips, menu, etc) don't work anymore, i.e. nothing appears although there's no error message. And I do not change anything, the codes remain exactly the same as before.

The web controls (textBox, calendar, buttons, etc) on the main page (not in ascx) still work fine.

I've spent, in vain, a lot of hours trying to figure it out. Do you have an idea what's going wrong ? I really appreciate your help.

Thanks

Btw, the codes are quite long, so I won't post it here. But if you need to see a part of it, just let me know, I'll post it.> nothing appears although there's no error message.

What exactly do you mean, "nothing appears"? If you View > Source, what do you see? Have the ASCX controls not be added at all? Or have they been added but not rendered?

Also, the elements you mention as having ceased to work look as though they'd use Javascript. Even if you haven't changed the ASCX or ASPX files, have you perhaps changed an external javascript file? I once forgot to add ";" to the end of a new line of script ... and it broke myentire site!
Things always get broken when no one has changed anything :)

If truly nothing has changed, try resetting IIS, as something might be confused in there...

Most likely though, as SomeNewKid2 said, it might be possible you made a change to something and didn't think it would even affect the controls...

But I could be wrong too :)
If the site is being hosted, I would check with the hosting site that they haven't upgraded the .net framework to 1.1.

Thursday, March 22, 2012

Support for Com Controls in Shared Hosting Services

Hi,
For my ASP.NET 2.0 website, I found what looks like a really great freeware
text editor (XStandard: http://xstandard.com/default.asp) but it is a COM
component. I've never set up a website and I'm not sure I want to invest a
couple of days on this control and find out it is not supported. I talked to
someone at webhost4life and he said 'it shouldn't be a problem' and I don't
like the 'shouldn't' word. I'm just wondering: should I be worried about
this or do all the web hosting companies support third-party COM controls
like this as a matter of course?
The XStandard control is a text editor. One of the things I like about it is
that it does not give the user a whole slough of buttons so he can choose
any font, any color of the rainbow or format his text in thousands of ways.
It lets you define the formatting options and presents them in a combo box.
Pretty clever.
Thanks.
Steveas the active/x control is installed on the client machine, not the
server you should be ok.
-- bruce (sqlwork.com)
Uriah Piddle wrote:
> Hi,
> For my ASP.NET 2.0 website, I found what looks like a really great freewar
e
> text editor (XStandard: http://xstandard.com/default.asp) but it is a COM
> component. I've never set up a website and I'm not sure I want to invest a
> couple of days on this control and find out it is not supported. I talked
to
> someone at webhost4life and he said 'it shouldn't be a problem' and I don'
t
> like the 'shouldn't' word. I'm just wondering: should I be worried about
> this or do all the web hosting companies support third-party COM controls
> like this as a matter of course?
> The XStandard control is a text editor. One of the things I like about it
is
> that it does not give the user a whole slough of buttons so he can choose
> any font, any color of the rainbow or format his text in thousands of ways
.
> It lets you define the formatting options and presents them in a combo box
.
> Pretty clever.
> Thanks.
> Steve
>

Support for Com Controls in Shared Hosting Services

Hi,

For my ASP.NET 2.0 website, I found what looks like a really great freeware
text editor (XStandard: http://xstandard.com/default.asp) but it is a COM
component. I've never set up a website and I'm not sure I want to invest a
couple of days on this control and find out it is not supported. I talked to
someone at webhost4life and he said 'it shouldn't be a problem' and I don't
like the 'shouldn't' word. I'm just wondering: should I be worried about
this or do all the web hosting companies support third-party COM controls
like this as a matter of course?

The XStandard control is a text editor. One of the things I like about it is
that it does not give the user a whole slough of buttons so he can choose
any font, any color of the rainbow or format his text in thousands of ways.
It lets you define the formatting options and presents them in a combo box.
Pretty clever.

Thanks.

Steveas the active/x control is installed on the client machine, not the
server you should be ok.

-- bruce (sqlwork.com)

Uriah Piddle wrote:

Quote:

Originally Posted by

Hi,
>
For my ASP.NET 2.0 website, I found what looks like a really great freeware
text editor (XStandard: http://xstandard.com/default.asp) but it is a COM
component. I've never set up a website and I'm not sure I want to invest a
couple of days on this control and find out it is not supported. I talked to
someone at webhost4life and he said 'it shouldn't be a problem' and I don't
like the 'shouldn't' word. I'm just wondering: should I be worried about
this or do all the web hosting companies support third-party COM controls
like this as a matter of course?
>
The XStandard control is a text editor. One of the things I like about it is
that it does not give the user a whole slough of buttons so he can choose
any font, any color of the rainbow or format his text in thousands of ways.
It lets you define the formatting options and presents them in a combo box.
Pretty clever.
>
Thanks.
>
Steve
>
>

Tuesday, March 13, 2012

Survey System with SOA?

Can anyone tell me how to implement a simple survey system in terms of SOA?

Lets say:

We have a website, where user logins in and takes the survey. Results of survey are stored into Database. once Survey is done, user sees a thank you page/

I am trying make system very simple here, so one can explain me how to implement SOA. We have lot more complecated system to implement.

I just need to see how to implement SOA.

Any other sample or example of complete SOA will be helpful.

Thanks,No body can help me out with small sample application with SOA?

I don't need anyone to design Survey System with SOA, but any simple small app with SOA example will be helpful.

Thanks

switch connection string in xsd file

Hi,

I have 2 connectionstrings in the web.config file in my website. It has a xsd file of handling all the database calls etc.

I wonder how do I switch the connectionstring used in the xsd file in code-behind?

Basically, my web.config will have a setting indicates whether website is test mode or live mode in appSetting region:

<add key="mode" value="">

So:

<add key="mode" value="test"> <!--is testing mode-->

<add key="mode" value="live"> <!--is live mode-->

depend on this than the whole site is using the appropriate connection string, sample code:

public static string ConnectionString
{
get
{
if (IsTesting)
{
return ConfigurationManager.ConnectionStrings["Test"].ToString();
}
else
{
return ConfigurationManager.ConnectionStrings["Live"].ToString();
}
}
}

But how to you set the xsd file following this rule?

Thanks in advance.

Hi,

As far as I can see, we don't use .xsd file to switch this. From your code, I can see that your ConfigurationManager is reading from web.config for the targeted connectionstring directly. So the only thing we need to do is to set the IsTesting flag. I think you can add a new key in Web.Config to indicate if the testing mode is true or false.