CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 11/14/2004 2:29:07 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 19 Views: 17 Favorited: 0 Favorite
20 Items, 1 Pages 1 |< << Go >> >|
"mko" <>
NewsGroup User
How to process a form stored in a db as an aspx page?11/14/2004 2:29:07 PM

0

Hi,

I want to retreive a code of a form from a db, then ad it to a string in aspx page and render it all as an aspx page. Is that possible?
"haidar_bilal"
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/14/2004 3:17:40 PM

0

Hello, usualy what we do is have a template which is an aspx page, which contains dynamic data to be loaded from DB. This is a better approach.

Regards.
Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/14/2004 4:06:50 PM

0

Well, the reason for this is that I am working in a multilanguage environment, so I do not want to translate or store just fragments of a form, I want to store it as a whole. The from is a mix of server controls and text.

What would you suggest in this case?
"haidar_bilal"
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/14/2004 4:58:46 PM

0

Well, you can have the same server controls for all the languages, and only change the data in those controls, which will be stored in the DB, right ?

regards.
Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/14/2004 8:12:06 PM

0

Exactly, but what about the text near/around the server control(s)?
"pickyh3d" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/14/2004 9:43:51 PM

0

Change it all to labels or literals.
Picky
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/15/2004 8:46:48 AM

0

What would that do??
"haidar_bilal"
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/15/2004 9:48:47 AM

0

Hello, all the text you have around the server controls, you can have literals,labels,spans, ....
And the text by which these Text Controls are to be populated are stored in DB.

For example:

<asp:Label id="Name" ..../>

Then, the label would get its value from the DB, because the name can be in English, Arabic, Hebrew, Spanish, .....

So what you do is access the database and get the name in any language you want, and then

Name.Text = "value from DB";

Is this fine ?

regards.
Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/15/2004 11:05:36 AM

0

Hi,

That is something that I do not want to do. Imagine that you have to 20 different labels. That means that you have to store 20 values in a db and if you multiply it by a number of languages you ger 60 values for 3 languages. It is difficult to keep track of all these values. What I would like to do is store entire form or just a table that contains all the labels and controls as a text in db as 1 values. The problem is how to render that 1 value as an aspx page!
"haidar_bilal"
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/16/2004 7:21:23 AM

0

Hello, if you have the code inside a Db, then you need to create a new file name it "page1.aspx", and then add the code you want to it. This way a new aspx page is being created. One thing here is that you will be using Code-Inline and not code-behind.

Regards.
Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
"pickyh3d" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?11/16/2004 11:01:02 PM

0

And it will be very slow the first time.
Picky
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/5/2004 9:12:00 PM

0

How would I specify Code-Inline and not code-behind?
"haidar_bilal"
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/6/2004 5:02:58 PM

0

You can specify that in the heading of the page !!!

Regards.
Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
"mbanavige" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/6/2004 5:32:01 PM

0

::It is difficult to keep track of all these values.

Actually, consolidating all application text into a single db table makes it easy to keep track of. I have tables that contains hundreds of text elements.

our Text table has a column per language with a single key field. To see what translation are done and which arent, i need to look in only one table.

Non-developers can have access to the table to enter translations without getting me involved at all.
Mike Banavige
~~~~~~~~~~~~
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"zkent" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/6/2004 5:42:22 PM

0

If you are going to have 60 languages, you are going to have to do some work to make this happen. Storing language specific string values in a text file or db and populating templates requires planning and setup but will be infinitely easier to maintain. Storing entire pages for 60 languages will be a maintenance nightmare. If you are looking only at the short term, you (or whomever follows you) will not be happy later on.
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/7/2004 8:02:50 PM

0

Thanks guys for your opinion. Currently I have something like mbanavige mentioned, but for people who translate this text it is kind of difficult to get a large picture of how entire text or form will lool like i.e. they have to translate chunks of texts and sometimes it turns out to be dumb translation that does not fit into the rest of the text.

I was considering to have some kind of a preview to help them to get an idea of what are they translating.

I have come across microsoft .mspx extension. Can someone explaing more about .mspx?

Thanx
"mbanavige" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/7/2004 8:18:24 PM

0

http://www.microsoft.com/backstage/bkst_column_46.mspx
Mike Banavige
~~~~~~~~~~~~
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"mko" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/8/2004 9:13:17 AM

0

Thanx, this is an interesting article.

I am trying to figure it out how are they using xml schema and xml template to generate a page.

I understand they are storing id's or names of .net controls , user controls etc. in xml files and db but I am not sure how this controls are called to form a web page../
"mbanavige" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/8/2004 1:34:47 PM

0

You might do better to read about Master Pages.
These are coming in ASP.NET 2.0
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/aspnet-masterpages.asp

The docs i read seem to indicate that .master is the file extension of a master page, but i have a suspicion that .mspx is using the same technology.
Mike Banavige
~~~~~~~~~~~~
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"pickyh3d" <>
NewsGroup User
Re: How to process a form stored in a db as an aspx page?12/8/2004 1:48:33 PM

0

..mspx has been around since the beginning of ASP.NET, at least from what I have noticed.

I used to think "mobile" whenever I saw the m, but I just stopped thinking about it.
Picky
20 Items, 1 Pages 1 |< << Go >> >|


Free Download:













restricting access

current logon user for sql statement

beginner question re forms based authentication

guestbook spamming problem

passwords

[help]membershipprovider and thread safe problem!!

how can i access to control i placed on a "login"

focus on username of logincontrol

userwizard in panels with custom questions -any way

about captcha

internet security about some data

rsa file encryption/decryption using c#...

asp.net cryptography problem

admin and profiles

help in converting this custom login script

multithreading

error while trying to run project: unable to start debugging on the web server. the project is not configured to be debugged

file access permission problem! very challenging!

accessing textbox that's inside loginview

capture user login / logout times.

extended sqlmembershipprovider

redirectfromloginpage won't redirect.

setting dissallowed usernames?

asp page security context

error on removing from role

creating custom membershipo fields

i would like to know how i can give a different message when the user enter wrong password using the membership

memebership providers for multiple sites on different servers.

windows auth/ntfs not prompting for password

how to use login control vs 2005?

check single group membership using windowsidentity constructor

restricting content based on ad groups

login controls?

can dpapi be used in server context under asp.net 2

need to retrieve the name of the user that's logged on

web.config file and forms authentication ticket

s4u kerberos for calling wcf services

createuserwizard: does it prevent equal usernames automatically?

where its is checked request.isauthenticated

custom redirect - one thing roles in asp.net 2.0 forgot?

authentication between applications (subdomains)

force logout on machine1 when user logged into another machine

.net 3.5 aspnet_regsql.exe <membership/> <rolemanager/>

storing secure data in cookies

security problem in asp.net

creating applications dynamically (or membershipprovider)

can't get "remember me" to remember me!

using an access table as the user list.

customize createuserwizard

some advice needed to carry on

   
  Privacy | Contact Us
All Times Are GMT