i use the following in web config file <appsetting> <add key="AuthLogName" value="12345"/> <add key="AuthPwd" value="56789> </;appsetting> and in cs file, i access the above credentials using following object.Proxy.Credentials = new NetworkCredential(app.GetValue("AccUName", Type.GetType("System.String")).ToString(), app.GetValue("AccPwd", Type.GetType("System.String")).ToString(), app.GetValue("AccDomain", Type.GetType("System.String")).ToString()); i wana avoid the code in cs fine and directly give it under web config file how do i do thanks jiny
mehnazash
Posts
-
network credentials in web config -
proxy setting in web configHi i am using a web service and have written all the info regarding the webservice in webconfig file. To connect to the webservice i use the foolwing code <system.net> <defaultProxy> <proxy usesystemdefault="False" proxyaddress="http://wc-v01.inet.mesa1.gdg:3128" bypassonlocal="False" /> </defaultProxy> </system.net> PersonalCar.Proxy = new WebProxy(app.GetValue("ProxyUrl", Type.GetType("System.String")).ToString(), true); i wana avoid all this code and get the info directly from webconfid, how do i do pleaaase help thanks ton jiny
-
web service: unable to connect to remote serverHi, Help me out with this I developed webservice and am using in my application ie i am consuming web service from the local machine it worked fine for a while but now it gives an error "unable to connect to remote server" is it something to do with proxy setting of my application.though i tried changing the proxy settings of my machine, it dint help though help please Thanks jiny
-
returning values form jagged arrayshi, i want to know how should i return values from jagged arrays public string[][] fync(Type webtype) { string[][] dimen= new string[3][]; dimen = getDetails(Type Webtype); //how should i collect values in dimen } public string[][] getDetails(Type webtype) { //suppose ss is jagged array of dimension ss[3][] //ie i have ss[0] = i have something // ss[1]= i have something else // ss[2]= i have some third item return ss; } I hope i am doing right help please Thanks JIny
-
processes running in remote systemhi, we can get processes runnug in ones macine using getprocess() can someone help me to get process running in remote machine if we use getprocess(), an eror is displyed saying access denied anybody, anythought of how to get over it?? Thanks Jiny
-
sharepoint for win xpHi Is any version of sharepoint compatible with Windows xp? please suggest some link where from can i get the installable Thanks jiny
-
write the xml contents into text box [modified]HI , I have an xml file in my application folder when i run the application, i wanna load the contents of the xml file into text box.I am using C#.net .how do i do?? . please help Thanks Jiny -- modified at 1:18 Friday 30th June, 2006
-
HelpGo to link below u have a software called helpNDoc. U can use that create help which luks similar to the ones we have in say(VB)..u can create file using this and give link to the file from ur application http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLR,GGLR:2006-22,GGLR:en&q=helpNDoc+software -- modified at 8:05 Thursday 29th June, 2006
-
DateFormat problem//Check the third field , this is how u need to write 103 represents some code given by .net string query = "select build_desc,baseline,folder,convert(varchar(10),build_date,103),comment,developed_by,convert(varchar(10),modified_on,103),approval_flag from build_master order by build_date"; Hope this helps Jiny -- modified at 5:59 Thursday 29th June, 2006
-
How to add a checkbox controlin the header of a DataGrid controlThis is the java script for select-all /* Function for check all the check boxes in the Grid*/ function SelectAllCheckboxes(spanChk) { // Added as ASPX uses SPAN for checkbox var oItem = spanChk.children; var theBox=(spanChk.type=="checkbox")?spanChk:spanChk.children.item[0]; xState=theBox.checked; elm=theBox.form.elements; for(i=0;i
-
Problem with dynamic controlsGo to the properties of the text box and make view state as true. View state will be automatically saved. Make sure That textbox is server control. Go to html, make sure that is within
tag and include runat = server hope that helps
-
hyperlink in code behind [modified]Got it Thnaks everyone
-
hyperlink in code behind [modified]My code looks something like this foreach (ResultElement reselem in objres.resultElements) { //here sb is object of string builder sb.Append("<a href="\ + reselem.URL + "\">" + reselem.title + "</a><br />"); } TextBox1.text = sb.ToString(); Rather than displying it as hyperlink, it displaysas "a href="\...... kindly help, how can display it in the form of hyperlink Thanks Jiny
-
hyperlink in code behind [modified]Hi I have an array of URLs I wanna display them in the form of hyperlinks using StringBuilder ie StringBuilderobject.Append("url") i wanna convert above "url" in the form of hyperlink to be displayed in browser How do i do Should i use some script? please help Thanks Jiny -- modified at 5:36 Tuesday 27th June, 2006
-
please help...processes in remote server.. minhpc_bk, u dint help me completely, please doI dint mean to offend or embarrass anyone...I`m new to programming , thats y little implulsive. I really appreciate the help and time people in this forum provide Sorry once again if any offence meant. thanks
-
please help...processes in remote server.. minhpc_bk, u dint help me completely, please dohey Thanks i have done this but it works only on ones own machine , if the hostname or ip adrress is of remote machine, it says access denied how do we come over it Thanks Jiny
-
deleting data base columns depends on check box value in a datagridAccording to what i understood,this is how u can implement foreach (DataGridItem dg in this.dgApproval.Items) { int i = 0; //u use a for loop like this to find the template column of checkbox in data grid if(((CheckBox)(dg.FindControl("CheckBox1"))).Checked == true) { //here i am retreiving the second column of datagrid as i neeeded it //first column in data grid is the 0th column string build_desc1=dg.Cells[1].Text.ToString(); //do what u want here... like i have written update query here string query; string query2; query = "update build_master set approval_flag ="+ i +" where build_desc = '"+ build_desc1+"' "; } //make sure you bind the grid again to reflect the changes BindGrid(); } Happy Programming Jiny -- modified at 8:54 Friday 23rd June, 2006
-
how to get the processes running in remote systemhey Thanks i have done this but it works only on ones own machine , if the hostname or ip adrress is of remote machine, it says access denied how do we come over it
-
how to get the processes running in remote systemHi how can i get the processes running in remote system can someone please help me with this. Jiny
-
Callback in ASP .Net 1.1can anyone please tell me how to implement callback in asp .net 1.1 jiny