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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.