Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by passs

  1. passs

    Reading Unicode data from a file into stream

    Hello everybody! Does anyone know how to solve such problem: I have a file with some german/russian characters and I need to read this data into a stream without any loss. Currently the code is following: If LogFileOpenDialog.ShowDialog() = DialogResult.OK Then...
  2. passs

    Problems with Unicode data in Clipboard

    Hi everybody, Does someone know how to fix such problem: I have an app in which there should be a possibility to copy/past unicode data into app and from it. I have such code: If EditOperation = enmEditOperation.Paste Then If...
  3. passs

    How to use one SqlTransaction object for two different SqlConnections?

    Yeah, thanks. I've already got it:-) Thank you, Alex
  4. passs

    How to use one SqlTransaction object for two different SqlConnections?

    Hello everybody! Does anybody know how can I use the same sql transaction object for several sql connections? For example I need to copy data from Server1 to Server2 and Server3 and if somthing failed in copying then to rollback everything. So I have: SqlConnection connFrom = new...
  5. passs

    dynamically add controls

    Hi Guys, Thank you for your help! jbenson001, your code works perfect. And really I had the same code, but I added this button to my form in Render method and in this case event handler doesn't work. I cannot understand why. When this string of code in Page_Load...
  6. passs

    dynamically add controls

    Hi everybody! Does anybody know how ca I add a web control dynamically in my asp.net page, for example Button. And I have a method which should be assigned to this button as a click handler. I tried to do following: btn.click += new EventHandler(this.MyMethod); in onInit method of my page and...
  7. passs

    ASP.NET 2.0 Object creation?

    Hi! Thank you for your response. Well I used another solution. I'm parsing html with some asp tags as xmls, getting all the asp tags I need to present as web controls and put all the html before each tag into HTMLGenericControl, then determine which asp control I recieve and create an object...
  8. passs

    ASP.NET 2.0 Object creation?

    Hi, yes that works, but my problem is different. I have a HTML code with severeal places where I should put my web controls. Parsing HTML and constructin DOM programmatically is not appropriate, so I need to take a first part of HTML before the place where web control should be put, through it...
  9. passs

    ASP.NET 2.0 Object creation?

    Hi everybody! I'm trying to create an object dynamically. Well really not an object. The task is to put something like <asp:Button id="btn1" runat="server"/> in form's html and make it somehow to be compiled and recognized as a web control and then rendered as a html. This stuff I get from a...
  10. passs

    DLL not created in ASP.NET 2.0

    hi, I think you can find some useful information here: http://msdn.microsoft.com/msdnmag/issues/06/01/ExtremeASPNET/
  11. passs

    Web Parts in Asp.NET 2.0

    Hello everybody! Does anybody know how can I specify 2 of 3 existing webpart zones on a page to be used by CataogZone? I want to have several catalogs for each webpart zone, to enable user add webparts which belong to webpart1 just to webpart1 and not to webpart2 for example. Will be very...
  12. passs

    How can I read a text file with T-SQL, parse it and get some data?

    Hey, thanks, but there is another way I found a few minutes ago: declare @command varchar(250), @filename varchar(250) select @filename = '\\server\foo.txt' select @command = 'TYPE ' + @filename create table #tResults (line_id int identity, line_text varchar(800)) insert into #tResults exec...
  13. passs

    How can I read a text file with T-SQL, parse it and get some data?

    Hello everybody! Does anybody know how can I using T-SQL open a text file for future parsing, getting some infoprmation, for example as a long string, parsing will be on me, for further insering into tables? Any ideas? Thank you! Alex
  14. passs

    How can I get a domain name?

    yeah, thanks:-)
  15. passs

    How can I get a domain name?

    Hello everybody! Does anybody know how to get a domain name? I need to get server name and domain, but with: string strHostName = Dns.GetHostName().ToString(); I recieve only local server name. Thanks, Alexander

Part and Inventory Search

Back
Top