|
Thnx lol i got it....
|
|
|
|
|
If that answered helps you, then Please don't forget to Click on Good Answer
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
it is known that some text size in the webpages will be changed by changing textsize in the view menu in the internet explore setting.
I want to know is it possible to fix the text size (e.g. label), which is not changed by the textsize setting in the explore?
if so, and how?
thanks.
|
|
|
|
|
Why would you want to do this? The point of having the option to change font sizes in the browser is to allow the user a choice. It isn't a good design to take that choice away. Instead you should make your layout flexible enough the handle the change.
only two letters away from being an asset
|
|
|
|
|
I want to display an image with its width to the computer screen width.
anyone can give me one hint how to do?
thank you.
|
|
|
|
|
use javascript screen.width / screen.height .
you can set img.width and img.height
|
|
|
|
|
thanks, but I do not know how to embed javascript into ASP.net
can you give me one example for this?
|
|
|
|
|
<script type="text/javascript">
function initialise()
{
var imgcontrol = document.getElementByID('yourimgid');
imgcontrol.style.width = '100%'
...
...
}
</script>
<body onload="initialise();">
...
do like this in your designer.
|
|
|
|
|
thanks!
this may be so called Ajax application in ASP.net.
|
|
|
|
|
Nopes dear..
AJAX is Asynchronous Javascript and XML. Well, AJAX relates to XMLHttpRequest Object present in Javascript API which can call to the server. Just like you postback to get data from the server, if you dont want to postback but call the server from your client using Javascript, you can use XMLHttpObject. To get more knowledge about AJAX try AJAX W3Schools [^] tutorial.
This is simple JavaScript fix in the client side.
|
|
|
|
|
Hello,
Im using this following softwares:
VS 2008 & Microsoft SQL Server 2005
I want to attach my database to SQL Server. How can I do this(Without using wizard) ?
TIA
|
|
|
|
|
comp_j wrote: Im using this following softwares:
VS 2008 & Microsoft SQL Server 2005
I want to attach my database to SQL Server. How can I do this(Without using wizard) ?
How does it related with ASP.NET ? If you have to ask it on General DB Forum.
comp_j wrote: How can I do this(Without using wizard) ?
Why you want to avoid Wizard ? Do you want to do it programmatically.?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Abhijit Jana wrote: Why you want to avoid Wizard ?
Because I want to run my project on a system that just have SQL Server engine and .NET Freamwork.
Abhijit Jana wrote: Do you want to do it programmatically.?
yes, I do.
|
|
|
|
|
Connect to master Database using your .NET object. Then run the stored procedure below :
EXEC sp_attach_db @dbname = 'dbname',
@filename1 = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname.mdf',
@filename2 = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname_log.LDF'
Please replace the path to the existing mdf and ldf files.
You can also create using
CREATE DATABASE [dbname] ON
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname.mdf' ),
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\dbname_log.LDF' )
FOR ATTACH
GO
command
Hope you can do this now.
|
|
|
|
|
Am currently working on my end of semester project (online examination system )where questions are to be obtained from a database,cached on a dataset and store the dataset in session object(of the global asax file).questions are read from this session variable and displayed on a form on its form load event.this form has 3 buttons that can enable a user to navigate to the next question,previuos question(s) and another to intentionally end the exam.whenever a user clicks on the back button of the form to access a previously answered question,the previous question is shown but the radio button that was checked as the answer is not checked.Any idea on how can i maintain the checked status for the previously answered questions?
|
|
|
|
|
mbams wrote: Any idea on how can i maintain the checked status for the previously answered questions?
So you don't record and persist the answers they provided to the questions?
only two letters away from being an asset
|
|
|
|
|
mbams wrote: store the dataset in session object
First of all, dont do this. Why do you have to set an Entire detaset in session, rather you store in database and get when required.
mbams wrote: whenever a user clicks on the back button of the form to access a previously answered question
Well, in your case, as I said, always store user's input to the database. Use <a href=nextpage.aspx> to ensure everything to be in the history. If you really require the back functionality you should use <a > tag.
Hope you are getting me.
|
|
|
|
|
Please tell me the namespaces used to connect to Oracle Database in Asp.net.
|
|
|
|
|
Google broken? Try Bing.
only two letters away from being an asset
|
|
|
|
|
Use
OracleClient classes.
System.Data.OracleClient Namespace allows you to connect to Oracle Database.
|
|
|
|
|
I am not able to use this namespace. For connecting to Oracle should i have any add on or any assembly?
|
|
|
|
|
|
Yes .. OracleClient.dll
It is installed with .NET framework.
Otherwise you can connect through OleDb classes, but I recommend to use Oracle Specific ones in OracleClient.dll.
|
|
|
|
|
Im newer in XML coding. Any expert can guide me on how to generate and update xml in real time from database when there any changes is table data.
|
|
|
|
|