|
I guess you don't have the right to create a folder at the ftp-server. You may ask the admin...
|
|
|
|
|
Do you have required rights to create the folder.
Cheers!!
Brij
|
|
|
|
|
Dhrumil_Shukla wrote: i m creating a folder in ftp but it is giving error that "access denied
to path "
As you are doing it from a ASP.NET web application, you need to know about some certain things.If you are trying it in VS Studio, then you need to write access to the ftp folder only. If your application hosted on server, then you need to give right access to that folder for every one to write OR need to create separate application pool with "Local System" Identity.
Regards,
Abhijit
|
|
|
|
|
You ought to ensure that right privileges are possessed by the logged on client.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
If your userid have only readonly rights, you cant create folder or upload files to the FTP site with that particular user.
Ask your admin who can configure the FTP to give you proper rights.
|
|
|
|
|
Hi Friends,
My reuirement is need to generate text boxes dynamically on the selection of drop down list where the drop down list
contains no and on selection of drop down list i need to create text boxes . i am able
create text box dynamically but when i select the drop down list whole page refreshes and
displays the text boxes . but what i need is the page should not refresh and the text boxes
should be displayed on selection of drop down .I have added update panel when i add these after selection
of drop down the page hangs up and no dynmic contols are created . and if i comment the update panels i am able
to get the text boxes .
Please help me to solve this problem
My id : jrsreenivas@hotmail.com
aspx.code
------------
<form id="form1" runat="server">
<asp:ScriptManager ID="smRedemption" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
<div>
<asp:UpdatePanel ID="upRedemption" runat="server" >
<ContentTemplate>
<asp:Panel ID="pnlRedemption" runat="server">
<table>
<tr>
<td>
<asp:DropDownList ID="ddlAdoption" runat="server" OnLoad="ddlAdoption_Load" OnSelectedIndexChanged="ddlAdoption_OnSelectedIndexChanged" AutoPostBack="true" >
</asp:DropDownList>
<asp:Label ID="lblCount" runat="server" Visible="false" ></asp:Label>
</td>
</tr>
<tr id="trAdoptionNo" runat="server" visible="false" >
<td>
<asp:Label ID="lblMessage" runat="server" Visible="false" ForeColor="Red"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="upDisplay" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<asp:Panel ID="pnlDisplay" runat="server">
<table>
<tr>
<td>
<asp:PlaceHolder ID="phAdoption" runat="server" Visible="true" EnableViewState="true" ></asp:PlaceHolder>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="lnkRedemption" runat="server" Text="Next" onclick="lnkRedemption_Click" Visible="false" ></asp:LinkButton>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlAdoption" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
c# code
----------------
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ddlAdoption.Items.Insert(0, new ListItem("--Select--", "0"));
}
}
protected void ddlAdoption_OnSelectedIndexChanged(object sender, EventArgs e)
{
lblCount.Text = ddlAdoption.SelectedValue;
int adoptionCount = Convert.ToInt32(lblCount.Text);
for (int i = 0; i < adoptionCount; i++)
{
TextBox txtAdoptionNo = new TextBox();
Label lblBreak = new Label();
lblBreak.Text = "<br/>";
txtAdoptionNo.ID = "txtAdoptionNo" + i;
RequiredFieldValidator rfvAdoptionNo = new RequiredFieldValidator();
rfvAdoptionNo.ID = "rfvAdoptionNo"+i;
rfvAdoptionNo.ControlToValidate = txtAdoptionNo.ID;
rfvAdoptionNo.ErrorMessage = "Cannot be Empty";
phAdoption.Controls.Add(txtAdoptionNo);
phAdoption.Controls.Add(rfvAdoptionNo);
phAdoption.Controls.Add(lblBreak);
}
lnkRedemption.Visible = true;
}
protected void ddlAdoption_Load(object sender, EventArgs e)
{
for (int i = 1; i < 10000; i++)
{
ddlAdoption.Items.Add(new ListItem(i.ToString()));
}
}
|
|
|
|
|
jrsreenivas wrote: My reuirement is need to generate text boxes dynamically on the selection of drop down list where the drop down list
contains no and on selection of drop down list i need to create text boxes .
jrsreenivas wrote: protected void ddlAdoption_OnSelectedIndexChanged(object sender, EventArgs e)
{
lblCount.Text = ddlAdoption.SelectedValue;
int adoptionCount = Convert.ToInt32(lblCount.Text);
for (int i = 0; i < adoptionCount; i++)
{
TextBox txtAdoptionNo = new TextBox();
This is not the way how ASP.NET Works. Just back to the APS.NET Page life cycle, All Postback Data and ViewState Data Loads Just Before Page_Load() Event. Now If you are creating Textbox in Dropdown list selected index changed, the Textbox will be created, but it will not able to load the Postback and View State Data. So this will not help you at all. You have to create the textbox on Pre_Init() Event, so that It can load the ViewState and Postback data.
|
|
|
|
|
hi Abijit,
thanks for your response can you please let me know the code how to write pre_init() so that it works for me .
thanks in advance
sreenivas
|
|
|
|
|
jrsreenivas wrote: can you please let me know the code how to write pre_init()
Hi Try this,
protected void Page_PreInit(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
string s = Request.Form["DropDownList1"];
}
}
Hope this will help you
|
|
|
|
|
I think creating dynamic textboxes will be easier if you use javascript. Use
var input = document.createElement('input');
input.type='text';
var container = document.getElementById('yourcontainerdiv');
container.appendChild(input);
Likewise create no of textboxes to the container div.
By this way you can omit the unnecessary server call.
|
|
|
|
|
Hi Abishek thanks for your response actually i had created similar to your code but i had to validate the values in the test box and i need to get the values to the c# page . so i had problem in that so i did this way
|
|
|
|
|
I've got to add to ASP.NET project unsafe C# code that invokes native win32 code from some DLL.
I enabled 'unsafe code' in web project build setting and it compiles normally, but when you run the site to debug with F5 it reports to the html page the error:
"C:\Windows\Microsoft.NET\Framework\v3.5
\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_32
\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35
\System.WorkflowServices.dll"
...
Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
...\App_Code\SampleUnsafe.cs(36,29): error CS0227: Unsafe code may only appear if compiling with /unsafe
Where can I change that csc.exe compilation command line?
Where to put native DLL (e.g. root virtual path?) so that unsafe cs code will be able to load it.
Чесноков
|
|
|
|
|
<compilers>
<compiler language="c#;cs;csharp" compilerOptions="/unsafe" ...
Чесноков
|
|
|
|
|
Hi all,
I've created a windows application through C# to add appointment in outlook 07 programatically. now i want to perform some action as soon as a new contact is added in the outlook i.e. i want to handling add contact event. please help me.
|
|
|
|
|
ACMA_1980 wrote: I've created a windows application through C#
And you asking this in ASP.Net forum?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You have improved your typing speed buddy
|
|
|
|
|
ACMA_1980 wrote: I've created a windows application through C# to add appointment in outlook 07 programatically
Then why you are asking over here? This is ASP.NET Forum. Please ask in C# Forum.
|
|
|
|
|
|
hi,
any one help me,,,
When i change the textbox content, it fire the .js(Script file) and set the button visible propery as true.
.js as a separate script file.
Thanks.
|
|
|
|
|
svm_kala wrote: When i change the textbox content, it fire the .js(Script file) and set the button visible propery as true
I didn't get can you be bit detail?
Cheers!!
Brij
|
|
|
|
|
When i change the text on the "Text box" to fire the javascript code, Like,
Button id :-
<asp:button id="<b>btnSave</b>" runat="server" text="Save">
onchangetextbox event:-
<asp:textbox id="txtFirstName" runat="server" text="FirstName" <b="">onchange="onButton('btnSave')">
My .js code:-
var button;
function onButton(ButtonValue)
{
button=document.getElementById('ButtonValue');
}
the variable "button" returns the null value.
Plz any one help me... how to solve the proble.
|
|
|
|
|
<asp:TextBox ID="txtFirstName" runat="server" Text="FirstName" onchange="onButton('<%=btnSave.ClientId%>')">
|
|
|
|
|
|
Do as DoctorMick says.If any other problem let me know
Cheers!!
Brij
|
|
|
|
|