Hi there, Am working on a Window project, i have created a User control using Infragistics Controls. i want to clear the value in the user control when i click on the "Clear" button. any advice hope to get reply soon Regards ybasha
ybasha
Posts
-
value in the controls like label, txt box should be clear in btnClear_Click -
http request errorHi there, i have the folder with may word document am using the below function to send word document to a PDFserver and convert into PDF, for example i will send(infile,outfile)-> (test.doc,test.pdf) but when i send the request it converting all the word file inside the folder any suggestions?? private string CallAsService(string inFile, string strPdfFunctionName, string strApproverName) { XMLHTTPRequestClass oXMLHTTP = new XMLHTTPRequestClass(); string [] parsePath = inFile.Split('\\'); string strDocumentNumber = parsePath[ parsePath.Length - 3].ToUpper().Trim(); //string serverUrl = ConfigurationSettings.AppSettings.Get("YtiPdfUrl").Trim()+ "?inFile=" + Server.UrlEncode(inFile) + "&DocNum=" + strDocumentNumber + "&do=" + strPdfFunctionName.Trim().ToUpper() + "&Name=" + strApproverName ; string serverUrl = _pdfServer1.Trim()+ "?inFile=" + Server.UrlEncode(inFile) + "&DocNum=" + strDocumentNumber + "&do=" + strPdfFunctionName.Trim().ToUpper() + "&Name=" + strApproverName ; oXMLHTTP.open("POST", serverUrl, (object)false,(object)"",(object)""); oXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); oXMLHTTP.send(null); return oXMLHTTP.responseText; } regards ybasha
-
Java scriptNo the script is in the application which deployed in server B which in turn am calling through server A main application.
-
Java scriptHi There, I need your help in the following, i have a web application in server A, which in turn call another application in server B, to upload a file in server B, now the upload part is working fine after upload i have return a Java script to close the window once the upload is completed, the script is not working...below is the script. private void CloseSelf() { //Spit Startup Script to the Page to show the error message Page.RegisterStartupScript( "CloseSelfWindow", @" <!-- var vRecID = document.getElementById('hdnRecID').value; if (top != self) { top.location= remoteSeverAddress + 'Home.aspx?cType=A&DocID=' + vRecID ; } --> ") ; } i even tried another script just in Server B private void closeSelf1() { Page.RegisterStartupScript("PopupScript", "javascript:window.opener='x';window.close();"); } the above script is working when am opening the page in server B but it not working when am opening the page in server A... any suggestion or help, please do the needful...Thank for your time. regards Ybasha
-
dynamic values in the stringhi sandeep, Thanks for ur suggestion i already debug and when i use the application for sg domain name the function show me the file in and it delete the document nos which i pass where as when i use the function from jp domain it thro error the document nos is not found. i think when am using the jp domain it still read the value from where is suppose to read the path from my question is how to assign the dynamic value to a string? hope this is clear. regards ybasha
-
dynamic values in the stringHi there, i have a function which store value of document path, in my web application i have two path for example 1. path one domainname\jp\xyz 2. path two domainname\sg\xyz the application able to get the location path of number 2 and it function is use to delete that path folder. when the user from the jp domain try the function thro error the document path cannot found? how can i assist the string a dynamic value? since it taken value from web config This is the function public string GetPostLocation(string strDocumentNumber) { int intTypeLength =0 ; string strPostLocation = string.Empty; try { if(strDocumentNumber.Trim().Length == 16) intTypeLength =1; else if(strDocumentNumber.Trim().Length == 17) intTypeLength = 2; strPostLocation = _postFolder; } catch(Exception ex) { throw ex; } return strPostLocation; } any suggestion please regards Ybasha
-
button disablehi there, Thanks for the support but the script "document.getElementById("Button1").disable = false;" was not working so i have created a textchange event it working fine now. private void textbox_TextChanged(object sender, System.EventArgs e) { Button.Enabled = true; } regards ybasha
-
button disableIE 6.0
-
button disablehi thanks for the code but the function GetEnable() { document.getclientElementID("Button1").disable = false; } is not working.....am using VS2003... document.getclientElementID is not working
-
button disableha ha ha very funny dont u think i dont know that, am looking for script sample code. i tried the below one not working. btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());
-
button disablehi there, i need to know how to disable button when page load and should be enable once the user keyin the textbox. any sample code will be appreciated. regards Ybasha
-
Custom Validator for validate stringHi there, I already got the solution. regards ybasha
-
Custom Validator for validate stringor can some one give me a simple to break this string SSD-SGZZ99-A0101 --> 16 character or SSD-SGZZ99-AE0101 --> 17 character to added in ValidationExpression="(SSD)|(SSA)(-)(a-zA-Z0-9){4,2}(-)(a-zA-Z0-9){6,2})" for regular expression validator. regards Ybasha
-
Custom Validator for validate stringi need the script to validate some thing like this function validateDate() { var ptext = document.getElementById("TBDocNum"); if(ptext = ("(SSD)|(SSA)(-)(a-zA-Z0-9){4,2}(-)(a-zA-Z0-9){6,2})"); } but it not correct any help on this???
-
website browsing error at local hostwhat name have u given will publish the website in IIS and while creating the Virtual directory? the name you created in virtual directory is used for local browser and also check the home directory whether it refer to right project? for example C:\inetpub\wwwroot\prjName\ Hope this will help you. regards ybasha
-
Custom Validator for validate stringHi there, i want to validate user input in the text box which take a document number to check in database, the input must be in this format SSD-SGZZ99-A0101 or SSD-SGZZ99-AE0101 [(3alpha)(-)(4alpha 2numeric)(-)(1 or 2alpha 4numeric)] Total 16 or 17 character, now can some one send me a sample to validate this requirement.... i also want to disable the button till this validation is not completed, once the user keyin the right number the button should be enable. any suggestion will be appreciated. i need the sample code to use the custom validator control. Regards Ybasha
-
XSLT:copy-ofi did already pls check the subject XSLT:copy-of element thanx
-
XSLT:copy-of elementHi there, i have a application which use xslt to read the data from the particular tag for example i have a xml file like below: xxiii, 2-297 p. 21 cm. monthly and i read data using xslt for ex: i use c# to load the data into database for ex: objTempNodes = objXml.SelectNodes("//dc:test", objNameSpaceMgr); sData[21] = ""; foreach (XmlNode objNode in objTempNodes) { sData[21] += objNode.InnerText.Trim(); sData[21] += (objNode.InnerText.Trim().Length > 0 ? sDelimiter : ""); sData[21] = sData[21].Substring(0, (sData[21].Length == 0 ? 0 : sData[21].Length - 1)); sData[21] = objNode.InnerText; if (sData[21].Trim() != "") sData[21] = RemoveDups(sData[21]); objNode.InnerText = sData[21]; } but the problem is i have value in tag '310' but it show me blank, i can see the other tag value. any suggestion on this issue? pls do the needful it urgent.
-
XSLT:copy-ofHi there, i have a application which use xslt to read the data from the particular tag for example i have a xml file like below: xxiii, 2-297 p. 21 cm. monthly and i read data using xslt for ex: i use c# to load the data into database for ex: objTempNodes = objXml.SelectNodes("//dc:test", objNameSpaceMgr); sData[21] = ""; foreach (XmlNode objNode in objTempNodes) { sData[21] += objNode.InnerText.Trim(); sData[21] += (objNode.InnerText.Trim().Length > 0 ? sDelimiter : ""); sData[21] = sData[21].Substring(0, (sData[21].Length == 0 ? 0 : sData[21].Length - 1)); sData[21] = objNode.InnerText; if (sData[21].Trim() != "") sData[21] = RemoveDups(sData[21]); objNode.InnerText = sData[21]; } but the problem is i have value in tag '310' but it show me blank, i can see the other tag value. any suggestion on this issue? pls do the needful it urgent.
-
generating asp.net pageshi all, I need to generate asp.net pages dynamically using .net for ex: i have 1000 records with title, subject, date etc fields each records is unique and i need to generate 1000 pages for this 1000 records any suggestion how to do it? or any sample to get some idea........