|
Thanks for ur reply, i will remove as u suggested in the IIS .
I will give you the status after some time.
So in the global.asax i am redirecting to the message page.
thanks once again
kissy
|
|
|
|
|
Kissy16 wrote: I have set the session time out in web.config and also in IIS(in my application).
This is a commonly discussed issue. I suggest you to set the session timeout either in web.config or in the other place. May be that is causing the problem.
|
|
|
|
|
Thanks for ur reply,
I have removed in the IIS.
But still i am facing the same problem.
As sussgested by sun ray,in global.asax i have given the code for displaying message on session _end event.
My problem was not solved yet.
Please give me some solution.
I have done the changes as u suggested.
please
kissy
|
|
|
|
|
Post your OnSessionEnd code from Global.Asax
"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."
|
|
|
|
|
Just i am displaying a message on that form.Anything else i need to write ???
When the session expires,nothing is happend.I just want to display a message.
If you have any idea for not expiring the session state
please give me a solution,
Thanks for the response.
Here is my code
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session ends
Response.Redirect("WebForm3.aspx")
End Sub
kissy
|
|
|
|
|
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
|
|
|
|