|
how to run .sql file of a oracle using vb.net..iam writting some pl/sql using begin and end statements and iam saving the file as xyz.sql now this file i have to run in oracle usig vb.net....is this possible .....
|
|
|
|
|
Try reading the file contents and pass it to ExecuteNonQuery() method.
|
|
|
|
|
Hi,
in asp.net why we are writing connection strings in web.config?.can't we store connection strings in class or in any dll.
With regards,
anu
|
|
|
|
|
It doesn't make as much sense in ASP.NET because it is compiled on demand. However, the reasoning is that configuration settings should not be compiled into an application. Also, SOX compliance and good corporate governance means a developer should not have access to production passwords, thus a network admin needs to be able to make the adjustments.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
It's your choice of keeping connection string. It can be kept anywhere. But keeping it in a configuration file like web.config, allows to edit the value without recompiling your application.
|
|
|
|
|
yes you configure a connection string programmatically in every class on your application.
of course, I'm sure you wated the conection strings to be saved in the settings, ypu could do it by adding the necessarily references.
as well you can use your dataset designer to do it.
Shimi
|
|
|
|
|
Also we can protect the connectionstring specified in connectionstrings section of web.config.
Arun J
|
|
|
|
|
I've got a web project using Atlas. The web project also uses a master page. On one page, I need an alert box to pop up roughly half of the time the UpdatePanel is refreshed, and the text of the alert box needs to be dependent on the outcome of code executed before the UpdatePanel is re-rendered.
Concretely: The page has a GridView that is filtered by radio button options, and there are some action buttons under the GridView. If the radio button selection is changed, I don't want an alert box to pop up. But if an action button under the grid is clicked, I want an alert box to pop indicating the outcome of the operation.
I have tried writing dynamic JS directly into the UpdatePanel through the use of a Literal control, and I have tried using RegisterClientScriptBlock(). But in neither case has my alert box actually come up when I click one of my action buttons.
Any ideas?
Thanks.
|
|
|
|
|
for as long as i knew, showing alert box in update panel can't be done.
i don't know if there is any funky method to achieve this goal.
when i was in the project that change application's framework 1.1 to 2.0 with asp.net AJAX, the solution to this problem is providing a label control that hidden or visible = false. if you want to show any message just show the label and assign it with some string value. you can add font-color = "red" if you want to, and font-size = "even blind man can see"
i hope this help, if you have the funky method that i'm talking about above, please tell me what your method is ...
thx fellow developer...
|
|
|
|
|
I am using hidden labels with bold red text right now. The problem is a bunch of the moron users have 800 x 600 screen res. I started getting flooded with complaints, "I never saw a confirmation message..." So my client asked me to take out all of the labels and replace them with alert boxes.
When the alert box experiment failed, I tried using JS code to force the browser to scroll back to the top of the page. That failed too. That's when I began thinking there's a problem with rendering JS in a refreshed UpdatePanel.
If it can't be done, then I'll just tell my client that that's the case, and that the next solution is to move the messages from the top of the screen to just above the buttons they click.
Thanks for your help.
|
|
|
|
|
Anytime dude...
|
|
|
|
|
Hi,
Me too had similar problem. Try using following code
private void ShowMessage(string message)
{
//This code works if there's no UpdatePanel
//string script = "<script type=\"text/javascript\">alert('" + message + "');</script>";
//Page.ClientScript.RegisterStartupScript(this.GetType(), new Guid().ToString(), script);
//Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
// We must do something slightly different with an UpdatePanel
string jScript = "alert('" + message + "');";
ScriptManager.RegisterClientScriptBlock(UpdatePanelNewsLetter, UpdatePanelNewsLetter.GetType(), new Guid().ToString(), jScript, true);
}
now call the ShowMessage() function wherever required in UpdatePanel
Regards...
|
|
|
|
|
Hi All,
Could you please give me an Html code/Java script code to detect an opertaing system before opeing a web page?
How can i place the code in my Html for the page so that it can call the script before loding the page?
Thank you very much
Regards
|
|
|
|
|
kibromg wrote: Could you please give me an Html code/Java script code to detect an opertaing system before opeing a web page?
Google[^] not working where you live?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i have created a multiview which has 4 views.........multiview is placed in a panel.... when the active view is changed.... active views are displayed at different locations of the screen exactly whre they are present in ASPX file.......... i want that whatever view is active it should be displayed on the same location.....
What should i do
|
|
|
|
|
If you're using the asp.net multiview control it should be working fine, no need for extra panels.
only two letters away from being an asset
|
|
|
|
|
in my .cs file when i write
droplist.Attributes.Add("onclick", "return confirm('Do you wAnt to continue')");
the above is working but when i write
droplist.Attributes.Add("onclick", "click()");
it doesnot what shud i do to solve the problem
i have a function in cs file
public void click()
{
}
|
|
|
|
|
droplist.Attributes.Add("onclick", "click()");
This line of code establishes that a javascript function named 'click()' will handle the javascript onclick event for your dropdownlist control.
i have a function in cs file
public void click()
{
}
You are confusing client-side event handlers (typically written in Javascript, located in the ASPX page) with server-side event handlers (written in your preferred .NET language, located in the code-behind file). There's no server-side onclick event for the DropDownList control, so presumably you want to define a javascript method to execute in the client's browser. You can do this thus:
<script language="javascript">
function click()
{
// add implementation here
}
</script>
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello everyone,
I was wondering how Google Analytic works. The tool allows website owners to check where their visitor have been prior to coming to their website. If you know how such a tool works and what is required please elaborate. Thank you in advance for your time
|
|
|
|
|
severvariables and I believe the one you want is REFERER
MrPlankton
|
|
|
|
|
Hi MrPlankton,
Thank you so much for responding to my post. I have Googled ServerVariables Referer, Referer, and Server Variables but nothing useful came up. A bunch of the sites that came up were in Chinese. On one of the sites that came up, it said Server Variables are used on Cold Fusion server. I don't know anything about Cold Fusion server at this point. Do you know where I can more info on Server Variables and how to use them? Thank you in advance for your help.
modified on Tuesday, January 29, 2008 7:19:09 PM
|
|
|
|
|
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref12/html/P_System_Web_HttpRequest_ServerVariables.htm
MrPlankton
|
|
|
|
|
let's say I have a page page.aspx, it includes a class named SampleClass and a method name myMethod.
I want to call this method from a HTML page.
how do I do this?
Shimi
|
|
|
|
|
There are 2 ways of doing this in my experience;
1. Set a flag, say a hidden text field with some indicator of what method you want to call on the server. Then do a self submit in javascript and look for flag on Page_load event. If you see the flag call the method.
2. Use ajax
MrPlankton
|
|
|
|
|
I don't know to perform both of your suggestions
Shimi
|
|
|
|