Showing posts with label working. Show all posts
Showing posts with label working. Show all posts

Saturday, March 31, 2012

Subscriptions

Hi,

I'm working on a site that requries a subscription. I have ruled out storing CC details in a database so that means that either a user pays for several months at once and then has to manually make another payment when the time is up or else an independent payment company holds on to the details. Perhaps the bank could do this?

Anyone know anything about these latter ideas?

Cheers, WT.

There are companies like PayPal out there that could do your processing for you. Microsoft's Visual Web Developer Express has a starter kit for a PayPal eCommerce site.

http://msdn.microsoft.com/vstudio/express/vwd/starterkit/default.aspx#paypal

Hope that helps

Craist
If the site is small, I suggest using a third party Merchant Account and/or PayPal. Like you said, storing CC details in your own database is not a good idee unless you have major security and I think it's not legal unless the CC Company approuve.
But do these companies hold on to the CC details so that the customer can automatically be charged each month?
Yes they do

Wednesday, March 28, 2012

suddenly cant use breakpoints

this drives me cuckoo....

i have an application i've been working on for months and for some reason today the development environment completely ignores breakpoints. the app just runs and never breaks on any of my breakpoints. this happened to me once before but i can't recall what caused it.

anyone know what causes that?

Chances are you already checked these, but go to Build | Configuration Manager to make sure you're using the Debug mode. Also, run your app with F5, not Ctrl-F5. Finally, if you're using ASP.NET 2.0, be sure the following is in your Web.config file:

<compilationdebug="true"/>


i am in debug mode...

i use f5

i am not using 2.0 (use 1.1)

and yet it always goes right past any break points


close VS and restart it...

Also, is this ALL breakpoints? If you set one in the first page in the page_load does it stop?


i closed it down...restarted it...

put a break on page_load

it ignores it


Check in the Project Properties, make sure that "Enable ASP.Net Debugging" is checked...
it is checked

Check the web.config then...

<compilation.........debug="true"></compilation>


yes...web.config has debug=true

i just rebooted my machine but it still ignores breakpoints


Here's something you can try (copied from some other site):

Select "Debug" from the "Solution configuration" combobox which is embedded
into VS.NET's toolbar. If the project/solution is compiled using the
"Release" configuration, no debug symbols (PDB files) are created. Use this
configuration when compiling the release version of a product. If this
doesn't fix your problem, delete its "obj" and "bin" directories and
recompile.

Monday, March 26, 2012

Suggestion

Hello,

I am working on a e-commerce application, which should
allows me to add three values each time I add the items to
the basket. Now I wonder where and how I should store
these values so that I can reuse them in the next screen?

Please advise me.Two options that come to mind are in a database, and in the Session
object. Which one you pick really depends on the requirements of your
application. For instance, if you want a user to be able to add three
items to the shopping cart and come back three days later, you'll need
a persistant data store like a database.

You might want to check out the source code to the Commerce Starter
Kit: http://asp.net/Default.aspx?tabindex=8&tabid=47 This is a
learning tool and will give you some implementation ideas.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 15 Dec 2004 16:42:07 -0800, "Vishal"
<anonymous@.discussions.microsoft.com> wrote:

>Hello,
> I am working on a e-commerce application, which should
>allows me to add three values each time I add the items to
>the basket. Now I wonder where and how I should store
>these values so that I can reuse them in the next screen?
>Please advise me.

Suggestion

Hello,
I am working on a e-commerce application, which should
allows me to add three values each time I add the items to
the basket. Now I wonder where and how I should store
these values so that I can reuse them in the next screen?
Please advise me.Two options that come to mind are in a database, and in the Session
object. Which one you pick really depends on the requirements of your
application. For instance, if you want a user to be able to add three
items to the shopping cart and come back three days later, you'll need
a persistant data store like a database.
You might want to check out the source code to the Commerce Starter
Kit: http://asp.net/Default.aspx?tabindex=8&tabid=47 This is a
learning tool and will give you some implementation ideas.
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 15 Dec 2004 16:42:07 -0800, "Vishal"
<anonymous@.discussions.microsoft.com> wrote:

>Hello,
> I am working on a e-commerce application, which should
>allows me to add three values each time I add the items to
>the basket. Now I wonder where and how I should store
>these values so that I can reuse them in the next screen?
>Please advise me.

Suggestion on shopping cart and sessions

