|
what you mean by Path.Combine. Can you please send me some sample codes for this?
this is the error while running the application:
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
|
|
|
|
|
If you read the error, it's telling you to change our config so that you can see the actual error.
Path.Combine is in System.IO and will turn two strings into a single path.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
mukesh.mr03 wrote: if ((FileUpload1.PostedFile != null) && (FileUpload1.PostedFile.ContentLength > 0))
if(FileUpload1.HasFile)
{
}
mukesh.mr03 wrote: string SaveLocation = Server.MapPath("Data") + "\\" + fn;
SaveLocation=Server.MapPath("Data/" + fn);
beSt Regard
pAthan
|
|
|
|
|
Hi Plz refer this following site
[^]
In this using usercontrol they displayed tabstrip...,
When we will click that itemtemplate links displaying the pages in content.aspx page...,
It will displays in iframe place...,
I too displayed like that my forms...,
Now my quest is,
While scrolling that iframe form page...,
I am getting some of my tools displaying above the usercontrol itemtemplates...,
How to solve that probs...,
Plz any one hlp me...,
Regards,
Magi
|
|
|
|
|
Please don't use textspeak. You might want to ask the author of the article you referred to.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi frns
i have created an application for uploading a file in ASP.net2.0 with VB its working fine. the actual task was to provide a file upload option to a client, when the client uploads the file the file should be stored in the server system in the specified location and also i maintain a database table with the title of the file which is primary key and path of the file and created date.
all these i have done but the problem is, when i upload the same file with other content or same content in it the file getting overwritten in the server system. so, i want to solve this problem.
i want to verify the file name before i insert the file into server system
|
|
|
|
|
sunilwise wrote: i want to verify the file name before i insert the file into server system
if (!File.Exist(Server.MapPath(YourvirtualPath)))
else
|
|
|
|
|
thanks for ur reply
i used
if (!File.Exist(Server.MapPath(YourvirtualPath)))
//Do file saving here
else //inform user
it says leading '.' or '!' can only appear inside with statement
so i made above code to
if (File.Exist(Server.MapPath(YourvirtualPath)))
//inform user
else
//Do file saving here
then also it is not working i tried to insert the file with same name the code is running into else part where as it has to be in the if condn what should i do plz help solve this problem
|
|
|
|
|
thank you dear i got it thanks for your help
|
|
|
|
|
File.Exist("FileName") is used to check the file is exist in the folder or not.
bEst Regard
pAthAn
|
|
|
|
|
thanks for ur reply
i used
if (!File.Exist(Server.MapPath(YourvirtualPath)))
//Do file saving here
else //inform user
it says leading '.' or '!' can only appear inside with statement
so i made above code to
if (File.Exist(Server.MapPath(YourvirtualPath)))
//inform user
else
//Do file saving here
then also it is not working i tried to insert the file with same name the code is running into else part where as it has to be in the if condn what should i do plz help solve this problem
|
|
|
|
|
How to deploy a project with .mdf file .is any problem occurs if a system contains only sql server 2000.i done the pjct in .net with sql server 2005 express edition for setting the roles management.when i deploy it into net any problem occurs .please reply detaily to this query
|
|
|
|
|
Wow. I can't work out what your queston is. An mdf is an Access database. If you built your app with SS2005, then SS2000 is probably not going to work.
SreejithAchutan wrote: when i deploy it into net any problem occurs
That has to be the vaguest problem description I have ever heard.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Any method to solve this problem.how we deploy a file with .mdf in ss2005 mistake occurs whn we host the pjct containing the .mdf file.is it work same as we deploy through sql server database.
|
|
|
|
|
What do you mean by 'mistake occurs' ???
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
hai all,
i just want to know,
i had one gridview1 ,in that i have empID(stored in databse) and empname visible on gridview but is also stored in DB.
and also i have checkboxes in gridview....
if i selcect individual checkbox or selecting all check boxes that related empname should be send to the gridview2 of another page.
i know about the session but i just want some sample coding.
thanks in advance
Thanks
Subbu.
|
|
|
|
|
Take one ArrayList and Add Selected EmployeeName in ArralyList and bind it with second gridview.
for example
on button click event
ArrayList arrEmp=new ArrayList();
for(int i=0;i<gridview1.Rows.Count;i++)
{
if(((CheckBox)GridView1.Row[i].FindControl("chkId").Checked)
{
arrEmp.Add(((Lable)GridView1.Row[i].FindControl("EmpName")).Text);
}
}
GridView2.DataSource=arrEmp;
GridView2.DataBind();
bEst regArd
pAthAn
|
|
|
|
|
subbu.sk wrote: i know about the session but i just want some sample coding.
No need of using session here. Iterate through the rows in Gridview and check the checkbox is checked. If checked, select data and add it to a Datatable. Finally bind this Datatable to the second Gridview
|
|
|
|
|
iam getting value form database it is Y or N.Iam working with gridview and in that grid view i have a child contorl that is checkbox.if that value is Y means the check box has to check otherwise it sholud uncheck.
-- modified at 5:24 Wednesday 24th October, 2007
kirankumar
|
|
|
|
|
so what's ur problem ?
Koushik
|
|
|
|
|
the checkbox is not checking
kirankumar
|
|
|
|
|
try following code In ItemTemplate of gridview
<asp:CheckBox Id="chk" runat="server"
Checked='<%# Eval("FiledName").ToString()=="Y"?true:false' />
BesT Regard
PaThan
|
|
|
|
|
hi,
thanks its working fine
kirankumar
|
|
|
|
|
You've asked four different questions now with the subject of 'gridview'. Can I suggest you start providing more meaningful subjects, if you want to attract peple who can help you ?
I also recommend buying a book on ASP.NET, you seem to be asking a lot of beginner questions, it would really help you to learn some basics in a more structured format.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
hai all,
i just want to know,
i had one gridview1 ,in that i have empID(stored in databse) and empname visible on gridview but is also stored in DB.
and also i have checkboxes in gridview....
if i selcect individual checkbox or selecting all check boxes that related empname should be send to the gridview2 of another page.
thanks in advance
Thanks
Subbu.
|
|
|
|