Jump to content
Xtreme .Net Talk

dhj

Avatar/Signature
  • Posts

    82
  • Joined

  • Last visited

Everything posted by dhj

  1. hi again Is there any similar feature as Server.MapPath, which can be used in vb.net Windows Applications thanks
  2. hi PlausiblyDamp thank you very much for the relpy yes i can use the application.config file to do this. but if i want to keep this information in a normal xml file, how can i do that? thank you
  3. hi i want to get my database connection string from a xml file, in my windows application. i'm using vb.net i have no clue of how to create this xml file and to read that xml file in my code can any body help me thx
  4. thx for the relpy i used the following code [Assembly].GetExecutingAssembly().GetName.Name.ToString() and this is returning the project name
  5. hi i have a small problem in my vb.net windows application. i'm using 3 tier architecture to develope my applcation. here is a sample architecure of my entire project Solution BLL cEmployee GetAllEmployees DAL cEmployee GetAllEmployees WinUI frmEmployee now my problem is i need to know where am i with out hardcoding say for example i'm inside GetAllEmployees of BLL, then I need to show the Function Name as GetAllEmplyees, Class Name as cEmployee and the Project Name as BLL i found how to get class name and the function name but i couldn't find a way to get project name there is something like AppDomain.CurrentDomain.FriendlyName but it gives me the name of application, that is WinUI.exe is it possible to get the project name with out hardcoding and if so pls tell me how to do it thx
  6. hi all can i use required field validator in a windows application(vb.net), i have used this in a web application but have no idea to use in windows application. if i can use it, can i know the reference i need to put bcos when i'm creating a new windows application that component is not there in the tool list thx
  7. thanks yes i can use a arraylist but can i add more than one value to a arraylist eg 1-->john,30,pass 2-->peter,25,fail 3-->Lucky,55,pass can i add these type of dataset to an array list? and i want to know how can i get the values from the arraylist say i need to print peter from above list how can i do that ? thank you
  8. hi heiko thanks for the link
  9. hi all in a small vb6 form there is a button, onclick of that button i need to open a access2000 database what i want to do is close vb forms and open microsoft access2000 with my database opened i know the path of this specific database and a password has set for the database too. so i need to pass the password as a parameter when i'm calling for the database can anybody tell me how to write this small code part thank you very much
  10. hi all i need to keep some temporary data untill final confirmation i thought of keeping them in an array but i found out i cannot set array size dynamically in C# and that need to be given when initializing the array since i don't know how many elements are there in design time i cannot use array for above process so can anybody tell me a better way to keep my data temporary untill final confirmation in what ever the method i need the facility to add and remove data from it too this is in a web application developing from asp.net and c# thank you very much in advance
  11. hi PlausiblyDamp thank you very much i have changed it according to my situation and now it's working fine thanks again
  12. hi all i need to create a C# class object in runtime (dynamically) my class name is in a string variable this is a web application developed in ASP.NET and C# if any body have an idea pls help thanks in advance
  13. hi a_jam_sandwich thx for replying but this is converting the date to string i want the type of the variable as datetime after formatting thx
  14. hi fadi thx for replying but there's no function like formatfatetime in C# it is in vb.net can u help pls
  15. how to add a jpg or gif file to a message body of a email in C# code thx
  16. hi in my web application i have a textbox which contains a date i need to send this date to the database how i did that was like follows (In C#) DateTime StartDate; StartDate=DateTime.Parse(txtStartDate.Text).Date; my problem is this is passing '2/10/2004 12:00:00 AM' but i donot want to pass this whole thing bcos my sql storedprocedure doesn't work if i pass above whole thing. i need to pass one the '2/10/2004' part does any body have an idea thank you very much in advance
  17. i need to encrypt urls in address bar i found some functions in javascript does any one know a method to do this in C# thank you
  18. i have a web page which contains several textboxes my final textbox is to enter a date, near that textbox there is a button, on onclick event of this button small calendar will appear and when the user selects a date from the calendar, the calendar will disapear and selected date is written in the textbox my problem is when i click on calendar the page jump to the top of the page, i do not want to happen this i read abt this on the web, all i found was to use something like "focus" to the textbox but there's no such a property like that in textboxes does anybody have an idea ? i'm using .net and C# to develop my web application thanks
  19. hi PlausiblyDamp thank you for the reply i tried to clear tables on seesion_end too but it didn't work my problem is i cannot call the classes and sored procedure in global.asax page i used a signout button and call those stored procedures that was working fine but i cannot imagine that always user signed out by clicking on my signout button. he may close the windaow and sign out. that is where i want to delete these things if u have any ideas pls help BTW thank you very much again for replying me !!!!! have a nice day
  20. i'm developing a small web application using .net C# and SQL as the back end i'm writing some data into a table when user is using the site. i want to clear this table in the application_end my problem is i cannot call the class and stored procedure in the Application_End Function it is not working does anybody know why or does anybody have any idea to delete this table when the user close the browser. thank you very much
  21. i have done a web application using C# and .net in my web.config page i add following lines <authentication mode="Forms"> <forms name="CommerceAuth" loginUrl="login.aspx" protection= "All" path="/" /> </authentication> now in all necesary pages this login page will appear and when i click on login button it goes back to the original page where i came from (i used FormsAuthentication.RedirectFromLoginPage(customerId, False to do this) my problem is in my login page there is another button called Regisiter and click on this new user can create a new account. on onclick event of this button i'm redirect browser to another page.now in save of this page i need to redirect browser to the original page where i came first. does anyone know a method to do this? thank you
  22. i found a answer by my own string dateString =dropdownlist1.selectedItem.Text+"/" + dropdownlist2.selectedItem.Text + "/" + dropdownlist3.selectedItem.Text; DateTime convertedDate = DateTime.Parse(dateString); this is how i did it
  23. hi i'm doing a web application using .net and c# i have three dropdownlists to represent Date,Month and year my problem is when i try to save this date to the database i need to convert this values to the type DateTime when i'm trying to convert this it's giving me a error saying cannot convert string values to DateTime What can i do ? is there anyway to slolve this problem? thanks in advance
  24. yes samsmithnz thank u for replying what u said was can do in the server side i need to do this in the client side can't i use something like fieldvalidators if so i need to know the syntx thanks
  25. hi i need to validate a textbox which contaiins dates my condition is the textbox date should not be less than now +3 days for example say today is 20th of jan 2004 my textbox can only contain dates which are grather than 23rd 0f Jan 2004 does any one have an idea thx
×
×
  • Create New...