|
Ok, I have solved the problem, but I don't know why it's so.
The Return keyword has to be outside of the try block.
Can anyone explain why?
Thanks.
|
|
|
|
|
Okay im using a .css file and it's working in IE but not Firefox, I noticed the textsizes i was setting are getting set to the appropriate sizes, in IE but not in Firefox, although if I comment out the .css file it affects both.
Just wondering if anyone has run into this bofore, or any tips in regards to using .css file with Firefox as opposed to IE
|
|
|
|
|
EVeyone has run into this. You need to change your CSS to something that works for both. And test for any other browser you want it to work with.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Differences between IE and other browsers are quite common. If you are building your pages for IE, there is a great risk that they are depending on rendering bugs in IE, and won't look the same in any other browser.
Firefox is a bit stricter with the correctness of the code. IE sometimes accepts code that is incorrect, by guessing what you might have meant.
Example:
Incorrect code, but accepted by IE:
font-size: 12;<br />
color: bad;
Correct code:
font-size: 12pt;<br />
color: #bad;
Open up the Error Console in Firefox and open your site, and it will tell you about all the incorrect css code.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Dear Buddies,
In ASP.Net,I would like to type in Combo Box during run time. Is it possible.?
This is possible in .Net 2003 & 2005. But in ASP.Net this is not the case.Any solution to this prob?
Thanks..
Muthu
|
|
|
|
|
Type in runtime... How? When user types you want control whick key presses?
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Well, When user wants to include one more item with the existing items from combo box and save a record in database, it should be enabled in web also. this is the reason why I seek for the possiblity to type in combo box during run time.
I think, it should be possible...!!
Muthu
|
|
|
|
|
hi
i developed a website using asp.net c# and sqlexpress (2005). It works fine on my machine but when publish it to host i always take this error message:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
My database files are in App_Data directory. I am accessing them from there. the host doesnt allow remote connections. I think the connection string can cause this problem but i dont know how to solve it. Here is my connection string:
<connectionStrings>
<add name="sqlBaglantiStr" connectionString="server=.\SQLExpress;AttachDbFileName=|DataDirectory|ahsapeviniz.mdf;Integrated Security=true;User Instance=true"/>
</connectionStrings>
And for databases, i use windows authentication. Can it be about it? i dont know how can i create user for a database in App_Data folder.
thanks.
|
|
|
|
|
Is SQLExpress installed on your host?
only two letters away from being an asset
|
|
|
|
|
Yes it is installed, they told me "use SQLExpress" before
|
|
|
|
|
check whelter you sql server allows remote connection or not...
please check in sql server configuration manager and put enable tcp/ip also.
suchitamanandhar@hotmail.com
|
|
|
|
|
It will not help, if i will change my sql server settings. Because the problem is when publishing website on my host. And my host does not allow remote connections with sql server.
I am asking what my connection string should be to not make a remote connection.
|
|
|
|
|
ok may be you windows firewall is ON.If so, please OFF your firewall and then check.
suchitamanandhar@hotmail.com
|
|
|
|
|
How can i close firewall on host?
|
|
|
|
|
i mean you have to close the firewall of the computer where your sql server resides.If your sql server is in the host computer, then you have to request them to close....or change some configuration in the firewall so that firewall recognizes your sql server.
suchitamanandhar@hotmail.com
|
|
|
|
|
Hi,
I am new to ASP .Net.
I was going through the Page LifeCycle in ASP .Net 2.0 and what I found was a lot of events like
TestDeviceFilter()
AddParsedSubObject()
OnInitComplete()
OnPreRender()
OnRenderComplete() etc. that can be overridden.
What I want to know is where would one override these events, I mean in what scenarios.
Any help would be appreciated.
Aakar.
|
|
|
|
|
|
I need to convert the row entries to column in dataset.
Eg:
emplid assigned to
xxx work1
xxx work2
yyy work2
my dataset shud be changed to
emplid work1 work2
xxx checkboxchkd checkboxchkd
yyy notchecked checkboxchkd
to bind to grid.
There are two different ways am considering. One is the stored proc on sql and the other is C# class. Which would be better in performance?
Thanks for help.
Thanks
|
|
|
|
|
If you are using sql server 2005 then you can use the pivot command. If not, I would use ado.net. Create a dataTable with the proper columns and use a data reader to populate it. I don't think the C# is more efficient, but it sure is easier. Writing complicated stuff is SQL tough to debug and generally more difficult to follow.
How many rows are you going to be pulling back? If you have 1000s of rows you are probably better off using a user defined function in SQL for performance, but if you have 50 or less rows, it won't matter how you do it and the C# will be much easier to maintain / modify / debug if you need to.
I didn't get any requirements for the signature
|
|
|
|
|
I am using database MSSQL, i have also installed MySQL throught ODBC driver. I Know these databases sql queryies are a diffrent, but does a certan controll/class/dll exsist to translate query betwen them? If it doesnt it's not a big problem.
|
|
|
|
|
Queries are not different if you use standard sql in your app...
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
hi this is velu
i need to display the date and time in my web application in ASP.Net with C#,
i created in Server side. But it is a web application, several user use this,so server get the request in every second(performance is low).
i need clientside date and time.
how to create please reply soon
|
|
|
|
|
just google javascript date time counter. You should find something.
I didn't get any requirements for the signature
|
|
|
|
|
Can you suggest me ways to look at the entire dataset or datatable on the immediate window?
Thanks
|
|
|
|