problem solved.. some methods were static and some not.. static methods worked in aspx and not in asmx and vice-versa.. damn it..
life is study!!!
problem solved.. some methods were static and some not.. static methods worked in aspx and not in asmx and vice-versa.. damn it..
life is study!!!
Hi I'm using Asp.net 4 with url routing. I've got a WebmMethods.asmx file with some methods and another file - WebMethods.aspx with the same set of methods (ctrl+c, ctrl+v) and I call them from jQuery code with $.ajax (POST) function.. and there's this problem that just blows my mind.. on one page (default: http://localhost:3333/site/) calling methods from the aspx files throw 500 exception 'unknown method' while calling them from the asmx file works just fine. on another page (somePage: http://localhost:3333/site/somePage/) it goes the other way round: calling from asmx file throws the same exception and from aspx works. I use absolute paths - the files are found by the calls but methods not - when I used some other path I got 'resource not found exception' so what the hell? I've spent a few hours googling the problem but found nothing.. If anybody had similar problem or knows why it's like this PLEASE enlighten me :)
life is study!!!
I assume you try setting the value after you bind the control to your data.. if the value is bound to int datacolumn then drop the " - use integers.. also you may try setting ComboBox.BindingContext property to parenting Form.BindingContext. ex. cmb.BindingContext = this.BindingContext;
life is study!!!
when you read a value from xml you get a string. to convert it to int use int.TryParse method.
life is study!!!
read the images with streams - no lock is set on the file. btw. I'm not sure you want to use 'System.Environment.CurrentDirectory' as it is relative to the point of application launch (shortcuts) and may change easily.. if you meant the application directory use Application.StartupPath
life is study!!!
in the directory you pointed should be only a shortcut.. and it's done in a way keefb described
life is study!!!
maybe instead of installer feature make it an application setting.. using registry for example: RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true); key.SetValue("%app_name%", Application.ExecutablePath); key.Close();
life is study!!!
Hi! I' trying to layout some div inside another div, both float: left and some padding but without specifying widths. we all know the issue with IE and width and padding :sigh: ... I know the trick width: 100px !important; width: 120px;, but here I specify width. Is it somehow possible to achieve the effect without widths?? thanks for any help!!
life is study!!!
Maybe grid's CellValueChanged event - in the event arguments you get the index of the edited row and column index as well.. it's called when the value is commited ex. when the editmode is set to 'doubleclick or f2' [entar] commits value change. also when you use Convert.To... you don't have to use ToString() on the converted object.
life is study!!!
is it possible to display one(!!) UpdateProgress for every updatePanel on a page except specyfic one?! i've got one that has a timer control on, and it causes UpdateProgress to show.
life is study!!!
Hi! i'm having some trouble with message queing. to check if the queue exists I use MessageQueue.Exists(queueAddress) and the address is "machine.domain\queueName" everything works fine when using this on a machine within the domain. but on a machine outside the domain Exists returns false. i read that msmq uses windows authentication. my best guess is that this "false" is due to this beeing outside the domain security issue.. is there any workaround? passing some credentials or sth? btw. it's a public transactional queue thanks for any help!
life is study!!!
thanks a lot!!!
life is study!!!
there's no profiler with sql express :/
life is study!!!
hmm.. well I was wondering if linq can convert such a call into a query with exec sproc and select rows from the resluts of exec.. oh, well.. I'll have to work this paging problem some other way.. thanks for your reply!
life is study!!!
Hi! let's assume that the sproc returnes 20 rows. well, i know that the sproc is going to be executed on the DB but will Skip and Take do their stuff after the data (20 rows) from the sproc is returned to the application or will linq "do it's magic" and call converted to sql statements Skip and Take on the DB and return only 3 rows to the application? thanks for any help
life is study!!!
ok.. who/what's "Websters"?!.. ou.. i didn't see linq mb.. sorry!!
life is study!!!
c'mon.. I'm asking seriously.. by "do it's magic" I meant convert linq query into sql query, connect do DB, execute the query, return data and so on...
life is study!!!
Hi! let's assume that the sproc returnes 20 rows. well, i know that the sproc is going to be executed on the DB but will Skip and Take do their stuff after the data (20 rows) from the sproc is returned to the application or will linq "do it's magic" and call converted to sql statements Skip and Take on the DB and return only 3 rows to the application? thanks for any help :D
life is study!!!
never mind that.. fyi, you just do it like in c and others :D
life is study!!!
Hi! is it possible to get a logical sum on two integers in sql?? thanks for any help
life is study!!!