|
Hello everybody,
I'm making a project in asp.net with vb,i have a page named as IndividualProperty.aspx.
I'm showing the listing of all the property one after it in the page.when any user select any property such as he select "abc" property, when he click on this Property the IndividualPropertypage will be called.that is ok.
but i want to change the URL from www.xyz.com/IndividualPropertypage.aspx to www.xyz.com/abc.com
meanwhile whatever the property he select property name must be replace the page name in the URL.
How is it possible,plz tell me thanx
|
|
|
|
|
Create a thread of your own instead of asking an unrelated question in someone elses thread.
---
b { font-weight: normal; }
|
|
|
|
|
suppose there is one file field control and one upload button in my page and i want
when user will click on upload button then from server side code i want to upload that file to a specific
machine.means i don't want to upload the file to another machine where my web app and web server is not
installed.
suppose my web app is installed in machine1 and i want to upoad the file to machine2.
i wrote the code like
string sPath=@"\\machine2\DumpFiles\"+sFileName;
File1.PostedFile.SaveAs(sPath);
i am getting error so i want to knwo that how could i upload my file to another machine if i know only the
relative path. so it is not very clear to me that am i getting error for relative path or it is not possible to upload a file which will be saved to another machine in a network by asp.net.
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: i am getting error
The use of the indefinite article suggests you need to supply more information. What error are you getting?
Tridip Bhattacharjee wrote: i want to knwo that how could i upload my file to another machine if i know only the
relative path.
Relative to where? If the path is on another machine surely you know the full path. The UNC Path you provide in your code sample is an absolute path.
Tridip Bhattacharjee wrote: so it is not very clear to me that am i getting error for relative path or it is not possible to upload a file which will be saved to another machine in a network by asp.net.
Probably what is happening is that the other machine won't permit access by your ASP.NET process. By default it won't permit access in order to protect your network from people attempting to attack your network via the website.
You therefore need to allow the share on the other machine to be accessed by the process your ASP.NET web application is running in.
|
|
|
|
|
Hello, everynody!
I have a question for you. I know this may sound silly, but i want to get my web pages designed in asp.net on the server as html or php. Theoretically, i'd like to know if there is any way to convert .asp pages to .html or .php because i wasn't able to find a free web domain to upload my files(after uploading, when i tried to view a page, all i saw was the code i've written).
I would also appreciate if you could recommend me a free web domain that supports asp.net.
Thank you very much!
|
|
|
|
|
I don't know if a conversion utility exists to convert ASP.NET pages into PHP. The two application platforms are entirely different, with very different means for constructing dynamic HTML from markup and code.
If it were me, I would look to rewrite the application in the target platform myself, to make sure I could take advantage of the target's strengths. For example, if I were converting pages from .asp (classic ASP) to .aspx (ASP.NET), even though the pages would run in ASP.NET without changes, I would still rewrite them to get the separation of code & markup and to take advantage of databinding (both are strengths of ASP.NET).
|
|
|
|
|
Hello everybody,
I'm making a project in asp.net with vb,i have a page named as IndividualProperty.aspx.
I'm showing the listing of all the property one after it in the page.when any user select any property such as he select "abc" property, when he click on this Property the IndividualPropertypage will be called.that is ok.
but i want to change the URL from www.xyz.com/IndividualPropertypage.aspx to www.xyz.com/abc.com
meanwhile whatever the property he select property name must be replace the page name in the URL.
How is it possible,plz tell me thanx
-- modified at 7:43 Saturday 5th August, 2006
|
|
|
|
|
|
I have datalist control in an other datalist control. I have to find inner datalist control on edit command of the inner datalist control.
|
|
|
|
|
Hi,
I am running an asp.net, C#.net application and it's found through loadRunner tool that the CPU utilization of the web server reaches around 85-100% for 4 concurent users for this application. However, the tool only tells all this at the page level. Can anyone suggest any tool (preferably an open source freeware), that can indicate the code points that are causing this high CPU utlization?
This is URGENT!
Thanks and regards,
Supriya
|
|
|
|
|
I'm sorry, I don't have an answer for you. But I do have a tip: there are many CP members who may have answers to your question, but who passed on it simply because you wrote the line:
supriya_sameer wrote: This is URGENT!
You'll be in a better position to get a quick reply if you DON'T put in text like that. Putting in text that sounds demanding is a great way to NOT get your question answered from a community of volunteers.
|
|
|
|
|
i have to draw a graph from my database Dynamically
can any body give me a sample or help me ?
With Thanks
MHF
|
|
|
|
|
There are TONS of charting controls for ASP.NET, including Dundas' commercial offerings (Dundas is a CP sponsor). There are also several articles describing how to use GDI+ to draw charts for ASP.NET. Here's one on CP:
http://www.codeproject.com/aspnet/gdiGraph.asp[^]
Try a Google search for "ASP.NET charts" and you'll get bunches of hits.
|
|
|
|
|
I know there is a tool (from MS I think) that would allow me to see and modify the contents of my HTTP post before they get sumbitted to the server. I can't remember the name, though, and Google is failing me.
Anyone know what it's call or where to find it?
|
|
|
|
|
Hi,
I am trying to use the function FindControl to find a control in the repeater control, but i am not able to find it, is there any other was to find a control in repeater control Item template.
Thanks.
Deepak Surana
|
|
|
|
|
HI , please i need to declare some global variables like :
public con as sqlconection
public DtSet as Dataset
but for condition to retrieve them in each page in ma web site , i sought a lot for that stuff & i've posted a lot of questions in some furoms but nobody gave me a convinced answer
can you help me please ?
try to be good if you can't be the best
|
|
|
|
|
Use a data access layer
only two letters away from being an asset
|
|
|
|
|
You can create a class in App_Code and declare your variables as static. Hence if your class is called Database and u declared static con as sqlconnection, you can access this variable by doing: Database.conn
Live in fragments no longer. Only connect.
|
|
|
|
|
Mohammed,
Try reading through the link titled How do I store global variables?
http://steveorr.net/faq/GlobalVariables.aspx
Some basic steps:
1. declare a variable as you would any variable in asp.net with the Dim command
2. somewhere in code, retrieve variable as a session variable
For example,
Dim testGlobalVariable As Integer
testGlobalVariable = 100
Session("thisIsAGlobalVariable") = testGlobalVariable
...
in another page...
Dim ReadGlobalVariable as Integer
ReadGlobalVariable = Session("thisIsAGlobalVariable")
Hope this helps.
|
|
|
|
|
See my reply in your previous thread.
---
b { font-weight: normal; }
|
|
|
|
|
you can use module form to declare global variables
example:
public con as new sqlclient.sqlconnection
public dataset as new dataset
The above commands can be accessed by all forms by declaring them and placed in the public class in seperate module form ok
coding makes me interesting in dot net
|
|
|
|
|
Hello,
I'm making a project in asp.net with vb,i have a page named as IndividualProperty.aspx.
I'm showing the listing of all the property one after it in the page.when any user select any property such as he select "abc" property, when he click on this Property the IndividualPropertypage will be called.that is ok.
but i want to change the URL from www.xyz.com/IndividualPropertypage.aspx to www.xyz.com/abc.com
meanwhile whatever the property he select property name must be replace the page name in the URL.
How is it possible,plz tell me thanx
|
|
|
|
|
Hi,
I have an app that needs to do some sort of health checks on all database connection strings specified in the config file.
At the moment, I have a main aspx page that loops through all these db connection strings, and for each one of them, I dynamically add an iFrame which loads a secondary aspx page that does the checking of the connection. (I'm adding the iFrame into a placeholder control by the way).
My problem is, it looks like that the main page waits for all the iFrame to finish loading before they get rendered. What I want to achieve is, as soon as each connection string is tested, I want it to display the result at once on the main page.
Any ideas on how I can achieve this? Your help is much appreciated.
Thanks.
Cheers,
TheFan
|
|
|
|
|
so you want the main page to be rendered and sent to the browser before the pages in the frames are loaded?
I'm not sure that would work with the iframes and even if it did you might need to refresh them periodically to simulate an ongoing test cycle.
Another neat way to do this might be:
1. Just create the one 'main page'.
2. Add a javascript function to the header to set an interval.
3. When the interval function calls back, call a set of javascript functions that use XmlHttpRequest to request your secondary pages (the ones in your frames right now, that execute your database tests). Set the call back in the http request call. Set a page level variable to say that a page request for page xxxx is pending (so you don't start calling it more than once if the interval were to elapse), and check this value before making the http request.
4. When your xml http request callback is called, just do a document.write or something to say your test worked. Or keep the iframes in the mainpage (but don't set their source) and when the http request callback is fired, set their innerHtml to what you get back from the request.
-- modified at 16:31 Friday 4th August, 2006
|
|
|
|
|
I have 2 questions
1. I have 3 select buttons in gridview control with property SelectText(AddUser,Delete,View)
how i get which select button is clicked in SelectedIndexChanged event
2. When i set Visible property of a bound column = false, i m not able to get its value at runtime
like below.
GridViewRow row = dgNGroup.SelectedRow;
string a = row.Cells[3].Text;
Any idea please
Know Yourself Then Grow Yourself.
|
|
|
|