|
Hello all,
sorry for my simle question, but i don't know a long text that is in my data base how i can insert it in my web page, with textbox orlable or gridview? i don't have problem with grid view but i do'nt know how i can connect to sql server from a lable or textbox.i search in google but i didn't gain any result maybe i didn't use true keywords.
please help me ,
thank you.
|
|
|
|
|
saba02 wrote: i do'nt know how i can connect to sql server from a lable or textbox
You connect to SQL Server with an SqlConnection object.
saba02 wrote: i don't have problem with grid view
Well, since you can't connect to a SQL Server with a grid view either but you think you did, I can only presume you are getting confused between the process of data binding and database connections.
Data binding isn't something I've got much time for because each time I've tried the results are message and difficult to change if I need to. It also seems to encourage poor design habits. That is why I stick to the robust method of using a 3-tier architecture with a separate presentation layer and DAL (Data abstraction layer)
SqlCommand cmd = new SqlCommand()
cmd.Connection = myConnection;
cmd.CommandText = "StoredProcedureName";
cmd.CommandType = CommandType.StoredProcedure;
string text = (string)cmd.ExecuteScalar();
myTextBox.Text = text;
|
|
|
|
|
thank you very much for your response.my problem solved with your guidance.
|
|
|
|
|
Hi all,
I am working on .NET for the past one year. I read some books for it but i am confused as to what controls should we use for maximum performance.There are always more than one way to implement a functionality,hence we should sought out the best way to implement a certain functionality.
for eg: We should use datasets rather than using datareaders...
We should use tables instead of divs....
Can any body provide some very useful tips on "How to design a high performance website"
|
|
|
|
|
John Mecas wrote: We should use datasets rather than using datareaders...
No.. Not neccessary..
There is world of Difference between Dataset and DataReader.
DataReader - Simple , Fast, Forward-Only, Read-Only, Connection oritented, Ideal for handling small set of Records. Ex: Binding of read-only data is much more efficient using a reader.
Dataset - Powerful, Two-way(Moves Forward and Backward), Read-Write Access, Connectionless, Ideal for manipulating huge set of Records. Ex: Binding Data to a DataGrid and manipulating and doing a Bulk update.
If you try to use these two the other way round then it dramatically reduces the performance of your application...
John Mecas wrote: We should use tables instead of divs....
No two controls have 100% similar properties, methods and events. There are slight differences that the other control is incapable of doing...we can say that these are the limitions implied on the control...
John Mecas wrote: How to design a high performance website
a lot to list... but few tips here...
A. In terms of Fornt-End Design
1. Better understanding about the Business Requirement and .NET Controls will help you to give a User-Friendly Interface to the application
A. In term of Coding few tips..
1.Having 3-Tier or N-Tier Architecture (Layered Approach)
2.Optimized Code
3.Proper Usage of Session and Application Variables
4.Proper Implementation of Caching Techniques
5.Reduced Viewstate Maintenance
6.Client-Side Validation
practicing all these will help you to deliver a high performance website.
Hope this helps....
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
I want to buid a web site with play media, but i don't know any control in asp.net to do it. Please help me, thanks.
Thao
|
|
|
|
|
|
Hello Everyone,
Can anybody tell me how to do the online shopping in ASP.NET ........
|
|
|
|
|
|
HI John This will be useful for me also ...
i need an application in Internet banking ..
plz help me ..
Bye ...
Naresh
|
|
|
|
|
nareshss wrote: i need an application in Internet banking ..
What is that exactly you want to know?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
this error keeps popping up.
"Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'xmlns'.
Source Error:
Line 1: <?xml version="1.0"?>
Line 2: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 3:
Line 4: <connectionStrings>"
What should I do?
BiG RaLpH
|
|
|
|
|
Remove this :
Big Ralph wrote: xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"
This is actually written by the web site administration tool, so you can safely remove it.
|
|
|
|
|
when I remove it it doesn't recognize the connection strings anymore
BiG RaLpH
|
|
|
|
|
Actually i am having a thumbnail image with two anchor tag . one for delete and one for download. While i go delete its not working properly.
Pls any one give solution for this.
Regards,
Vishnugopan.Rajagopalan
|
|
|
|
|
Can u plz put some of your code here, it will give us a better idea to understand your problem.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
hello everybody
i have to develop a e-learning application using asp.net.i need to have whiteboard,chat,application sharing.i dont know how to implement the application sharing and whiteboard.what i want is that when i share any application (powerpoint,word,excel) all the user who are connected should be able to view it in real time but the control of the application should be with the administrator.if i change any slide or word document then the change should be reflected to all connected users.please help me....
Parth
|
|
|
|
|
You may probably use something like webcam for that..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Even I am working on the same concept. we have lot many things to discuss. I have done an integration with white board, but stuck up while sharing the images and documents to the connected session in the whiteBoard
You can mail me at sandeepgowda.bs@gmail.com.
|
|
|
|
|
Hello Everyone,
Can anybody tell me how to upload the project over the server or domain
|
|
|
|
|
1. Copy the Files that is need to Run the application in a Project Folder .
2. share the Folder and set the neccessary permission to access the Folder from a Remote Server using a Domain User Account.
3. Connect to the Remote Server using Admin UserName and Password through Remote Desktop Connection.
4. Go to Run Command and Type- "\\YourComputerName". Give your Username and Password If it prompts and You will be able to access the shared folder's of your Computer.
5. Take the files and Copy it in the IIS Virtual Directory.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
How to check spelling mistakes in asp.net 2.0..... It's Urgent
Thanks in Advance
|
|
|
|
|
Kasi Viswanathan wrote: spelling mistakes in asp.net 2.0
Asp.Net it self provide the intellisense environment,
so you dont have to write the full word of any properties, methods or function.
When you declare, create a class, methods, properties or function.
You can use all this by pressing only ctrl + space and you will automatically gain all things.
SO I think there is a less chances of spelling mistakes.
That's it !
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
I want to check the data given by the user is spelled correct or not... Is there any third party control available for this....
Thanks in Advance...
|
|
|
|
|
I want to enter Leave Date from(01:12:2006)to(01:01:2007)and see the duration of 1 month.Can any one send the code... It's Urgent.
Thanks in Advance...
|
|
|
|