Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > suggestions

Reply
Thread Tools

suggestions

 
 
Jason
Guest
Posts: n/a
 
      09-08-2004
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.
 
Reply With Quote
 
 
 
 
Karl
Guest
Posts: n/a
 
      09-08-2004
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" <> wrote in message
news:...
> 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.



 
Reply With Quote
 
 
 
 
J
Guest
Posts: n/a
 
      09-08-2004
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


 
Reply With Quote
 
Karl
Guest
Posts: n/a
 
      09-08-2004
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" <> wrote in message
news:...
> 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

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a suggestions forum? ww_crimson The Lounge 2 07-02-2005 04:02 AM
wireless desktop suggestions/cautions? Jack Wireless Networking 4 11-10-2004 04:32 PM
Feature suggestions? Marc Beckersjuergen Firefox 1 07-19-2004 08:33 AM
Making suggestions about Mozila Anton Gysen Firefox 2 03-05-2004 04:00 AM
Help esk Suggestions - Best Practices, Tool, ideas, suggestions, etc JohnNews Computer Support 3 06-23-2003 11:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57