|
i use this cod in a (button_Click)
in the updatepanel not work
MyMessages msg = new MyMessages();
string str = "javascript:alert(\'" + msg.GetDenied() + " " + err.Text + " " + "!\')";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Str", str, true);
ahmed eldeghedy
modified on Tuesday, November 18, 2008 6:59 AM
|
|
|
|
|
StringBuilder sbScript = new StringBuilder();
sbScript.Append("<script language="\"JavaScript\"" type="\"text/javascript\"">");
sbScript.Append("alert('Your message')");
sbScript.Append("</script>");
Literal ltMessage = new Literal();
ltMessage.Text = sbScript.ToString();
updatePabel.Controls.Add(ltMessage);
|
|
|
|
|
Hi All,
I am working on Internationalization of an existing project on ASP.net 2.0.
Are there any tools available that can help in identifying problems and issues specific to I18N.
I have looked into Fxcop but that does not handle aspx and js files.
Plz reply ASAP
Thanks,
Bijgupt
|
|
|
|
|
i want to change css of my page using javascript
how can i do that
|
|
|
|
|
Don't cross-post - it's considered rude. And anyway, this question has nothing to do with ASP.NET.
|
|
|
|
|
|
Hello,
Iam working with the asp.net FileUpload-Control (Microsoft, VisualStudio). This control contains a textbox and a button. I need to rename this button, because it's a german control with the Text 'Durchsuchen' - I need to change the text of the Button to 'search'.
Can anyone tell me, how to do this. Cant find a way to change this button-text.
Thanks for helping
(sorry, about my bad english)
|
|
|
|
|
You write better English than 95% of those here (including native speakers), and apologise for it!
I don't know of there is a simple solution to your problem. Perhaps your best bet is to download and use a third-party tool instead. This one[^] is free and, if it's like any of the others I've used from that site, good.
|
|
|
|
|
Thank you. I've got a solution for this problem, the button changes automically his language, if you use an english version of the os/browser.
I've tried to change the language of my browser and the language of the os manually, but nothing happens. If you call the website from an english version of the browser/OS, the button caption show 'browse'
|
|
|
|
|
Hi All,
I developed a project in ASP.net 3.5 and trying to upload in a web.
First I compiled that project using cmd prompt then only I upload it.In local it rums properly.But when i upload it givies error in web.config.
I used only default web.config file. Give any solution for this....
Thanks in advance
|
|
|
|
|
You haven't given enough information about your problem. It is hard to answer without knowing the error message.
|
|
|
|
|
Hi
i got the error like this...
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 51: ASP.NET to identify an incoming user.
Line 52: -->
Line 53: <authentication mode="None" />
Line 54: <!--
Line 55: The <customErrors> section enables configuration -->
Source File: f:\..\....\....\web.config Line: 53
modified on Tuesday, November 18, 2008 3:53 AM
<div class="ForumMod">modified on Tuesday, November 18, 2008 3:54 AM</div>
|
|
|
|
|
Please Show us your Error.I usually develop my App and after testing. i create a Virtual Directory in a IIS, and make sure that the Correct framework is installed for my App. and after that it will work. ok, if you have VS i dont see why using Prompt to compile, But still its your choice.
scothykonma wrote:
But when i upload it givies error in web.config.
I used only default web.config file. Give any solution for this....
Well show us your Config File Error
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I got the error like this,
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 51: ASP.NET to identify an incoming user.
Line 52: -->
Line 53: <authentication mode="None" />
Line 54: <!--
Line 55: The <customErrors> section enables configuration -->
|
|
|
|
|
Firstly Can you Post your Configuration File code, becuase it cannot just Complain if you were not working on it. I suspect that you are Deploying your Application in a Wrong Way. TEll me Step by Step what did you do to Deploy your Application, What Security Options did you Choose, Is Anonymous Access enabled ? , Tell us Step by Step and Dont Forget to Post your Configuration File.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi
I am just entering into ASP.Net web hosting..I developed my project in ASP.Net2.0. I just compiled and copy website into web.
My web.config is,
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="samplecandConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\samplecand.mdb;Persist Security Info=True" providerName="System.Data.OleDb"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="None"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off"/>
</system.web>
</configuration>
When I run this project in web i got the error like this,
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 51: ASP.NET to identify an incoming user.
Line 52: -->
Line 53: <authentication mode="None"/>
Line 54: <!--
Line 55: The <customErrors> section enables configuration
Source File: f:\web\...\...\web.config Line: 53
|
|
|
|
|
Try to Write your Connection String like this
<appsettings>
<add key="Moraka" value="User id=SDE;Password=TOPOLOGY;Database=MORAKA;SERVER=VUYISWA\SGIICORNETGS01">
at the Botton Change the
<authentication mode="Windows" />
and Did you Create a Virtual Directory ? ,try this
You do not have a virtual directory for your application
This error typically occurs when your application does not have a virtual directory established in the Microsoft IIS web server. Your application needs a virtual directory in order to run. See Creating a Virtual Directory for Your Application for instructions on creating a virtual directory. When you create the Virtual Directory on Windows 2003, you must select the “Run Scripts (such as ASP)” in the Virtual Directory Creation Wizard.
Please also check that the .NET Framework version of your application is correctly specified in the virtual directory settings.
The folder containing your application is within the root folder of your website
For example, if your root website is located in C:\inetpub\wwwroot and it contains a Web.config file and you installed your application in C:\inetpub\wwwroot\MyApp and it also contains a Web.config, then your application’s Web.config file is considered a nested or inherited Web.config file. Web.config files can be nested, however nested Web.config files cannot contain some elements such as the <authentication mode=...>, <httpHandlers> and <httpModules> parameters. Iron Speed Designer creates a Web.config file for your application assuming it is a completely ‘free-standing’ application instead of being part of a larger application and your application does not require the presence of another root Web.config file to run.
This can be resolved in a number of ways, but typically the best solution is to move your application to its own folder outside of the web root folder, such as C:\MyApp, and you change your virtual directory setting for MyApp to point to this folder. Other ways to address this (not recommended) are to (a) change your Machine.config file to allow "full" Web.config files in nested sub-folders, (b) delete the Web.config from the web root folder assuming you do not need it; or (c) modify your application's Web.config to remove the authentication, httpHandlers and httpModules sections in order to make your application a subset of the web root application and inherit all of the other settings from the root.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Ok....But I have tried that also.
I explain step by step.
First, I create a virtual directory in c:/inetpub/wwwroot/myfolder and paste all the files.
Then I compiled it and get in a new folder in C:/compiledfile
Then I upload my compiled file.
I know there is a problem in web.config. In compiled file i have one compiled web.config and my original web.config file. In order to delete any one of the web.config i got an error.
I do not know which one I want to move.And also i could not get your code....
|
|
|
|
|
Replace
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings>
<add key="samplecandConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\samplecand.mdb;Persist Security Info=True"></add>
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="windows">
</authentication>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
I want to know , how you created a Virtual Directory. Step by Step
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
HI
I am new for ASP.Net. This is my first website to upload.So kindly help me...
In my project(VWD2.0) itself select website->copy website,create a folder in C:/inetpub/wwwroot/new folder
Then i copied all the files to new folder.
From C:/inetpub/wwwroot/new folder right click->properties, i shared and give the rights to read and write.
(Is this procedure correct?)
And then from settings->control panel->IIS->right click the folder and gives the authentication mode=none
Thats all....
|
|
|
|
|
hi scothykonma
type 'inetmgr' in run command and locate your application
right click on the application and then select properties.
in that click on create and select asp.net tab and in that select asp 2.0 and then apply.
and also set the permissions like iuser_machinename , asp.net and iis_wpg.
Regards
surender
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
hi scothykonma
type 'inetmgr' in run command and locate your application
create an application pool with some name.
right click on the application and then select properties.
in that click on create and set application pool.
and select asp.net tab and in that select asp 2.0 and then apply.
and also set the permissions like iuser_machinename , asp.net and iis_wpg.
Regards
surender
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
hi scothykonma
After you have Compiled your project. Create a Folder in the machine that has IIS. Go to Control Panel--> Administrators tools->Internet Information Service. Colapse the optons until you get "Default Website", Right Click on it and go to new Virutual Directory ,Browse to the Folder that you created.Give it a name. thats where you file that you had in your App will be copied to. Dont use any tool to copy the Files, just into your Project and copy them to the Folder. After you have created the Virtual Directory, the Instance name that you have created will appear under the Default web site, Right clikc on your Web instance and go to Properties, Go to "Document" tab and click on add, type the name of your startup page with extension like this "login.aspx".when done go to ASP.NET tab and make sure that the version is 2.0. and try it again.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi Vuyiswa Maseko
I have created virtual directory in IIS. But that folder is not available in C:/inetpub/wwwroot.
Then how can i copy the files into ftp/http to upload?
|
|
|
|
|
A Virtual Directory doesnt have to be in the "C:/inetpub/wwwroot." it can be anywhere in the machine that host the IIS. i have one more question. Do you use a Payed Domain or you have Physicall Access to the machine that have IIS ?
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|