|
I have been trying to insert data into a database using textboxs and sqldatasource, the data comes from the user simple things such as name address,etc and is then stored in the database. I do not want to use datagrids and tables the information will never be shown to anyone it's for creating a simple mail list. If anyone knows any good articles on this please let me know.
|
|
|
|
|
Hello every one,
I have a problem in my web service.
Case: I
web service was host on "ABC Server"
and this web service have [WebService(Namespace = http://abc.com/)]
Case: II
now i have changed and host the web service on "XYZ Server"
and still this web service have [WebService(Namespace = http://abc.com/)] old server host name space.
then i am getting an error -->
"Server did not recognize the value of HTTP Header SOAPAction: http://abc.com"
does i have to change Namespace to [WebService(Namespace = http://xyz.com/)]
<big><code>Error : Server did not recognize the value of HTTP Header SOAPAction: http:</code></big>
Please advice me.
Pavan Pareta
|
|
|
|
|
Hi 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
|
|
|
|
|
I want to enable a faxing service in my site so that clients could sent faxes to me with a copy as email. Please help me with some guidelines or other links that would be helpful.Also send what are the requirements for including a fax service in my site. Thankyou.
|
|
|
|
|
SreejithAchutan wrote: I want to enable a faxing service in my site so that clients could sent faxes to me with a copy as email
Check in the Fax Machine Manual how it can be programmatically controlled by giving Instruction. I guess you have to write a windows service which will Send and Receive FAX ( which will acts a Middleware between your webapplication and FAX machine ).
Regards - J O H N -
|
|
|
|
|
Hello all,
in my master page is having body onkeydown event. Which code written using Java Script. In this JS code are avoiding Enter key press.
I have one webpage1.aspx pages, it is refers to that master page. In this aspx page there is one multiline textbox txtBox1
My problem is in multiline textbox enter key is not working, because masterpage is having body onkeydown validation, so that i am unable to press enter in my multiline textbox
I need to avoid this onkeydown event only for webpage1.aspx. How can i do this.
plz give me any solution. any sounds will be appritiated.
Ramana
|
|
|
|
|
dataminers wrote: Do you have any idea about this?
No Idea... Did you search in the Google?
Regards - J O H N -
|
|
|
|
|
??
Yes. Go search.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
i try to add the windows media player control through
toolbox
right click
choose items ans com
selct the windows media player
but that not apper in my tool box where it is available
Kiran Kumar.P
|
|
|
|
|
|
Hi Kiran,
Toolbox-->Right click-->show all-->select standard tab--> At bottom u can see....
Plz reply.....
Regards,
Syed Arif.
|
|
|
|
|
No...There is no media player control.Any ideas will be helpful
Thanks in Advance...
|
|
|
|
|
If Application("TipDate") <> Today() Then
Application("TipDate") = Today()
If Not IsNumeric(Application("TipNumber")) Then
Application("TipNumber") = 1
Else
Application("TipNumber") = Application("TipNumber") + 1
End If
End If
I have given the above code in the page and i want to store Application("TipNumber") and it has to increment daily depending up the Date Value.
So, i have placed the Appliaction("TipNumber")=1 in Appliaction_Start of Global.asax but when ever the appliaction is running TipNumber is initialised to 1 only but not incrementing?
Please help me in solving this problem
|
|
|
|
|
This logic probably won't work since the Application_Start event is fired only once when the application starts, Not on everyday basis.
Regards - J O H N -
|
|
|
|
|
Thanks for ur reply but if i want it in daily basis how to do the coding? pls help me
|
|
|
|
|
Could you provide some more detail about what exactly is the requirement?
Regards - J O H N -
|
|
|
|
|
Application("TipNumber") = 1
If Application("TipDate") <> Today() Then
Application("TipDate") = Today()
If Not IsNumeric(Application("TipNumber")) Then
Application("TipNumber") = 1
Else
Application("TipNumber") = Application("TipNumber") + 1
End If
End If
Dim cmd As SqlDataAdapter = New SqlDataAdapter("Select Thought From Thoughts_Tbl " & "Where id = " & Application("TipNumber"), Con)
cmd.Fill(_dataSet, "TheTip")
If _dataSet.Tables("TheTip").Rows.Count = 0 Then
Application("TipNumber") = 1
cmd = New SqlDataAdapter("Select Thought From Thoughts_Tbl " & "Where id = " & Application("TipNumber"), Con)
cmd.Fill(_dataSet, "TheTip")
End If
lbl_Title1.Text = "Thought of the Day :"
lbl_ThoughtText.Text = _dataSet.Tables("TheTip").Rows(0).Item("Thought")
This is the actual code where i'm check the date with today's day if it matches and the TipNumber is not numeric it wil take first statement Application("TipNumber") = 1 or if TipNumber is numeric i.e having some number, it wil be incremented in else part Application("TipNumber") = Application("TipNumber") + 1
but TipNumber which is incrementing is not saving? Now how to save TipNumber n incrementing it and get the next "TipOfDay" from database?
Pls help me with some solution
|
|
|
|
|
Having this Data in the Application Variable is pointless. Application_Start Event is not meant for this. This will not serve your purpose.
Why don't you have a Date Column to the Thought's Table and fetch the Tip based on the Date. I think this would be the appropriate solution to the given problem.
Regards - J O H N -
|
|
|
|
|
You need to persist the value somewhere, ie a database, along with the datetime it was written. Then, perhaps in an onsession event, read this value from the database, compare the date it was written with 'todays' date, and update if necessary.
If you don't persist the value, if you site ever goes down, or you modify the webconfig, or the process gets recycled for any reason, you will lose this value.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
hello everybody
this is the second time i put the same message.
I am using vb so vb code will be graet full.
my ddl data is coming from sql server 2005 database, if antything from ddl1 then corresponding data will fill ddl2.
do i need a xml document for this? if yes then how can i do it?
Please do not read the beginner one. If you know the guideline please tell me step by step information.
Thanks in Advance
Sarfarj Ahmed
|
|
|
|
|
Step 1: On the Page Load Event, Populate the First DropDown.
Note: In Page Load Event Add (IF Not Page.IsPostBack) and write the code in it.
Step 2: Enable the PostBack Property of the First DropDown
Step 3: On the SelectedIndex Change of the First DropDown, write the Code to Populate the Second DropDown by passing the Selected value of the First Drop Down.
Regards - J O H N -
|
|
|
|
|
Dear John
Thanks for your instruction,
Problem is, if selected index change from FIRST DDL then refreshing the whole page.
Only SECOND DDL will refresh not whole page.
thanks
Sarfarj Ahmed
|
|
|
|
|
Do you mean that you want avoid the Page Postback while Populating the second DropDown? If yes, try to implement AJAX which will send a request to the server and do the task without posting your page.
Regards - J O H N -
|
|
|
|
|
thanks john
i have solved my problem
Sarfarj Ahmed
|
|
|
|
|
I have been trying to modify a code that had 4 questions to 3 questions. I get no errors whatsoever when I build the webiste. Only issue is, The TYPE page that should assign a type to the user based on what answers were chosen doesnt show anything when it loads only the button that allows the user to choose a present. How do I fix this. I am totally new to .NET I can easlily amil the project if someone is willing to help..thanks
Cruisar
|
|
|
|