|
Try Server.Transfer(page) instead of Response.Redirect(page)
"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,
I couldn't able to display the message also.
It is not displaying anything.Server.transfer(page) is also not working.
Wherever i am entering data am i need to write some code while session expires to display the message???
It shd not give any error,so that i can display a message.
Please help me out with this.
Only on global.asax i have given server.transfer(page).
And wat more i need to write??
kissy
|
|
|
|
|
I have a ASP.NET Web Application that calls WebMethods from Web Service.
Any error occuring in WebMethod is caught in the Web App and displayed in a Label as:- lblErrorMsg.Text = ex.Message
In development environment, above line shows the Message of the error;
SAMPLE:-
"Value is Incorrect"
But, after I published & deployed the Web Application at Server,any error returned by the WebMethod is displayed with FULL Stack Information:
SAMPLE:-
"System.Web.Services.Protocols.SoapException: Value is Incorrect at EasyPurl.CampaignCreationProcessLIDnotRequired( Int32 iTemplateId)"
Why this difference in the DEPLOYED/Published Site & Development environment??
PL. HELP ..This is a little urgent..
|
|
|
|
|
Hi,
after deploying your webservice on IIS plz check it. Browse the webservice and on page input the value as desired. After that submit it. If you are getting error then there must be any porblem with input of function in webservice.
So just cross check it.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
I am using temprory gridview. how will save records temprory gridview to database.
|
|
|
|
|
Gagan Deep Garg wrote: temprory gridview
what do you mean by that?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi,
means you want to save records from gridview to database ?
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
yes, I want to save records gridview to database
|
|
|
|
|
Gagan Deep Garg wrote: yes, I want to save records gridview to database
Iterate through each record in gridview and update database.
|
|
|
|
|
I want to save temporary gridview to database.
|
|
|
|
|
Gagan Deep Garg wrote: I want to save temporary gridview to database.
That is what i said. You want to save the Gridview contents right ? I reiterate, you need to put a loop that goes through all the rows, form an insert statement and insert. These are very basic things, you consider buying a good ASP.NET book.
|
|
|
|
|
Hi I am experimenting with VBScript and SQL and am unsure if the following code will actually work. I do not have access to IIS at present so I am unable to test it. I would be greatfull if anyone could just take a brief look at the code to see if the syntax is correct. Thanks
<%@Language = "VBScript" %>
<%Option Explicit%>
<!--#include virtual="/advobs.inc"-->
<%
Dim newDate
Dim newTime
Dim newMessage
Dim objConn
Dim sqlInsert
Dim objRecordSet
Set objConn = Server.CreatObject("ADODB.Connection")
objConn.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};"&_"DBQ=C:/inetpub/wwwroot/feedBack.mdb"
objConn.Open
newDate = Date()
newTime = Time()
newMessage = request.form("strMessage")
if newMessage <> "" then
sqlInsert="INSERT INTO tblMessages(date,time,message) VALUES(newDate,newTime,newMessage)"
end if
Set objRecordSet=Server.CreateObject("ADODB.Recordset")
objRecordSet.Open "tblMessages", objConn,,,adCmdTable
Do while Not objRecordSet.EOF
Response.Write"<B>" & objRs ("time") & "</B><BR>"
Response.Write objRs("date") & "<BR>"
Response.Write objRs ("message") & "<BR>"
Response.Write "<p><hr></p>"
objRecordSet.MoveNext
Loop
objRecordSet.Close
Set objRecordSet = Nothing
objConn.Close
Set objConn = Nothing.
%>
|
|
|
|
|
I guess Web Development would be the right forum to this question. This is ASP.NET forum. I don't think someone here can figure out the error in your code.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Ok thanks i will post it there then
|
|
|
|
|
Hello.
I want to retreive the structure of database...
Rquirement is : when i select the table name, it should give the details of tables like the columns it contains, rows etc in which database it is present et c
Aswini
|
|
|
|
|
SQL ~
Execute this T-SQL to get the columns of your table..
SELECT column_name FROM information_schema.columns<br />
WHERE table_name = @table_name<br />
AND table_schema = @owner_name<br />
ORDER BY ordinal_position
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
there are few system stored procs that returns the inforamtion about the database objects. take a look at those.
sp_databases <br />
sp_tables <br />
sp_columns
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
HI all
I am trying to create a autocomplete textbox i used this code
The code in c# it is working fine but when i convert to VB it is giving error .
on page load()
" acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(Me.GetSearchData)"
can any one tell me what i am missing in the code.
MY CODE
--------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AjaxPro.Utility.RegisterTypeForAjax(GetType(WebForm1))
acSearch.PageType = Me.[GetType]().BaseType
acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(Me.GetSearchData)
End Sub
<ajaxpro.ajaxmethod()> _
Public Function GetSearchData(ByVal s As String) As System.Data.DataTable
Dim conn As New SqlConnection("server=DSS1;uid=sa;pwd=sa;database=Northwind")
Dim cmd As New SqlCommand("SELECT FirstName FROM Employees WHERE FirstName LIKE @FirstName + '%'", conn)
cmd.Parameters.Add("@FirstName", s)
Dim da As New SqlDataAdapter
Dim ds As New DataSet
da.SelectCommand = cmd
da.Fill(ds, "Employee")
Return ds.Tables("Employee")
End Function
-----------------
Keerthi
|
|
|
|
|
What error are you getting?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Thx For reply
The Error is
C:\Inetpub\wwwroot\20-3-2006\TextBoxAutoCompletion\WebForm1.aspx.vb(31): 'WebCustomControl.Lab.Autocomplete.AutoCompleteHandler' is a delegate type. Delegate construction permits only a single AddressOf expression as an argument list. Often an AddressOf expression can be used instead of a delegate construction.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AjaxPro.Utility.RegisterTypeForAjax(GetType(WebForm1))
acSearch.PageType = Me.[GetType]().BaseType
acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(Me.GetSearchData)
End Sub
Keerthi
|
|
|
|
|
kirthikirthi wrote: acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(Me.GetSearchData)
acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(AddressOf Me.GetSearchData)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Thx Michael Sync
It working
Keerthi
|
|
|
|
|
iam using this method for(Response.AppendHeader("content-disposition", _
"attachment; filename=" & name))file downloading ...its working fine with all types file extensions...the problem is that now i installed
DAP download for fast accessing ..now the problem is that when i down load the rtf file using this method it is not getting the rtf file ..instead it is gettind default.aspx file to down load how this problem will be solved
|
|
|
|
|
Can any one tell me how to solve this problem?
Server Error in '/DataEditor' Application.
--------------------------------------------------------------------------------
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.
Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'D:\inetpub\wwwroot\DataEditor\Reference.aspx'.
|
|
|
|
|
Hi,
try to give rights to the director named DataEditor..
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|