Posts

automatically detect server name and connect to the database

i creating application in visual studio 2010 in c#. have created connection string file store connection string entered user in 1 of forms. want software, automatically detect server name of sql server database installed on client's pc, , start working on specific database. possible? if yes can give code same integrate software, instead of connection string. want the code written in program.cs file only, , on every form makes connection. thank you. hi varij, it's practice server name + connection string config file. however if have specific request detect server name code there no direct way while installation user can select server name. still assuming sqlserver installed default setting , windows authentication. can try connecting database server name mssqlserver. there other ways getting name of services running on system & extracting server name service name. still recommending store connection string in configuration file.. hope helps... rajat...

Sharepoint online (office 365) - error activate sandboxed solution

Image
  hello, we developing webpart sandboxed solutions in visual studio 2013 sharepoint online. use external dll library sharpziplib creating of zip packages of file. have problem activate solution. our error message shown below. error validating assembly 'icsharpcode.sharpziplib.dll'. this solution references prohibited member 'system.threading.thread.get_currentculture' , cannot used on site collection. can helps or advise? many thanks. hi, as error message suggests, 'system.threading.thread.get_currentculture' method prohibited in office 365 sharepoint online site. more information prohibited dlls in office 365: http://o365fxcoprules.codeplex.com/wikipage?title=supported%20rules&version=1      thanks technet community support please remember mark replies answers if help, , unmark answers if provide no help. if have feedback technet support, contact tnmff@microsoft.com . ...

problem accessing web service

hi i new asp.net world.  having problem adding web reference or running wsdl.exe.  error - error: there error processing 'http://www.webservicex.net/stockquote.asmx?wsdl'.   - there error downloading 'http://www.webservicex.net/stockquote.asmx?wsdl'.   - underlying connection closed: unable connect remote server i can access site , see wsdl contents fine ie.  can not do "add web reference" panel in visual studio. i trying laptop @ home on wireless lan.  in lan settings of ie have "automatically detect settings" checked.  don't use proxy server access internet. i appreciate help. thanks ajay i tried using wsdl.exe access wsdl specified , worked fine.  build of framework using?  version should printed console when run wsdl.exe tool. another simple test try compile , run following program: using system; using system.net; public class wsdldownloadtest {     public static void main(string[] args) {     ...

array of form controls, keydown event

i have mysql query generates array of form controls.  "select * products" generated controls follows, depending on count of rows(i) : _arrproductlabel[i] //(product name, fetching sql) _arrpricelabel[i] //(price data, fetching sql) _arrsoldtextbox[i] //(*empty,user input area - user inputs quantity of each sold item) _arrresultbox[i] //(desired calculated ,on keydown of each _arrsoldtextbox[i] ) want have each _arrsoldtextbox[i] keydown event, caculate , write result _arrresultbox[i] on keydown. the formula : multiply price _arrpricelabel[i] , sold amount _arrsoldtextbox[i] , write value _arrresultbox[i] how can ? can declare method array of controls ?  you can set event handler textbox create control , put array. store index of contol in array tag property of textbox event handler can like. private void textbox1_keydown(object sender, system.windows.forms.keyeventargs e) { textbox soldtextbox = (textbox)sender; int ...

Suggest a Name

i have develope one  retail  sales management software in .net, add name software please me give me standard name software regards, nithin varghese rsm, crm(client relationship management);) if think 1 reply solves problem, please mark an answer , if think someone's reply helps you, please mark proposed answer help clicking: click here donate rice poor click donate click feed dogs & cats found spamming-senders? please report at: spam report Visual Studio Languages  ,  .NET Framework  >  Visual C#

Orchestration is suspending

i biztalk newbie , created 1 simple orchestration noticed orchestration getting suspended following error. appriciated. the instance completed without consuming of messages. instance , unconsumed messages have been suspended. regards -freddie i think got problem. have seen similar kind of issues in case logical send port orchestration configured delivery notification = transmitted , bound send port groups orchestration expecting single ack getting more 1 i.e. every send port in send port group resulting zoombie. please confirm if using delivery notification. don't forget mark post answer or vote helpful if does, regards -rohit sharma (http://rohitbiztalk.blogspot.com) BizTalk Server  >  BizTalk Server General ...

Problem with textBox selectAll

i have problem textbox selectall function, want on textbox single click event want text box selectall text in textbox textbox.selectall but on second click want unselectall text in textbox. i did codding in click event of textbox below code textbox1.selectall(); but select text inside textbox click on textbox can 1 me problem hi xabi, you want selectall when first click textbox , unselectall when second click textbox. think can try code boelow: public form2() { initializecomponent(); textbox2.text = "auto select text demo"; textbox2.tag = false; textbox2.gotfocus += new eventhandler(textbox2_gotfocus); textbox2.mouseup += new mouseeventhandler(textbox2_mouseup); } void textbox2_mouseup(object sender, mouseeventargs e) { if (e.button == mousebuttons.left && (bool)textbox2.tag == true) { textbox2.selectall(); ...