|
Hi,
Add the login userID's to a "loggedin" database table,
and check whether the current userID used to login
exists in the table.
For that to work, however, you need to insure that users
are recorded as logged out when they exit the application.
You can do that by checking if their sessions have expired,
and deleting the userID record from the table.
Linking the SessionID to the userID should be enough.
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
hello friends
Now i work in a form that iwant to need a help from u.
how to insert more than one value from checkboxlist in a form
the value is in integer
I was done to store in varchar
for example:
string t;
foreach(listitem li in check.items)
{
if(li.selected)
{
t+=",";
}
t+=li.value;
}
now i inserted t it will be stored in varchar
when i give integer it was to be stored only one value from the checkboxlist.
so i want to insert more than one value from the checkboxlist as integer value
so please help me
avinesh
junior s/w developer
viswam infotech
|
|
|
|
|
I have to give option to include youtube videos into my website.How can i do this?
|
|
|
|
|
Like This[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
reminston wrote: chris r u asking me
We are simply proud of you.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i'm vb.net developer but don't have any idea about asp.net can any of you help by giving source code and guide me
thanx in advance
|
|
|
|
|
reminston wrote: i'm vb.net developer but don't have any idea about asp.net
I am a Horse Rider but don't have an idea weather horse is a machine or furniture
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
We cant give you source code but we can advise you to start with a beginner article of how asp.net works. Why not try out Google, lots of articles there.
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
currently i m using asp.net with c# (.net 2005, 2.0 framework)
where can i find the visual studio .net command prompt?
i execute the following line in my command prompt
%comspec% /k "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
The message displayed that it has executed. but after that what can i do? i would like to open visual studio .net command prompt and work on it? how to proceed? guide me..
thanks in advance - KARAN
|
|
|
|
|
GotO
Start>> Microsoft Visual Studio 2005 >> Visual Studio Tools >> Visual Studio 2005 Command Prompt
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
thanks Mr.Deepak the cool. but i have missed the start menu link for Visual studio...... how i can fetch it from visual studio folder? where it is?
|
|
|
|
|
does anyone know why this submit script isnt functioning
protected void btnOK_Click(object sender, EventArgs e)
{
string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>";
if (!Page.ClientScript.IsClientScriptBlockRegistered scriptString))
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString);
}
}
I want to submit the main form once i click the ok button, im runing this script from a popup window.
|
|
|
|
|
did you used ajax on your application ?
if you are using Ajax then used ScriptManager insted of Page.Client
|
|
|
|
|
im using ajax fro rad controls, thanks let me try that.
|
|
|
|
|
would u know the correct synthax for the script manager, im writing it like this but im getting a few error messages
ScriptManager.RegisterClientScriptBlock(frmMessages.aspx,scriptString))
{
ScriptManager.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString)
|
|
|
|
|
Sorry abt the last item from myself, but i have it this way,
string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>";
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "submitScript", scriptString, true);
but still not working.
|
|
|
|
|
hi All
i have developed an asp.net application where iam using english and arabic names in the data base(varchar(200) for english and nvarchar(200) for arabic). If i insert/update a record it shows correctly in the database table.
My issue is from old data that is shown as inverted question marks ¿¿ ¿¿¿¿ ¿¿¿. I have used SSIS to migrate data and enabled unicode while migration from oracle.
My current collation is SQL_Latin1_General_CP1_CI_AS
How can i over come this issue and thanks in advance!!!!!!!!!!!1
|
|
|
|
|
Choose one of the unicode collations. The currently selected collation does not support the unicode characterset.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
hi all, i want to customize the repeator control with paging,with previous and next button added at footer of repeator, what i want to when repeator control added, then it should add the add the "next", previous button at footer of repeator by default.
i have tried paging using pagedatasource class, it works, and added implemented the itemplate for template with previous next button as well.
here is samples of code
WebCustomControl1 : Repeater, ITemplate
over ride oninit and do this
protected override void OnInit(EventArgs e) {
this.FooterTemplate = new WebCustomControl1();
base.OnInit(e); }
implemented interface
public void InstantiateIn(Control container)
{ code for previous and next buttons}.
now the issue is instead of appearing at the bottom previous next buttons appears at the top of repeator,and i want them to appear at the bottom in footer section of template,all doing in custom control.
previous"
Regards.
Tasleem Arif
|
|
|
|
|
instead of footer you can place 2 link buttons bellow repeater
the code goes like this
<br />
<br />
<footertemplate><br />
<br />
</footertemplate><br />
<br />
<br />
<br />
<tr><br />
<td><br />
<input type="hidden" id="PageSize" value="5" runat="server" /><br />
</td><br />
<td> <br />
<input type="hidden" id="CurrentPage" value="1" runat="server" /><br />
</td><br />
<td><br />
<input type="hidden" id="TotalSize" runat="server" /><br />
</td> <br />
</tr><br />
<tr><br />
<td align="center" style="font-weight: bold; border-top-width: thick; border-left-width: thick; border-bottom-width: thick; border-right-width: thick;" colspan="3"><br />
<asp:linkbutton id="Prev" text="<< Previous" visible="false" forecolor="blue" onclick="Page_Repeater" runat="server" xmlns:asp="#unknown" /> <br />
<asp:linkbutton id="Next" text="Next >>" visible="false" forecolor="blue" onclick="Page_Repeater" runat="server" xmlns:asp="#unknown" /><br />
</td><br />
</tr><br />
<br />
public void Repeaterfill()
{
SqlDataAdapter da = new SqlDataAdapter("select a.Complaint_id,a.Emp_id,a.Decription,"
+ " substring(Convert(varchar,a.Problem_date),0,12) as Problem_date,substring(Convert(varchar,b.Resolved_Date),0,12) as Resolved_Date"
+ " from Hr_complaint_detail a,hr_complaint_status b where a.sys_complaint_id=b.Complaint_id and b.Resolved_or_not=1 and a.Emp_id="+empid, con);
DataSet ds = new DataSet();
int startRecord = (int.Parse(CurrentPage.Value) - 1) *
int.Parse(PageSize.Value);
da.Fill(ds, startRecord, int.Parse(PageSize.Value), "hr_complaint_status");
Rep_comp_solved.DataSource = ds.Tables["hr_complaint_status"].DefaultView;
Rep_comp_solved.DataBind();
if (ds.Tables["hr_complaint_status"].Rows.Count <= 0)
{
Rep_comp_solved.Visible = false;
s = "No solved Complaints are there";
CreateMessageAlert(this, s);
Prev.Visible = false;
Next.Visible = false;
}
else
{
Prev.Visible = true;
Next.Visible = true;
}
SqlCommand Cmd = new SqlCommand("select count(*) from Hr_complaint_detail a,hr_complaint_status b "
+ " where a.sys_complaint_id=b.Complaint_id and b.Resolved_or_not=1 and a.Emp_id="+empid, con);
con.Open();
TotalSize.Value = Cmd.ExecuteScalar().ToString();
con.Close();
BuildPagers();
}
public void Page_Repeater(object sender, EventArgs e)
{
if (((LinkButton)sender).ID == "Prev")
{
if ((int.Parse(CurrentPage.Value) - 1) >= 0)
{
CurrentPage.Value = (int.Parse(CurrentPage.Value) - 1).ToString();
}
}
else if (((LinkButton)sender).ID == "Next")
{
if ((int.Parse(CurrentPage.Value) * int.Parse(PageSize.Value))< int.Parse(TotalSize.Value))
{
CurrentPage.Value = (int.Parse(CurrentPage.Value) + 1).ToString();
}
}
Repeaterfill();
}
public void BuildPagers()
{
if ((int.Parse(CurrentPage.Value) - 1) <= 0)
{
Prev.Enabled = false;
}
else
{
Prev.Enabled = true;
}
if ((int.Parse(CurrentPage.Value) * int.Parse(PageSize.Value)) >= int.Parse(TotalSize.Value))
{
Next.Enabled = false;
}
else
{
Next.Enabled = true;
}
}
Maniiiiiiiiiiiiiii
|
|
|
|
|
i am making a custom repeator, not using them in webpages
Regards.
Tasleem Arif
|
|
|
|
|
hai,
currently i m using asp.net with c# (.net 2005, 2.0 framework)
i have fetched the value from database and want to show in gridview column wise.. how to do it
sqlda = new System.Data.SqlClient.SqlDataAdapter("select value_tmp from tbl_table1", conn);
sqlda.Fill(ds);
GridView1.DataSource =ds;
GridView1.DataBind();
The above coding will bind the values in row wise... how to do in column wise? help me.....
thanks - KARAN
|
|
|
|
|
So you want to a column for each row? I would not use a gridview for that.
Just use an HTML table. Add a row for each column in your dataset then add a table cell for each row.
I didn't get any requirements for the signature
|
|
|
|