Hi,
I am working on implementing a shopping cart. I am planning to storethe shopping cart items in a database table. A shoppingcartid will beused to distinguish between different shopping carts. Theshoppingcartid for members will be their userid, for others it will bea guid. I am planning to store the shoppingcartid in a sessionvariable. We don't have a webfarm, just one server machine. I amthinking of using session with InProc mode.
But I have read many posts complaining of expired sessions, sessiontimeouts, session_end not fired etc. Is it ok to use sessions to storethe cartid or is there any better solution?
Thanks.

If your serious and in a hurry, SQL Server is the easy way. the other options are to write your own or use another server.

There is no session end when running SQL Server session


You said 'to write your own'. Can you please ecplain more on that. Thanks.

Sadly, time does not permit, but have a look at this - it should help

http://www.codeproject.com/aspnet/StateHijack.asp


Thanks.
Can any one tell me is there any major downside of using cookies tostore the cartid instead of sessions? I think there will be moreabondoned carts than when using sessions. But I am not concerned aboutthat.
I think may be you could use a temp table to store your data,you can delete the expired data automaticlly

hello.

or maybe you should consider taking a look at profiles.


I am not using ASP.Net 2.0 I cannot use profiles.

suggestions

Hi, all:
i am currently working on a survey web site which is based on ASP.NET. Every
survey is over 100 questions and using two different languages (for example,
english and chinese), and 15 questions per page by request, also I need to s
tore
answers to database.
Here is my question, is there any way I can pull the "save to Database
function/module" out and save it to a standalone function/module so both
language web pages can re-use it without put it on every single page? and ho
w?
Thanks in advance.I'm not sure I understand your question. If your database is properly
designed and your application is well architectured, from the little I do
understand, you should be able to re-use the save functionality.
How are you doing it now and what problems are you running into?
karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Jason" <jason@.hotmail.com> wrote in message
news:t1buj01kue9g1d077hif2md9rc8m24murr@.
4ax.com...
> Hi, all:
> i am currently working on a survey web site which is based on ASP.NET.
Every
> survey is over 100 questions and using two different languages (for
example,
> english and chinese), and 15 questions per page by request, also I need to
store
> answers to database.
> Here is my question, is there any way I can pull the "save to Database
> function/module" out and save it to a standalone function/module so both
> language web pages can re-use it without put it on every single page? and
how?
> Thanks in advance.
Here is what I did so far:
Survey1-EN.aspx
Survey1-EN.aspx.cs
Survey2-EN.aspx
Survey2-EN.aspx.cs
Survey1-CN.aspx
Survey1-CN.aspx.cs
Survey2-CN.aspx
Survey2-CN.aspx.cs
the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user will
see
different language(English or Chinese) in each page. And I have a class call
ed
saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
standalone procedure so I do not need to have the saveToDB() in each *.aspx.
cs?
Thanks.
ASP.NET newbie!
On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
REMOVEMETOO . ANDME net> wrote:

>I'm not sure I understand your question. If your database is properly
>designed and your application is well architectured, from the little I do
>understand, you should be able to re-use the save functionality.
>How are you doing it now and what problems are you running into?
>karl
I've written a two part tutorial on this sort of thing:
http://openmymind.net/localization/index.html
http://openmymind.net/localization/index2.html
You should find it useful. It'll help you onl have 1 page for X languages
and give you some database design ideas.
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"J" <j@.NoSpam.org> wrote in message
news:9ghuj0ltoq4olrsd965ahsb08noq40kr4s@.
4ax.com...
> Here is what I did so far:
> Survey1-EN.aspx
> Survey1-EN.aspx.cs
> Survey2-EN.aspx
> Survey2-EN.aspx.cs
> Survey1-CN.aspx
> Survey1-CN.aspx.cs
> Survey2-CN.aspx
> Survey2-CN.aspx.cs
> the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user
will see
> different language(English or Chinese) in each page. And I have a class
called
> saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
> standalone procedure so I do not need to have the saveToDB() in each
*.aspx.cs?
> Thanks.
> ASP.NET newbie!
>
> On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
> REMOVEMETOO . ANDME net> wrote:
>
>

suggestions

Hi, all:
i am currently working on a survey web site which is based on ASP.NET. Every
survey is over 100 questions and using two different languages (for example,
english and chinese), and 15 questions per page by request, also I need to store
answers to database.
Here is my question, is there any way I can pull the "save to Database
function/module" out and save it to a standalone function/module so both
language web pages can re-use it without put it on every single page? and how?
Thanks in advance.I'm not sure I understand your question. If your database is properly
designed and your application is well architectured, from the little I do
understand, you should be able to re-use the save functionality.

How are you doing it now and what problems are you running into?

karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"Jason" <jason@.hotmail.com> wrote in message
news:t1buj01kue9g1d077hif2md9rc8m24murr@.4ax.com...
> Hi, all:
> i am currently working on a survey web site which is based on ASP.NET.
Every
> survey is over 100 questions and using two different languages (for
example,
> english and chinese), and 15 questions per page by request, also I need to
store
> answers to database.
> Here is my question, is there any way I can pull the "save to Database
> function/module" out and save it to a standalone function/module so both
> language web pages can re-use it without put it on every single page? and
how?
> Thanks in advance.
Here is what I did so far:
Survey1-EN.aspx
Survey1-EN.aspx.cs
Survey2-EN.aspx
Survey2-EN.aspx.cs

Survey1-CN.aspx
Survey1-CN.aspx.cs
Survey2-CN.aspx
Survey2-CN.aspx.cs

the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user will see
different language(English or Chinese) in each page. And I have a class called
saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
standalone procedure so I do not need to have the saveToDB() in each *.aspx.cs?

Thanks.
ASP.NET newbie!

On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
REMOVEMETOO . ANDME net> wrote:

>I'm not sure I understand your question. If your database is properly
>designed and your application is well architectured, from the little I do
>understand, you should be able to re-use the save functionality.
>How are you doing it now and what problems are you running into?
>karl
I've written a two part tutorial on this sort of thing:
http://openmymind.net/localization/index.html
http://openmymind.net/localization/index2.html

You should find it useful. It'll help you onl have 1 page for X languages
and give you some database design ideas.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"J" <j@.NoSpam.org> wrote in message
news:9ghuj0ltoq4olrsd965ahsb08noq40kr4s@.4ax.com...
> Here is what I did so far:
> Survey1-EN.aspx
> Survey1-EN.aspx.cs
> Survey2-EN.aspx
> Survey2-EN.aspx.cs
> Survey1-CN.aspx
> Survey1-CN.aspx.cs
> Survey2-CN.aspx
> Survey2-CN.aspx.cs
> the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user
will see
> different language(English or Chinese) in each page. And I have a class
called
> saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
> standalone procedure so I do not need to have the saveToDB() in each
*.aspx.cs?
> Thanks.
> ASP.NET newbie!
>
> On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
> REMOVEMETOO . ANDME net> wrote:
> >I'm not sure I understand your question. If your database is properly
> >designed and your application is well architectured, from the little I do
> >understand, you should be able to re-use the save functionality.
> >How are you doing it now and what problems are you running into?
> >karl

Tuesday, March 13, 2012

Survey form - is it possilbe?

I am working for a small IT firm and we want to send our clients surveys. I have been thrown in to the development of this without alot of expereince in ASP so I thought I would run this by the forum first off.

What I would like to do is:

1) Send the client a link ithat will direct them to a web survey and pre-fill in info such as technicial, date, and call type.

2) Have them complete the survey and hit submit to return their info (this part I know how to do!!)

Link Structure:
"http://domain.com/surveyform & date & technician &calltype"

Is this even possible to do with ASP and if so do you have any suggestions.

Thanks very much!!Sure it is very possible using asp or asp.net. What do you have questions about?
This is very possible.

Use the query string like so:
http://someplace.com/survey.aspx?Date=blah&Technician=blahblah&CallType=blahblah

That will send:
Date that has a value of blah
Technician that has a value of blahblah
CallType that has a value of blahblah

to the survey.aspx page. To access those values, you use the NameValue collection object to hold them and you get the values from the Request.QueryString() method in the page load event. Use those values to fill your controls. Make sure you check for IsPostback.
I'm trying what you say but it won't work -- where am I going wrong? It directs me to the page but the first name textbox is not filled with "testname".

My link: http://www.britec.com/survey.asp?fname=testname

My code:
<%
dim fname
fname=Request.QueryString("fname")
%>

<html>
<head>
<title>First Name</title>
</head>
<body>

<form method="get" action="survey.asp">
First Name: <input type="text" name="fname">
<br />
Last Name: <input type="text" name="lname">
<br /><br />
<input type="submit" value="Submit">
</form>
</body>

</html>
Are you using VS.Net? If you are, your first problem is you are using asp not asp.net.
I am trying to use just ASP.
Ok, you are in the wrong forum...sorry for my replies, I thought you were talking about asp.net.

The querystring principles are the same, and I think you can use the Request object the same, but you would have to verify that because I have used little asp.
Go here and ask the question:
http://www.vbforums.com/forumdisplay.php?s=&forumid=4