|
very very thanks for reply
but i have to save the logout time in database then how can i do it?
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
when the user closes the browser window, actually he is not logging out. his session remain's active until the session timeout is reached. If you want to save the logout time, you can do when the session ends.
Regards John
|
|
|
|
|
thanks again
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
my codes to save for my data goes like this:
Dim ctr As Integer<br />
Dim dr As DataRow<br />
<br />
dr = DataSet71.students.NewRow<br />
dr("studname") = txtname.Text<br />
dr("year") = txtcourse.Text<br />
dr("course") = txtyear.Text<br />
DataSet71.students.Rows.Add(dr)<br />
OleDbDataAdapter1.Update(DataSet71)<br />
MessageBox.Show("Record Save!")
but there's an error in this part: OleDbDataAdapter1.Update(DataSet71)
i already use this codes in my previous projects ant it function well...
but now, i cannot already save my reord. whats wrong with my codes???
|
|
|
|
|
Use OleDbCommandBuilder along with the Adapter.
I think, there is no primary key constraint.
|
|
|
|
|
i dont know how to use oledbcommandbuilder...
i have a primary key in my database, my primary key there is the studname...
|
|
|
|
|
I am using Ajax in my ASP.NET application..
Placed a Tabcontainer and within it an Accordion and inside the accordion pane
a GridView and textboxes..
when i am trying to bind data to it at PageLoad is shows errors.....
Please help me
i am new to Ajax
Thanks in advance
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Good...
Give your network information, so that I can check whats the error is. :->
|
|
|
|
|
How to access a method declared in a module in asp.net 2.0?
|
|
|
|
|
There is no module rather you create class library ie is called as class assemblie. Now this has to be in some namespace. You will require to first reference this assemblie into your project and later in your code C# use the using statement eg using xyz.abc;
Regards
|
|
|
|
|
Hello Everyone,
Can anybody let me know wht's a difference between simple mail and Newsletter
and How is it(Newsletter) designed in HTML or ASP.NET
..............
|
|
|
|
|
Wow - I'm not sure how to answer this and not be condescending.
A newletter is a simple email, the mail format has no way of setting that a mail is a newsletter. The obvious difference is that a newsletter is sent out typically to more people than an email.
The Knowledge wrote: and How is it(Newsletter) designed in HTML or ASP.NET
I recommend that before you continue with your given task, you let whoever is asking you to do it, know that you have no idea what you're doing, and ask for some references/guidance. You're way too lost to get by just on help from strangers online.
HTML is incapable of sending emails. ASP.NET trivially sends emails, newsletters or otherwise.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hey Chris,
I have a question in the above response.
Christian Graus wrote: ASP.NET trivially sends emails, newsletters or otherwise
If ASP.NET is not worthly, which mode you suggest to choose?
I have developed some Web Applications which normally mails every action to a set a users (depends on the group). I like to know some more ideas to improvise myself.
|
|
|
|
|
Venkatesh Mookkan wrote: If ASP.NET is not worthly, which mode you suggest to choose?
Trivial means without much effort. ASP.NET contains classes that make it really easy to send emails.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
When I deploy my web application from file system to web application I get The remote name could not be resolved: <service name="">.
The web service request works perfectly fine when I execute the web application from file system, as soon as copy the web application to web site at IIS and launch I get Webexception. Can any one tell me the solution to get away with this.
I am using ASP.NET 2.0 with C# 2.0.
|
|
|
|
|
Where are you deploying it to, and how do you reference it ? It sounds like a DNS error....
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have deployed it on IIS 7.0 and then call the web service web methods which is in web reference. So please tell me how to resolve this issue.
|
|
|
|
|
You didn't really answer me. If the error is that a name cannot be resolved, I am assuming you reference the web service by a URL, which cannot be resolved, or something like that.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi All, I am very new to ASP.NET, I've developed a simple ASP.Net Project with only one page "DEFAULT.ASPX", and uploaded on the site using "PUBLISH TO WEB" option from Menu. But when I open the site, it gives an Application Error and gives me option to correct the "customerrors" tag. I've tried all option but it didn't turn up. please help me out Thanks
|
|
|
|
|
It's telling you that if you edit the custom errors property in the web.config, it will tell you the actual error. We can't really help until you do that ( the error is hidden from you )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Check the framework version in IIS, ASPNET home under website properties.
|
|
|
|
|
Hi,
While debugging my web application I am getting following error.
Warning 1 Invalid search path 'C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\' specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
What in the solution for it.
Thanks !
|
|
|
|
|
I would suggest you clean the solution, or close the solution and then relaunch the web application. this is the problem when your assemblies are not the latest assemblies.
Thanks,
|
|
|
|
|
I used a Grid as following
so anyone help me about : How I get the datakeynames(RegionCode,CountryCode)
on GridView2_RowDeleting.....
<asp:GridView id="GridView2" runat="server" AllowPaging="true" GridLines="None" <br />
OnPageIndexChanging="GridView2_PageIndexChanging" <br />
OnSelectedIndexChanged="GridView2_SelectedIndexChanged" OnRowDeleting="GridView2_RowDeleting"<br />
DataKeyNames="RegionCode,CountryCode" ><br />
<Columns><br />
<asp:CommandField ShowDeleteButton="True" ButtonType="Image" DeleteImageUrl="~/Images/Delete.gif" /><br />
<asp:CommandField ButtonType="Image" SelectImageUrl="~/Images/Edit.gif" SelectText="Edit" ShowSelectButton="True"><br />
<ItemStyle HorizontalAlign="Center" Width="20px" /><br />
</asp:CommandField><br />
<asp:TemplateField><br />
<ItemTemplate><br />
<asp:HyperLink ID="HLdetails" runat="server" Text="Description" NavigateUrl='<%# "~/admin/Description.aspx?CCode="+Eval("CountryCode")+"&RCode=" +Eval("RegionCode") %>' Target="_blank" /><br />
</ItemTemplate><br />
</asp:TemplateField><br />
</Columns><br />
<RowStyle BackColor="#EFF3FB" ForeColor="Black" /><br />
<PagerStyle BackColor="PeachPuff" Font-Bold="True" Font-Size="Medium" ForeColor="DodgerBlue" HorizontalAlign="Center" /><br />
<HeaderStyle BackColor="DodgerBlue" Font-Bold="False" ForeColor="White" /><br />
<AlternatingRowStyle BackColor="AliceBlue" ForeColor="DarkBlue" /><br />
</asp:GridView>
thanx in advance
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi Deepak,
Its so simple to delete a particular row using GridView_RowDeleting command using cell index,its good to use DataKeyName when your gridview has two deletebutton column. here i am giving code to delete row on basis of cell index. if you want code of datakeyname then tell me.
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs)
Dim i As Integer = CInt(GridView1.Rows(e.RowIndex).DataItemIndex)
Dim rgncode As String = (GridView2.Rows(i).Cells(indexof regioncode column).Text).ToString
Dim cntrycode As String = (GridView2.Rows(i).Cells(index of countrycode column).Text).ToString
'Your delete command code gone here
GridView1.DataSource = 'name of datasource'
GridView1.DataBind()
End Sub
prabhakar
|
|
|
|