|
Piyush Vardhan Singh wrote: how to check database is available before open the connection object?
So you want to make sure database exist or not with out connecting the database?
|
|
|
|
|
thanks for reply
i want to avoid network failures error.when network is not available. so i want check database is available before open the connection object
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: want to avoid network failures error.when network is not available.
You have to taking care of Connection Time out For this . If the connection is not available you will get an Timeout Excepation
|
|
|
|
|
YES but i want to handle this without error?
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
i want my form open the new window and send querystring :
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "openWindow", "window.location.href='"http://sadafit-9d6e926:8084/pages/ShowImg.aspx[^]"?queryString=" + strSelect+"';", true);
i wrote this code but the window dont open in new window, what should i do
|
|
|
|
|
use window.open
rather than window.location.href.
|
|
|
|
|
I don't think your quotes line up. Does it open the page you expect it to, at all ?
According to google[^], you're also doing it wrong. Which makes sense, if you read your code, what about the command you've provided, makes you think it's going to open a new window ? window.open appears to be what you need. And a good book on javascript or at least a lesson in how to use google.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Set target to blank.
i.e target="_blank">
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
plz coorect my code i dont know where should i put targer
|
|
|
|
|
Instead using window.location.href use window.open
Here it is:
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "openWindow", "window.open('http://sadafit-9d6e926:8084/pages/ShowImg.aspx[^]?queryString=" + strSelect+"');", true);
But next time use google and work by yourself because getting ready-answer from others will not make you excellent developer.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
modified on Monday, July 27, 2009 6:59 AM
|
|
|
|
|
thanks its right, it work now
|
|
|
|
|
You are welcome,but trying to face problems by yourself will increase level of your exprience and professionalize.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi,
when i am using update panel the required field validator failed for dropdownlist,
when i deleted update panel it(required field validator) works fine.how to rectify this problem
can any one help me regarding this issue.
Thanks&Regards
Sandeep
hi
|
|
|
|
|
You're using a bunch of different controls to avoid having to learn how to write your own code. You need to look at the javascript for both controls, and try to work out why one stops the other from working. I suspect the answer is that the validator stops postbacks, and the update panel does not post back, by definition.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Actually Updatepanel is required to validate in server. If you dont want to post the page to the server and get the validation done in the server,
put some javascript in.
You can call the javascript function on client side events.
|
|
|
|
|
|
I've got web project that includes native win32 DLL resided in bin folder and unsafe web page that accesses functions from that DLL. In web.config /unsafe compilation is also enabled. On my PC it runs normally but when I put it to http on 3rd party web hosting it returns that error:
What is the reason and solution?
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7604211
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57
[FileLoadException: Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +227
System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337
[HttpException (0x80004005): Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729
[HttpException (0x80004005): Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259
Чесноков
|
|
|
|
|
If it's not a deployment issue, then it's an issue with permissions on your web host. Talk to them.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
It is certainly not.
ASP.NET dll has a native dll in its <Module> section. I presume that is the reason server fails to load it.
Do you know any web hosters who allows native dll support by default?
Чесноков
|
|
|
|
|
I went to the msdn website:http://msdn.microsoft.com/en-us/library/system.net.networkinformation.aspx
looking for help writing the code in VB.
|
|
|
|
|
i'm retriving this value from database
12+(IIf( 0>0, 0, 0))+34
How to eval this value
|
|
|
|
|
what is your question ? How does it relate to ASP.NET ? While this is a little weird looking, it's just 12 + 34. Unless there's something you're not telling us.
What are you getting from the DB and how/where do you want to evaluate it ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
OK, so the DB has nothing to do with it. You want to write Excel in a website ? Then you need to write a parsing engine.
Your easiest bet, if you want to use the same formulas as Excel, is to use Excel on the back end to parse these things.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|