|
-
Apr 20th, 2005, 06:32 AM
#1
Thread Starter
Member
Problems using asp server controls
this is the first time i am using asp.net for my website and i am facing some
problems. please help
1- i put a asp:TextBox on the page and increased its width form width property. the width
has increased in Internet Explorer but in Firefox it remains on its default width. how i
solve this problem.
2- due to rule i can put <form runat="server"></form> only once in the page but how i
can set asp controls in different positions as if i put this after <body> tage and close
it before </body> tage it does not work.
3- is there any method to access/store/modify data in MySQL database which is installed on
different linux/unix machine through asp.net pages which are running form windows server?
4- "asp.net is faster then php" is that true?
Last edited by muzammil; Apr 21st, 2005 at 08:04 PM.
-
Apr 20th, 2005, 07:35 AM
#2
I wonder how many charact
Re: Problems using asp server controls
1) The main cause of this is the .Net framework sees FireFox as a down-level browser, and therefore does not render a styled-width atttribute to FireFox when it requests a page. The real solution to this is to change your <browsercaps> section of your web.config (or machine.config if you have control of the server), so FireFox is given the same power recognition as IE.
Short of doing that however, you can explicity set a cssclass - which other browsers will use as the width.
html:
<div class="formFields">
<asp:textbox .... /asp:textbox>
css:
.formFields input, .formFields select
{
width: 250px;
}
-
Apr 20th, 2005, 10:06 AM
#3
Re: Problems using asp server controls
 Originally Posted by muzammil
2- due to rule i can put <form runat="server"></form> only once in the page but how i
can set asp controls in different positions as if i put this after <body> tage and close
it before </body> tage it does not work.
What do you mean by different positions? Use tables to align your controls in the places you want them to be.
3- is there any method to access/store/modify data in MySQL database which is installed on
different linux/unix machine through asp.net pages which are running form windows server?
Yes, just use the right classes to connect to your database, and as long as you can specify the location of the machine in a connection string you shouldn't have a problem.
4- "asp.net is faster then php" is that true?
Depends. That's a very vague statement. For that matter, a watermelon is faster than an F1 car. (If the watermelon is being pulled towards a black hole's event horizon)
-
Apr 20th, 2005, 08:21 PM
#4
Thread Starter
Member
Re: Problems using asp server controls
Setting Up Controls In Different Positions
i was saying that my one page has many tables and if i put <form runat="server"></form> in one table's <tr> and set my asp controls there but if another table has again a asp controls and if i set <form runat="server"></form> again for it it will give error because <form runat="server"></form> connot be put twise in one page
Accessing MySQL database form linux/unix Machine
please give me an example what will be the connection string
-
Apr 20th, 2005, 10:09 PM
#5
I wonder how many charact
Re: Problems using asp server controls
As far as the form issue, you cannot have more than one form set to run serverside in .Net 1.1. You have to rethink how you have architected your page.
As far as a connection to a server...
go to http://www.connectionstrings.com/
and click the MySql icon.
Depending on the data provider you use (for best performance - you should not use ODBC ), there are examples of how to create the connection string.
-
Apr 21st, 2005, 07:59 PM
#6
Thread Starter
Member
Re: Problems using asp server controls
Thanks guys my problems are almost solved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|