|
|
I have a question which I think ASP.NET users can answer.
I use PHP, so try and make the answer generic, please...
Anyways, I've been reading about this framework written in PHP which emulates the ASP.NET style of doing things I think...(pardon me if I don't make sense, but i'm in a rush)
Basically in traditional web dev, one write his HTML and embeds the PHP, but this framework and I believe ASP.NET allows seperation between busines logic, etc...
My question is something like this...
ASP.NET offers components like RADIO buttons, etc...but instead of using the HTML tag, do you use an XML tag which is then converted to HTML tag by the framework???
When you click a button on the client side of an ASPX script, do your fields get checked on the client sdide first automatically by using an built framework compoenet like a TText component or something???
As compared to using a HTML TEXT and adding an onchange event manually with validation code etc...???
Apologies for the sloppy message post
Cheers
How do I print my voice mail?
|
|
|
|
|
Hockey wrote:
ASP.NET offers components like RADIO buttons, etc...but instead of using the HTML tag, do you use an XML tag which is then converted to HTML tag by the framework???
Yes, controls which are able to fire events, etc., and are rendered using normal HTML ( obviously ) plus javascript to wire it all up.
Hockey wrote:
When you click a button on the client side of an ASPX script, do your fields get checked on the client sdide first automatically by using an built framework compoenet like a TText component or something???
Onclicks, etc. can be added by the framework, and they generate a postback with an event handler to inform the server side of the event.
Hockey wrote:
As compared to using a HTML TEXT and adding an onchange event manually with validation code etc...???
This way, you don't need to worry about that stuff, and the system even attempts to do the browser compatibility stuff for you.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Thanks for clearing that up for me.
Cheers
How do I print my voice mail?
|
|
|
|
|
i have this code http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7843&lngWId=4 and im trying to get it to work, i need a user to enter a postcode in a text box on internet explorer and only if it is invalid postcode then do an alert saying incorrect postcode, if valid then do nothing, ne1 any ideas?
|
|
|
|
|
hi
i am developping and e-trade website with PHP and i was programming with ASP before.
i find a problem i don't find in PHP what can replace the dictionary object.
can u help me.
|
|
|
|
|
I haven't used asp in ages (don't think I ever used a Dictionary object), but assuming the Dictionary object is a key/value type deal, you can simply use a standard php array...
<br />
$myarray = array('cat' => 'A cat says meow', 'dog' => 'A dog says woof');<br />
or
<br />
$myarray = array();<br />
$myarray['cat'] = 'A cat says meow';<br />
$myarray['dog'] = 'A dog says woof';<br />
You can access an individual key/value pair like:
<br />
<br />
$key = 'cat';<br />
<br />
if (isset($myarray[$key]))<br />
echo $myarray[$key];<br />
<br />
and you can iterate through all items like this...
<br />
<br />
$key = "";<br />
$value = "";<br />
<br />
while (list($key, $value) = each($myarray))<br />
echo $key . ' => ' . $value;<br />
<br />
There should be lots of other examples in the array section of the php help file.
My 20 Favorite Films
|
|
|
|
|
the good in the Dictionary object is that can open a session in the client part(the pc of the client) and you can store the information.
in the case that he refresh the page all the information still in his pc ,and that what i am looking for ,and i don't know if i can do that with PHP.
|
|
|
|
|
Session management is available in PHP. The default setup will store the session data in a temporary folder on the server. You can add your own custom handlers to provide your own storage method if need be. (I save session data to an mysql table)
You need to call session_start() on each page you'll be manipulating session data. You can access the session data via the $_SESSION superglobal:
page1.php
<br />
<?php<br />
session_start();<br />
<br />
$_SESSION['session_data_item_1'] = 'one';<br />
$_SESSION['session_data_item_2'] = 'two';<br />
<br />
?><br />
<br />
<a href="page2.php">Goto Page 2</a><br />
<br />
page2.php
<br />
<?php<br />
<br />
session_start();<br />
<br />
echo $_SESSION['session_data_item_1'];<br />
echo $_SESSION['session_data_item_2'];<br />
<br />
?><br />
<br />
php session tutorials:
http://www.phpfreaks.com/tutorials/41/0.php
http://www.free2code.net/plugins/articles/read.php?id=184
Lookup the session_ functions in php help file for more examples.
Pssst. You see that little light on your monitor? That's actually a spy camera, and I'm tracking your every move...
|
|
|
|
|
i am making a e-trade website and i have for exemple 03 products
1) Product N°1 = 5$ 2) Product N°1 = 10$ 1) Product N°1 = 8$
and when the consumer choise one product one row of matrix will be created
in an other page with the name of the product and the price
----------------
product1 / 5$
----------------
and like that with the second product and the third .
and i want to store this session in the PC of the client ,cause the client
can delete a product after he choise it.
|
|
|
|
|
You can add/update/delete any type of variable at anytime when you use php sessions.
Here's a general take at what I'd do for an e-cart app. Firstly, I'd place all e-cart code
in a separate file, that way you can include it in any file you want. (even better, you can make
a class for it)
include_ecart.php:
(not checked for errors)
<br />
<?php<br />
<br />
function does_ecart_exist()<br />
{<br />
return (isset($_SESSION['ecart']));<br />
}<br />
<br />
function is_item_in_ecart($product_id)<br />
{<br />
if (!does_ecart_exist())<br />
return (false);<br />
<br />
return (isset($_SESSION['ecart'][$product_id]));<br />
}<br />
<br />
function add_item_to_ecart($product_id, $product_name, $unit_price, $quantity)<br />
{<br />
if (!does_ecart_exist())<br />
return (false);<br />
<br />
<br />
$product_data = array('name' => $product_name, 'price' => $unit_price, 'quantity' => $quantity);<br />
<br />
$_SESSION['ecart'][$product_id] = $product_data;<br />
<br />
return (true);<br />
}<br />
<br />
function view_ecart_contents()<br />
{<br />
if (!does_ecart_exist())<br />
return (false);<br />
<br />
$product_id = 0;<br />
$product_data = array();<br />
<br />
while (list($product_id, $product_data) = each($_SESSION['ecart']))<br />
{<br />
printf('Product Id: %1$s, Name: %2$s, Price: %3$s, Quantity: %4$s', <br />
$product_id,<br />
$product_data['name'],<br />
$product_data['price'],<br />
$product_data['quantity']);<br />
}<br />
<br />
return (true);<br />
}<br />
<br />
function remove_item_from_ecart($product_id)<br />
{<br />
if (!does_ecart_exist())<br />
return (false);<br />
<br />
if (!is_item_in_ecart($product_id))<br />
return (false);<br />
<br />
$_SESSION['ecart'][$product_id] = array();<br />
unset($_SESSION['ecart'][$product_id]);<br />
<br />
return (true);<br />
}<br />
<br />
function check_out_ecart()<br />
{<br />
}<br />
<br />
<br />
session_start();<br />
<br />
if (!is_ecart_exists())<br />
$_SESSION['ecart'] = array();<br />
?><br />
<br />
Now, all you have to do is add:
include_once("include_ecart.php");
to the top of each file that will use the e-cart, and you've got access to all the e-cart functions and session data. For adding an item, all you'd have to do is call add_item_to_cart after the user post/button click occurs:
add_product_to_ecart(1, "Product No1", "5.00", "1");
Removing an item, just call:
remove_product_from_ecart(1);
You should check and see if there's an existing e-cart php class somewhere on the net. I know PEAR has lots of good classes in it, but I can't say for sure if it has any e-cart functionality.
Pssst. You see that little light on your monitor? That's actually a spy camera, and I'm tracking your every move...
|
|
|
|
|
i have a html page which uses codepage-1256 for its character set but i have a problem when i type some letters in Farsi my server can not recognize them but when i copy and paste these letters from the page itself it works ...
what is my problem...?
|
|
|
|
|
"my server can not recongnize"?
what do you mean?
Thinking-Asking-Thinking
|
|
|
|
|
i mean the server or application which should reply to my request can not recognize the characters and it descards all the characters..
think that i type "H" ,this is a valid character but server or application which replies to my request can not get it as a valid entry,but when i copy and paste the character "H" from the page itself ,it works....
|
|
|
|
|
Hi friends,
My java applet(Newsscroll) hides the dyanamic dropdown menus.
Is there a way to unhide them?
Ranjan
|
|
|
|
|
I have to list some information at my asp page.I get the info from a access database.I want to list the info rows 10 by 10 in every page.
Would somenone send me a sample paging source code.
--jcalone--
|
|
|
|
|
|
|
<A href="..\claimsp\submitclaim1.aspx">Claims Processing</A><br>
i am trying to add ?name=Session["name"] into this href and i have tried
<A href="..\claimsp\submitclaim1.aspx?name"<%=Session["name"]%>>Claims Processing</A><br>
but is does not work can somebody help me
chad
|
|
|
|
|
i didn't try but did u try this :
>Claims Processing
note the = after the ?name
HTH
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
|
Hi Friends,
My interest area is Software Engineering and Web related technologies.
My Knowledge base is surely SHALLOW.
As far as my education is concerned:
Did B.Sc in 1991 and after 10 years again started my education.
Different professional software diploma courses attended with student
level projects.
Currently, I am working as a web developer(PHP,MYSQL) for the last 9
months in a small company in India in which we do not apply Software
Engineering Practices.
e.g We do not design an E-R diagram on paper means no relationship is defined between different entities.No one uses the term E-R Here.Complete specs of the project are rarely available.As per given specs project is delivered and when feedback from client comes changes are made accordingly,I may have to change database.
Already 9-10 american sites working and doing (MCA) as a part time
student in a open university.
Some people say that There is no benefit of doing MCA if my interest
area is Web Development.
Goal is to get job satisfaction and make money.
Please advise me that what my approach should be.
High Regards,
Ranjan Goyal
|
|
|
|
|
I dont agree with ppl who say MCA is not benificial.
Also, MCA will definitely help you in Software Engineering and Web related technologies, which as you are your interests. If I were you, i'd take it up
HTH
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
Hi rohan,
Thanks for your response.
Below I am giving a small outline of two projects which I did at student level.Please read.
Member of SRS team in the Software Engineering (SENG) module. I created Data Flow Diagrams, Data Dictionary, Work Breakdown Structure, State Transition Diagram and Design Document. Design was implemented using ASP, COM, VB and MS-SQL Server.
Team Size: 9
Designed a Rapid Action Development tool using UML at NCST as part of Object Oriented Analysis and Design module (OOAD). Use Case Diagram, Collaboration Diagrams, Class Diagram and Sequence Diagrams.
Team Size: 4
In view of above do you still think that I should do MCA.
How this degree will help me to be considered as a serious professional?
Please elaborate for my understanding.
Regards,
Ranjan Goyal
(Other student level projects in brief are mentioned below
Developed an Online Chat Application using Java Swing as Front-end and EJB as middleware technology. I mainly worked on session beans and entity beans.
Team Size: 5
*Created a website for an intranet canteen using HTML, JAVASCRIPT and JSP at NCST as part of Web programming module (WEBP). Designing database schema, making database connectivity using JDBC, session management.
Team Size: 4(Was team leader)
*“Restaurant Billing System” using Visual Basic 6.0 as Front end and MS-SQL Server as Back end (DBMS) Module at NCST. I was mainly involved in designing of the schema, creating tables and implementing stored procedures.
Team Size: 3(Was team leader)
*“Materials Management System” in C++ as a part of Programming in C & C++ (PCCP) Module at NCST. I worked on the design of the system, programmed production section, inventory section and other related work.
Team Size: 4 (Was team leader)
*Implemented “Data Link Layer” using JAVA as part of Computer Networks (CNET) module at NCST. I implemented Framing, Deframing, Sliding Window Protocol and other project related work.
Team Size: 3(Was team leader)
Inventory System” Using JAVA Swing as Front-End and MS-SQL server as Back-End at NIIT. Worked mainly on front-end. Implementing action listeners, grid bag layout etc.
Team Size: independently
|
|
|
|
|
What you need to do is to look at the syllabus of ur MCA program, and decide, if that is what you want!
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|