|
Your web site runs under an app pool. That app pool has an identity. That user that the app pool is running as needs to be able to delete files in the correct directory. Often it makes sense to create a new app pool for each new web application. Then you can create a network user for that specific application and give that user the correct rights.
Ben
|
|
|
|
|
Thanks sir
resolve it
was a permission issue.
given the rights and now working smoothly.
|
|
|
|
|
I have developed a two way Client Server Chat Application using .Net Remoting. where Server Application have real IP but Client Application Donot have real IP. but my application is working in LAN Environment But CallBack and deleget is not working in real world scenario.
Pavan Pareta
|
|
|
|
|
can i personally talk to u.I need to talk to u about chat programatically.
my yahoo mail id is soniagupta1@yahoo.co.in.
i am waiting at yahoo messenger
|
|
|
|
|
Hi Sonia Gupta,
here is not allowed any kind of messenger.
Pavan Pareta
|
|
|
|
|
how to give runtime file name to file control
i have created file control at run time
FileUpload up = new FileUpload();
but i want to give its path in code view how will i give it
|
|
|
|
|
if you wanna see the absoulte path you could use : fu.PostedFile.FileName;
or else you can use to get only file name you uploaded using that code : fu.FileName;
Hope it helps..'
|
|
|
|
|
i want to copy file in web application i am using
File.Copy("c:/somefile.txt","http://makarand/Wow/Data/Origs/someotherfile.txt"
);
i am getting this error
URI formats are not supported
pls tell me what is an issue does and what should i do to copy the file
|
|
|
|
|
man you gotta use Server.MapPath to point a place in your server.
-- modified at 8:13 Thursday 5th July, 2007
|
|
|
|
|
i have did that. it works fine when i am working on my machine but it won't work wen i am using remote machine.
|
|
|
|
|
i was trying to write the asp code in asp.net 2.0
the following code.
<% @Language=VBScript%>
<% Option Explicit %>
<%
set objRS=Server.CreateObject("ADODB.Recordset")
objRS.Open objConn
%>
but the set and get keywords ae not supported .
|
|
|
|
|
u want to use property of asp.net.
|
|
|
|
|
In asp.net 2.0 is based on C# language you gotta use properties as shown below :
private my_Name;
string MyName
{
get
{
return my_Name;
}
set
{
my_Name = value;
}
}
hope it helps...
|
|
|
|
|
hi ...
I am writing the code in source file(design).
there i am trying to connect the application with the back end(sqlserver).
|
|
|
|
|
Sonia Gupta wrote:
This doesn't work, you're using ASP.NET, not asp.
If you're using ASP, you're not using ASP.NET, and you're in the wrong forum. This sure is bringing back bad memories of asp, what makes you think you're using ASP.NET 2.0 ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi
i want generate gridview programmatically to but having a error in
hyp1.DataNavigateUrlFields = "link";
ERROR:- cannot implicitly convert type 'string' to 'string[]'
plzzzz help me
thanks in advance
DataTable dt = new DataTable("dtable");
DataRow dr1;
DataRow dr2;
dt.Columns.Add(new DataColumn("Text", typeof(string)));
dt.Columns.Add(new DataColumn("link", typeof(string)));
dr1 = dt.NewRow();
dr1[0] = "Yahoo";
dr1[1] = "http://www.yahoo.com";
dt.Rows.Add(dr1);
dr2 = dt.NewRow();
dr2[0] = "Google";
dr2[1] = "http://www.google.com";
dt.Rows.Add(dr2);
GridView GV = new GridView();
GV.AutoGenerateColumns = false;
HyperLinkField hyp1 = new HyperLinkField();
hyp1.HeaderText = "UsefulLinks";
hyp1.DataTextField = "Text";
hyp1.DataNavigateUrlFields = "link";
hyp1.Target = "_blank";
GV.Columns.Add(hyp1);
GV.DataSource = dt;
GV.DataBind();
plhPlaceHolder.Controls.Add(GV);
|
|
|
|
|
It is expecting a string array. So you need some code like this:
string[] tmp = new string[1] {"link"};
hyp1.DataNavigateUrlFields = tmp;
Hope that helps.
Ben
|
|
|
|
|
i m using datatable field to bind link to that field
how to convert that field in a string array
|
|
|
|
|
Isn't the field just called "link"? I am not sure what your issue is? You tried the code I posted and it didn't work? What error did you get?
Ben
|
|
|
|
|
i m try to generate gridview programmatically and want to bind data from database, BUT first i create a datatable n try to bind it with gridview.
the method u suggest (string[] tmp = new string[1] {"link"}; ) in not properly working in this code
at line no.8 and 12, i specify that link which is bind with field (hyp1.DataNavigateUrlFields = "link";) so that when i click on the link it open that site.
when i try to run the application i got error msg :- cannot implicitly convert type 'string' to 'string[]'
1 DataTable dt = new DataTable("dtable");
2 DataRow dr1;
3 DataRow dr2;
4 dt.Columns.Add(new DataColumn("Text", typeof(string)));
5 dt.Columns.Add(new DataColumn("link", typeof(string)));
6 dr1 = dt.NewRow();
7 dr1[0] = "Yahoo";
8 dr1[1] = "http://www.yahoo.com";
9 dt.Rows.Add(dr1);
10 dr2 = dt.NewRow();
11 dr2[0] = "Google";
12 dr2[1] = "http://www.google.com";
13 dt.Rows.Add(dr2);
14 GridView GV = new GridView();
15 GV.AutoGenerateColumns = false;
16 HyperLinkField hyp1 = new HyperLinkField();
17 hyp1.HeaderText = "UsefulLinks";
18 hyp1.DataTextField = "Text";
19 hyp1.DataNavigateUrlFields = "link";
20 hyp1.Target = "_blank";
21 GV.Columns.Add(hyp1);
22 GV.DataSource = dt;
23 GV.DataBind();
24 plhPlaceHolder.Controls.Add(GV);
|
|
|
|
|
So when you replace line 19 with
string[] tmp = new string[1] {"link"};
hyp1.DataNavigateUrlFields = tmp;
What error do you get?
Ben
|
|
|
|
|
Thank u Very much
now it is working fine with some little change
u really help me a lot in my code
thanks a lot buddy
|
|
|
|
|
i have data " Employes data Entery Form "
i have used table, textbox to desing form
i used Employe's data Entery Form but while displaying it shows (alignment is left)
Employes
data
Entery
Form
will not appear in same row eventhough there exists sufficient spaces.
Thank you
vijaya
|
|
|
|
|
use width=100% can solve your problem.
Devjit
|
|
|
|
|
remove colspan="4" and orelse keep align to center
|
|
|
|