|
AhsanS wrote: If it is because of performance
I dont think it only because of the performance. because 10 user is too less for any web application. may be reason is other .
cheers,
Abhijit
|
|
|
|
|
hi frnds,
this code will find the browser close button,,,,,
but ineed to disappear slowly while close the web page . where i have to write the code using javascript
is it possibel ? if it is possible plz give me the solution
function confirmUnload()
{
var mes = "Your message here";
if (event)
{
event.returnValue = mes;
}
else
{
}
}
window.onbeforeunload = confirmUnload;
|
|
|
|
|
No, that is not possible.
For the browser to update the display in any way you would have to exit the function, but before you exit the function you have to decide if you will leave the page or not. So you have to choose between leaving the page or displaying the message.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have a working C# program. It's a gui that lets me access my parallel port. I would like to be able to convert it into a web page now. I've tried the copy past and start debugging approach. I think it's over my head.
I would like to know where to go or who to contact to have a pro work on it. I am willing to pay a programmer for a few hours of thier time. I will provide my working program and I can pay with paypal. Can someone please advise.
|
|
|
|
|
Gunnar5759 wrote: It's a gui that lets me access my parallel port. I would like to be able to convert it into a web page now
A webpage can't access the parallel port.
|
|
|
|
|
Please don't cross post.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi..
Is it possible to highlight the first empty row in gridview automatically?
(without selecting gridview row)
if there is data in grid, the first empty row will be highlighted for next data inserting. if there is no data and gridview is blank, the first row will be highlighted.
Could anyone suggest me.. please?
thanks in advance!
|
|
|
|
|
You cab check the value of the row on RowDataBound event and there you can change the style of the row for showing it as selected.
Cheers!!
Brij
|
|
|
|
|
|
I have a gridview with three Select Command fields as columns. I have code that tells me which row the user clicked on but how do find out which Select Command field they clicked
on? Thanks.
|
|
|
|
|
Everyday we get the same error on our production web server....and end up having to restart iis 5.0 to correct it.
OIP-04148: Unable to obtain a free database object from the pool.
I am trying to recreate this error in test to solve the problem and can not seem to do it...iis always works fine as intended ie: reusing, pooling connections and keeping sessions down. How is it that in a matter of seconds, 50 sesssions are created as if there is a lock (no lock btw).
any ideas?
|
|
|
|
|
I have been trying for hours now. but unable to access the connection strng from app config file.
1. Application has reference to System.Configuration.dll
2. App Config file has the connectionString
still the following code returns nothing.
Private Shared Function GetConnectionString( _
ByVal name As String) As String
Dim returnValue As String = Nothing
Dim settings As ConnectionStringSettings = _
ConfigurationManager.ConnectionStrings(name)
If Not settings Is Nothing Then
returnValue = settings.ConnectionString
End If
Return returnValue
End Function
can any one guess what's going wrong?
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Hi,
just a wild guess, but I think you have to use the connectionstring within the web.config file. ASP.NET projects get their application settings from there.
Must look like this:
<connectionStrings>
<add name="MyConnectionString" connectionString="here it goes" />
</connectionStrings>
Regards
Sebastian
|
|
|
|
|
it's a seperate library project for DataAccess (DAL). Added a app config file. I'm trying to take the connection string from there instead of passing it through the presentation, BAL...
this is what I have in app config file
<connectionStrings>
<add name="Name" providerName="Provider Name" connectionString="Connection String" />
</connectionStrings>
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Hmm,
don't know if this works. As far as i know the config is loaded by the app, and in this case this is a web-app, expecting a web.config. But maybe you can load the app.config with the configuration manager manually?
Regards
Sebastian
|
|
|
|
|
Have you stepped into the code? Are you getting ConfigurationManager.ConnectionStrings as NOTHING ?
|
|
|
|
|
yes, ConfigurationManager.ConnectionStrings returns NOTHING . but i have a valid connection string with a NAME and PROVIDER NAME in the app config file.
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Hi,
Try using the following
System.Configuration.ConfigurationSettings.AppSettings("ConnectionString").ToString()
and in app.config
<appSettings>
<add key="ConnectionString" value="Data Source=MyData;Initial Catalog=Data;Integrated Security=False;User id=abcd;Password=1234;"/>
</appSettings>
|
|
|
|
|
ConfigurationSettings.AppSettings("DBConnectString") returns NOTHING
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Paste the code of your app.config and the code which you are calling to access it
|
|
|
|
|
hello, guys . i'm new with asp , i just wrote some noob pages (a master and a normal one) and i want to publish it (just to test it ) . I have a domain on .net , i've copied the files (.aspx , .master ) to it (i've also named one index.aspx) , but it does not work and i'm clueless . it says "The website declined to show this webpage " blah blah . Do i need to make an index.html make and then redirect that to the aspx file ? if yes , how ?
and do i need to redirect it to my computer (server) or can the host do the job for me ?
|
|
|
|
|
Hi,
does the server supports ASP.NET? Not all servers are set up to run .NET pages. (You don't need an index.html or something like this).
Regards
Sebastian
|
|
|
|
|
well , it only says about php . I suppose it doesn't (i'm not sure because someone bought it for me and i didn't have to chose it's issues).
So.. am i now suppose to redirect it to my computer or something ?
|
|
|
|
|
You could try it, but that's just for testing purpose I think. If you want to host your sites permanently you have to look out for an ASP.NET Provider.
|
|
|
|
|
hmm.. i see . another question : is it a good ideea to redirect it to another server (on another machine) , which will be working 24h/24h ? i mean .. will it change the url seen by the client ? (www.myactualdomain.net --->www.theotherserve.blahblah... )
(i'm sorry i'm having such a hard time understanding this , i've only dealed with programming desktop applications)
|
|
|
|