I have a bat file with some commands for registry manipulations. I need to determine the current folder path for my bat file. Haw can I do this?
Alex Getman
Posts
-
How to determine the current folder in the bat file? -
How to create sub web-sites structure at runtime? (like subsites in Sharepoint)Hi all. I need some example of following thing: There is a portal for example www.myportal.com, and users can create their own sub-portals by users logins, for example: www.admin.myportal.com, www.user1.myportal.com or sub-site structure can be like that: myportal.com/admin, myportal.com/user1 Something like Sharepoint structure... The problem is that a got a really huge number of users (>10 000) so physically created IIS directories and files will be hard to maintain and I think not the best solution. I need some kind of description of solution for this arhitecture, maybe creating special HttpHandlers or smth. Does anybody faces with problem like that?
-
DetailsView loses controls state and binding after an exception occursHi. I'm using ASP.NET 2.0 and MS SQL Server 2005 environment. I'm developing an aspx page which is using DetailsView to insert data. There are several TemplateFields are located at the DetailsView control. These Template fields containing TextBox and DropDownlList controls and I'm passing values of these controls using %Bind% syntax: * DataSource for the DetailsView is the SqlDataSource which is using StoredProcedures to insert data into Database. Some parts of business logic are located in the T-SQL code of the StoredProcedure and in case of any error I'm throwing exception from T-SQL using RAISE_ERROR method. In the aspx.cs, OnItemInserted event of the DetailsView I've implemented following code for exception processing: protected void dvCity_ItemInserted(object sender, DetailsViewInsertedEventArgs e) { if (e.Exception != null) throw e.Exception; else Response.Redirect("City.aspx"); } When there is no error during StoredProcedure execution everything is works fine. When my StoredProcedure r
-
Is it possible to get source code for the ASP.NET Web Site Administration Tool?Hi all. Actually the subject is - "Is it possible to get source code for the ASP.NET Web Site Administration Tool?" If I need to extend this tool, to change some interface features and so on. Is it possible to get source code in some way? Or I should forget about the idea of customizing ASP.NET Web Site Administration Tool and write own Admin Tool instead? Thanx.
-
Accessing code-behind file in ASP.NET 2.0>I'm curious why you want to access the generated file. Well, somtimes it's necessary ;) For example - when you need to fix some wrong generated code with EventHandler, also being able to edit generated file is importrant when you are migrating from ASP.NET 1.1 to 2.0 and not all code converted as you want. Anyway I think that separating class into multiple files maybe a good idea, but disabling access to code generated part - it's a very disputable descision of VS.NET 2005 team. We are developers, not users, and developers should have access to any fetures of the platform. xedom developers team personal web page
-
Accessing code-behind file in ASP.NET 2.0>stored in a separate file because they are partial classes. Yes, they do. But I can easy access second (design generated) part of partial class in WinForms project. Once, I've seen some blog post where it was desribed how to access code-behind in VS.NET 2005 but I think it was about VS.NEt 2005 Beta or Community Preview... xedom developers team personal web page
-
Accessing code-behind file in ASP.NET 2.0Hi all! Does there exists some way to access VS.NET 2005 generated code-behind files in Web Site Project? I found how to navigate to the designer page in WinFroms Applicaiton, but is it possible to view and edit designer-generated cs files for Web Applications? xedom developers team personal web page
-
Dropdownlist is emptyMaybe change to dropDownList.DataSource = yourDataSet.Tables[0].DefaultView; will helps... xedom developers team personal web page
-
WebPart & DataGridHi all! I am developing simple WebPart - it consists only from DataGrid control, wich will displays the list of employees, also this WebPart implements ICellProvider interfeace. In CreateChildControls I'm creating my DataGrid using following code: employeeList.AutoGenerateColumns = false; employeeList.AllowPaging = true; employeeList.AllowCustomPaging = true; employeeList.PageSize = 10; I've located my WebPart on Sharepoint portal page and everything seems fine. But the problem occcurs when DatraGrid has more than 1 pages. When User navigates throught pages using Pager in direct order (from 1st page to 2nd, from 2nd to 3rd) data is displayed correctly, but when user tries to navigate in reverse order (I mean from 3rd page to 2nd page) DataGrid opens 1st page filled with data from 3rd page. First, I thought that I was made a mistake during DataGrid filling, but I have developed simple WebApplication and the same logic works fine on aspx page, the problem occurs only with WebPart. Does anyone knows how to solve this problem? xedom developers team personal web page
-
C# code-behind file doesn't work with InfopathI've found solution! To execute C# code with Web Reference to web-service you must digitally sign your Infopath form. It can be done through Tools -> Form Options - Security: 1. Uncheck Automatically... and select full trust 2. Check sign and create certificate 3. Publish the form or you should create a msi project to install your Infopath form. find out more... xedom developers team personal web page
-
C# code-behind file doesn't work with InfopathHi, I found a problem during Infpath Project development in VS 2005. I've created a new project in VS 2005 (Office -> Infopath form), this project is a simple Infopath Form wich will recieve and submit some data to my web-service. First of all I should notice that I didn't created any DataSource in design-time from Infopath Forms Designer, instead I am making all calls to web-service methods and filling Infopath forms controls from C# code-behind file. Then I wrote some C# code in generated Form's code-behind file, also I've added a WebReference to my web-service and wrote code for web service methods calls and Infopath controls filling. When I starting my project from VS (F5 or Ctrl + F5) everything works fine and I see the controls on my Infopath form are filled with data from web service. The problem occurs when I am making Project - Publish Form, the published form (xsn file) contains all dll and other necessary files, but when I runnig published form all controls are empty! It seems like my C# code doesn't executed and no exception or error messages does not appear. Does enybody knows what happens? I suppose that I should change my security configuration setting in .NET Framework configuration, is that correct? Thank you for your help or any ideas. xedom developers team personal web page
-
Http query string special charactersHi all! I want to pass some special characters to my http query string for example " ", "." or somth. like that. Does anybody knows some standart ASP.NET funcations to make this thing? P.S. i'am using C# xedom developers team
-
Security exception while trying to wrtite Event LogHi Gurus! I developing a C# asp.net application. I want my application write something to it's own event log, but when I trying to do this I got folllowing error - "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog I found some solutiong here - http://support.microsoft.com/?id=329291 but it not helps in my case... I have done all modifications to my code exactly like in former article, but I still recieve this error... I hope someone could help me. Thanx. xedom developers team
-
Security exception while trying to wrtite Event LogWell, yes, it does. All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? xedom developers team
-
Security exception while trying to wrtite Event Log1. So if I understood you right - there is no solution exists for my problem throught code tricks? 2. I know. It's all about money :(( xedom developers team
-
Security exception while trying to wrtite Event LogHi Gurus! I developing a C# asp.net application. I want my application write something to it's own event log, but when I trying to do this I got folllowing error - "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog I found some solutiong here - http://support.microsoft.com/?id=329291 but it not helps in my case... I have done all modifications to my code exactly like in former article, but I still recieve this error... I hope someone could help me. Thanx. xedom developers team
-
ASP.NET project into dlli found solution - ascx :laugh: I decided to create my form as ascx control xedom developers team
-
ASP.NET project into dllWell actually I createde a Library project, add existing web page (aspx&cs files) and sucessfully compiled it. But when in other test project I add reference an my dll and just inherits my page from page that is in dll the following exception occurs: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object this occurs in public void InitializeComponent() { of the page dll class. Can you answer mr what happpens? xedom developers team
-
ASP.NET project into dllHi Gurus! I got an ASP.NET web project, in C# and I want to make some sub systems in my project security for example) into assembly dll in C#. Is it possible? And what is the best way to do it? Should I start new project as dll and copy-paste my code into it? xedom developers team
-
WebSetup projectI pick off this topic because I found solution here http://www.dotnet247.com/247reference/msgs/48/244282.aspx xedom developers team