|
It is not a good practice to access the file system except your application root from a web application. If you should then you need to use a user credential with a elevated access rights than the default IIS user. Server admins won't let you do that.
BTW, Response.WriteFile does not read a file, it writes the response to the file on the current execution directory. To really write into a file you need to use File objects.
Do you want to write data into the file or read the file and display the data to your users on your application?
|
|
|
|
|
Try using following if the file is on the same server
Response.WriteFile("~\\sharedFolder\abc.txt");
Or use following if the file is not on the same server
Response.WriteFile(@"http://10.10.10.10/sharedFolder/abc.txt");
|
|
|
|
|
Hi,
I am developing small web application(ASP.NET and MySQL)with CURD Operations which has one table and has 30 columns.
my ques:
Suppose If more than one person tries to modifies the same row(record) then it should throw message as "Someone already editing the record".
I find out optimistic and pessimistic locking for the above problem.
How to achieve this one and which method to use any sample application which will be very useful
Reg,
Subbu
|
|
|
|
|
use ado.net transaction for that so that allow only one person at time to update record
|
|
|
|
|
i had that Problem once in my early days. but look at how i wrote the SP to overcome that. I check if the Value has change since i have retrieved the data, if it has change i dont Update. look at this
Coding an N-Tier Application in C# Without Any Wizard: Part II[^]Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
anyone has javascript code for dragging n dropping selected row of one grid to another grid thru a button?
if yes plz share it with me i'll be thankful 2 u
Thanx
|
|
|
|
|
|
i have already give you the link in your previous question of view state. have you check this? click on below link.
Click Here for javascript code
this will easiest for you to do. check it, it may useful to youRegards
Keyur Satyadev
|
|
|
|
|
thanx for ur link bt it gives me runtime error as i tell u in the previous question's post if u read that rep
|
|
|
|
|
have you include the JS mention at below page. check it and reffer the same.
http://www.extjs.com/learn/Tutorial:Introduction_to_Ext_2.0
download JS from their and referred the URL for how to implement it.
sorry as i haven't read your previous reply.Regards
Keyur Satyadev
|
|
|
|
|
please any body help me
i want to display loading image for 2-3 sec on dropdownlist index change .
bcoz i want to show it is under process.
Thanks
|
|
|
|
|
|
|
As Prany suggested,
You can use AJAX for that.
Put your dropdown control inside UpdatePanel and Set UpdateProgress bar for that.
|
|
|
|
|
Hi everyone,
I host a site www.xyz.com.
When i type www.xyz.com in the browser, it works correctly.
But when i just type http://xyz.com ; it gives some config issues.
I asked the hosting support; they told me that i have to manually set the
web.config file to fix that issue.
How can i fix it by setting the web.config file ?
|
|
|
|
|
Why are you posting the same question twice? CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Hi everyone,
I host a site www.xyz.com.
When i type www.xyz.com in the browser, it works correctly.
But when i just type http://xyz.com ; it gives some config issues.
I asked the hosting support; they told me that i have to manually set the
web.config file to fix that issue.
How can i fix it by setting the web.config file ?
|
|
|
|
|
Essentially there's a config option that routes default stuff. You want <yourdomain> and also www.<yourdomain> to map to the http service (port 80), webmail.<yourdomain> to map to mail services, etc..
My hosting company has an online utility to do the mapping and yours probably does, too. Check with them. If you configure your own server, then check the OS and network docs. I'm not a network guru, but I figured it out a few years ago. It sounds like you didn't find the right person in tech support to talk with.CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Hi
I have a very long HTML report that contains several tables and grids. After exporting this report to word, iam trying to print this word document. I am facing an issue at the end of the page because some times it cuts the words listed at the end of each page.
Is there a way that i can handle this issue?
|
|
|
|
|
Check the bottom-margin of the paper, it might be a bit off I are Troll
|
|
|
|
|
I have set bottom margin to 0.5 in but the problem is that i dont know where the page begins and ends and thats why the bottom appears cut when printed.
|
|
|
|
|
Microsoft Word wraps the page on a 1" margin; if there's a word or sentence on the last inch of the page, it will be transported to the next page.
samerh wrote: i dont know where the page begins and ends and thats why the bottom appears cut when printed.
Are you trying to calculate the position of the pagebreak?I are Troll
|
|
|
|
|
Hi there,
i have a main web page which when i change its parameter i need it to display another web page.
how do i do that
|
|
|
|
|
You're making one page do alot of work. Do you mean a different view e.g. details on a product within an online catalog or an actual other page?
If the former, then use the querystring to pass the ID relevant to the data to pull back.
If the latter, Response.Redirect to the querystring argument passed.
Regardless, I'm assuming you are using querystring because of your previous question so your codebehind would still be accessing Request.Querystring["parametername"] to get the value.
|
|
|
|
|
ok this is how my website must function
1.I hv PPl.aspx page which have a view tree, when i click the node on the tree it take me to relevant web page.
2. i want to be able to do the same thing changing the parameter of ppl.aspx page. I cannot use the navigation url cause i have more than one web page that i can go to.
This is how the rest of the program worksbut this part is working fine
1.i have two text files, lets say for user1 and user2,
2.and the web pages for user1 and user2.
3. by default the web page for user1 display half info about the user1 from the user1 text file,
4. when u click the hyperlink on user1 it must redirect you to display page where full information about user1 will be displayed.
5.Same applies to user2 but the display page is one page.
Hope im making sense.
Thanx
|
|
|
|