char [] charArray = string.split("\"") should do the trick you should end up with 3 parts 1 = " 2 = the dir path 3 = "
Spanky3
Posts
-
split "C:\hello" "C:\h\ddd" -
RangeValidation without MaxHave u tried NOT setting the maxvalue? ie: set the min but ignore the max that should work...
-
DropdownList problemin the page_load do: if(!IsPostBack) { //Load List drop down list } This means the list will only load at page load up :) and postbacks wont cause the change! Atul
-
Problem in response.getRequest.QueryString["txtUser"] is what you should be using
-
ImageWithin code behind use Response.WriteFile(filepath) or within the aspx <%= Response.WriteFile(filepath) %> Currently you are mixing html syntax with asp.net its like....... Mixing german with english to get a reply!
-
ASPX page does not showFirst of all estimate the time of housekeeping. Then use javascript to create some sort of visual indication which can then be used to show a rough time
-
display user nameFirstly what are u using for persistence ie: how do you remember your users? Cookies? DB? XML ?
-
comparing datesC# DateTime sDate = DateTime.Now(); DateTime eDate = DateTime.Now(); Timespan t = eDate - sDate; if(t.toMillisecs =< 0) { //the end is before the start } Hop this helps Atul
-
Create a .pdf file programmatically?You could use XSL:FO and apache FOP which is a complete ballache. Theres some programs out there http://www.gohtm.com/ for example.
-
dynamic form programmingsure create a template say using a table layour which contains place holders for the items which you wish to add at runtime. Depending on the circumstances add the controls you wish according to the situation. Placeholders are simply like frames which use no code and no resources they are simply spaces to put controls inside. From member to add the items you would use placeholder.add(object) something along these lines. You could as you say use XML which contains say configurations on the user types, you could then use the XML reader to load the controls in. Placeholders would be your best option as they are built for this dynamic content changing situation Atul
-
Secure area aspx + c#I've used James Coleman's[^] tutorial but its not very feasible. Obviously theres rarely any hosts who will allow files to be stored on their server. The other method was using IIS to add a map path for the file types which need authenticating again hosts rarely alter IIS for you. Anyone had exp of SSL ?
-
need help in access databaseare you using visual studio ?
-
Secure area aspx + c#Basically i would like to create a members only area where users need to be logged in to view and download files like .doc and jpgs I've used forms authentication to prevent users navigating in the members area fine. The problem is if a person uses the absolute path for a file eg: .doc or .jpg they are able to access the file fine. Any ideas on how to stop this or any articles which i can read? Cheers, Spanky:-D
-
DataSet and Session variableslike the guys below say its poor when the datasets become large but for small datasets its fine. Why do you need to store this information as a session anyway? using the db will be better as its real-time.
-
Resume Length2 Pages I've known companies to bin anything over 2 pages when many applicants apply.
-
How to use SortedList.Item Propertyhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcollectionssortedlistclasstopic.asp[^] Hope that helps, seems pretty straight forward :-D
-
CS0654: referenced without parenthesespaste the code if u can! or link us
-
ASP.NET Argument ...http://www.tutorial-web.com/asp.net/index.aspx[^] Security beter on ASP.NET due to its precompiled nature similiar to COM objects. Theres prob tonnes more things but its a case of googling!
-
ASP.NET w/ Sql Server 2000Hey there, I would recommend using stored procedures as they would be ideal for your situation lets take the following example: Sign Up Form: 2 Tables 1- Users 2- UserInfo You would like to insert data into Users and then take the Unique ID generated and insert that into UserInfo. The traditional method is to : INSERT INTO........ twice Using a stored procedure is like storing the method on the server. From your code you call the stored procedure and simply pass it the parameters which it requires. http://webdevelopment.developersnetwork.com/Articles.asp?Article=223[^] This is an OK exmaple/tutorual on stored procedures but if you can invest i highly reccomend: http://www.amazon.co.uk/exec/obidos/ASIN/1861007418/qid%3D/026-3028095-7898815[^] Which is brilliant to get your knowledge upto scratch, it includes a very useful chapter purely on stored procedures.
-
Uneable to stop tcp multithreaded server processHi, I presume your server is using a thread which continually listens on a port by running it on a thread. Currently when you close your program down the lightweight process (the thread) continues to be executed. In the applications "closing" event you need to ensure all threads running are interrupted and cleaned up. Dont use the STOP method as it is very bad.. you could end up with part written data for the instance of the program. Theres a pretty complete guide here on threads: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchusingthreads.asp[^] Which is worth a glance, but for the quick solution do this in the closing event for the main form/application:
threadinstance.Interrupt();