|
I have been given a task to fetch the following information from the ADS server in windows 2003 to my application in asp.net.
The fields to be fetched are,member loginid,login time,logout time.
Where does windows 2003 server save these member information as a log file.
Can anybody help me out for this problem.
Bibhu
|
|
|
|
|
You want to find this information on the server or on the client ? You want logout time, so you want a history of who logged in when, on the server ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I need to fetch the client information from the server.THe client information like client login time,logout time AND OTHER login informations.I got it from somewhere that there are log files that carry the member information.Now the problem is where does this log file of member event viewer exists and how to fetch member data from that.
|
|
|
|
|
hi
can any one help me to give the reference of job portal in asp.net which is available in the net freely
its really urgent
thanks in advance
|
|
|
|
|
Ravi_21 wrote: its really urgent
Of course it is. Why ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have two controls: a.ascx and b.ascx.
In b.ascx I have a gridview and function B that collects data from gridview and builds a datatable for return.
In a.ascx I have b.ascx and function A that calls function B from b.ascx.
On page (aspx) it calls the A function after button was pressed.
The problem:
When I'm checking the gridview in b.ascx it's empty despite of fact that I see the grid in explorer.
P.S.
When I'm using the b.ascx directly on page everything just fine.
modified on Tuesday, March 4, 2008 4:44 AM
|
|
|
|
|
How are you adding these controls to the page? Are they being added dynamically?
|
|
|
|
|
|
You need to drag and drop these controls from sol.n explorer as other controls.If needed you can define some properties and functions for the user controls.These controls can be called both dynamically and statically.
|
|
|
|
|
I found the problem! There was some bug in my code!
Thank you for your help!
|
|
|
|
|
hi to all
i have a problem please suggest me the solution
prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..
prob2 : and the datagrid should consists of text boxs
datgrid FOrmat
====================================
col1 remaiming columns heading from the above Query
==================================
a textbox textbox textbox
b textbox textbox textbox
prob3: Insert into the table
|
|
|
|
|
prob2 I think you can use template field to solve this, just put the text box in a template field
what do you mean by
devkranth wrote: prob3: Insert into the table
do you mean insert into your datagrid or insert into table in database?
if database just create a button in a column then select the apporaite row
|
|
|
|
|
hi thanks for u reply
i cannot add textbox the template column coz i need to add the texboxes for those columns which are generated by The query(in the sense Heading)
Prob 3: i need to dump the values into the database Table.. i needto insert all the datagrid items to the database table
|
|
|
|
|
devkranth wrote: urgent......
devkranth wrote: prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..
Strange ! Do you want to make the whole rows appear at the top of grid ?
For prob2 and 3 use google.
|
|
|
|
|
hi thanks for u reply
yeah i need to make whole rows to appear as datgrid
|
|
|
|
|
Hi,
For prob1, I didn't quite understand your question. I'm not sure how you can make all the rows of the query output be the headings of the datagrid. While displaying the query results, it will be displayed in the query analyser with the headings. That you can bind to the dataset and thereafter to datagrid,so the headings will display. Please correct me if I'm wrong.
For prob 2, please try with the following code:
A) In the HTML window, add the following code inside the datagrid declaration:
<asp:datagrid id="dgrdEditDel" runat="server" width="873px" cssclass="Grid" datakeyfield="PK_Value">
AutoGenerateColumns="False" AllowPaging="True" BackColor="#C0C0FF" HorizontalAlign="Center" Height="376px">
<headerstyle horizontalalign="Center" backcolor="Orange">
<columns> <asp:boundcolumn headertext="Sl.No">
<asp:templatecolumn headertext="No of Days">
<itemtemplate>
<asp:label id="lbldate" runat="server" width="60px" text="">]]>'>
<edititemtemplate>
<asp:textbox id="txtdays" runat="server" text="">]]>' MaxLength="30">
<asp:templatecolumn headertext="Modify">
<itemtemplate>
<asp:linkbutton id="lnkEdit" runat="server" text="Edit" causesvalidation="false" commandname="Edit">
<edititemtemplate>
<asp:linkbutton id="lnkUpdate" runat="server" text="Update" causesvalidation="False" commandname="Update">
<asp:linkbutton id="lnkCancel" runat="server" text="Cancel" causesvalidation="false" commandname="Cancel">
//Days is the column header in the sql query.
On the code behind, add the following code:
private void dgrdEditDel_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
dgrdEditDel.EditItemIndex = e.Item.ItemIndex;
FillGrid();// Function for filling the Grid
}
private void dgrdEditDel_CancelCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
dgrdEditDel.EditItemIndex = -1;
FillGrid();
}
Try the above code and let me know if you have any issues.
Thanks,
meeram395
Meeram395
|
|
|
|
|
hello......i want to apply css to cell which is of HyperLink Filed type i have written this code ... css is not applyin so whats wrong in this code?
protected void gvMessagges_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex >= 0)
{
if (Convert.ToBoolean(e.Row.Cells[5].Text.ToString()))
{
e.Row.Cells[3].CssClass = "AgentMessageTrue";
}
else
{
e.Row.Cells[3].CssClass = "AgentMessageFalse";
}
}
}
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
1 - Check styles are referred correctly
2 - Check page source to see the class attribute is added to the row.
|
|
|
|
|
i am not getting it navneet will u tell me in brief.
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
I was pointing some chances that may stop CSS functioning. Is all that OK in your case ?
|
|
|
|
|
I think the event in which you write your code must be raised after page_initialization or page load event
that's why this code doesn't have any affect
|
|
|
|
|
How can i enable or extend my visual studio 2005 compactible with .dbml files
or Object Relation or class diagram files
Any Idea
Please spent a moment for me
Thanks in advance...............
Riyam Hussain
SE
IDSi Technologies
Infopark, Kochin
|
|
|
|
|
AFAIK, VS2005 do support class diagrams.
|
|
|
|
|
How should i use the can grow field in cross tab crystal report.It is not showing me the full details in a column
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Urgent
Please help..
I am trying to display a file(.doc,.pdf or .img) from database to iframe embeded in a gridview.
i have used the following code below. its showing error.
The error is
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'http://localhost:2809/WebSite3/getimage.aspx?ID=11'. ...
{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch0\stshf
^
In MainPage.aspx
public partial class Default8 : System.Web.UI.Page
{
ClsData clsd = new ClsData();
string sqlstr;
DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
sqlstr = "select ID,Extension,Content from TestTable ";
ds = clsd.SelectDataSet(sqlstr, "temp");
Gridview1.DataSource = ds;
Gridview1.DataBind();
}
}
The design is
<asp:gridview id="Gridview1" runat="Server" autogeneratecolumns="false">
<columns>
<asp:boundfield datafield="ID" headertext="ID" visible="false">
<asp:boundfield datafield="Extension" headertext="Extension" visible="false">
<asp:templatefield headertext="Content">
<itemtemplate>
<![CDATA[<%# "getimage.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID") %>]]>' id="MyIframe" />
In getimage.aspx
public partial class getimage : System.Web.UI.Page
{
ClsData cdtd = new ClsData();
DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
try
{
IDataReader dr = null;
string id = Request.QueryString["ID"].ToString();
string sqlstr = "SELECT Content FROM TestTable where ID='" + id + "'";
dr = cdtd.SelectReader(sqlstr);
dr.Read();
byte[] byear = (byte[])dr["Content"];
Response.ContentType = dr["Content"].ToString();
Response.BinaryWrite(byear);
}
catch (Exception ex)
{
throw ex;
}
}
|
|
|
|