|
You use Dll for that Name of Dll is Microsoft.ApplicationBlocks.Data.dll
you can easily get data access from database using this DLL refrence
|
|
|
|
|
hello dabhi naresh,
Thank you for the Reply.
regard,
vaishali Terse.
|
|
|
|
|
Can you send me the exact Link for this Microsoft.ApplicationBlocks.Data.dll. & plz Tell me whether it is working perfectly fine.
|
|
|
|
|
|
Hello all,
I have used panel around GridView in my application so as to display scrollbars in GridView.
Problem is when my GridView has few records, it doesn't need those scrollbars but they are still displayed.
What can i do so that scrollbars don't display when GridView don't have many records?
Thanks,
Nagendra.
|
|
|
|
|
try setting ScrollBars="Auto" for Panel.
|
|
|
|
|
Hey thanks man, that was so dumb of me.
|
|
|
|
|
Hey Put your grid in div tag..this may help you..
|
|
|
|
|
Will it show scrollbars around Grid?
|
|
|
|
|
|
hii...
how can i get loginname control value. plz guide.
does it have any text or value property.
thnks in advance...
|
|
|
|
|
Try this Page.User.Identity.Name.
|
|
|
|
|
thanks it worked....
|
|
|
|
|
Dim tbUser As TextBox = Login1.FindControl("UserName")
Dim tbPassword As TextBox = Login1.FindControl("Password")
You should be able to extrapolate what you want from the above code snippet
|
|
|
|
|
i have used sessions in my application
I have a problem loggingout of application
when i press back button(in browser) the pages are reappearing
i want to stop this
is there any code
please help me............urgent
thanks in advance
|
|
|
|
|
if u r using a link button jst redirect to the page on which u want to go...i didnt got u exactly...
|
|
|
|
|
yes, i know that
but i want to clear the history
so that logout action would be succesful
|
|
|
|
|
if you want to clear the history you can use history.forward(); in your java script
|
|
|
|
|
If u r logging out properly then even if u can see pages by pressing back button, u won't be able to access it. Means u can't click any button or like that, it'll again ask for Login.
|
|
|
|
|
I have a Grid view using ObjectDataSource. I add the values of a column and display it in a label in DataBound event. when i move to next page the value in label should change but its showing the values of first page only.
Any help will be appreciated!
Thanks in advance
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
I think you haven't considered the page number while assigning value in row data bound so that you are asssigning value to label from the same object.Can you check that?
|
|
|
|
|
When i click on Next Page, GridView RowDataBound event and Databound event will be called up. Label is getting right value but when it displays, it displays the previous value. Dono know howz it happening.
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
You have to post your code for us to know...
|
|
|
|
|
protected void objCardFeesReport_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
try
{
if (e.Exception != null)
{
e.ExceptionHandled = true;
}
Int32 totalSearchRows = 0;
if (e.ReturnValue.GetType() == typeof(System.Int32))
totalSearchRows = (Int32)e.ReturnValue;
lblSummary.Text = "Total Records Found :" + " " + Convert.ToString(totalSearchRows);
if (e.ReturnValue.GetType() == typeof(System.Data.DataSet))
{
DataSet ds = (DataSet)e.ReturnValue;
if (ds.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
String feeID = ds.Tables[0].Rows[i]["TRANTYPEID"].ToString();
Decimal feeAmount = Convert.ToDecimal(ds.Tables[0].Rows[i]["TRANSACTIONAMOUNT"]);
if (feeID == "7")
{
totNewCardFee = totNewCardFee + feeAmount;
}
else if (feeID == "8")
{
totAdditionalFee = totAdditionalFee + feeAmount;
}
else if (feeID == "163")
{
totTxnFee = totTxnFee + feeAmount;
}
else if (feeID == "21")
{
totActFee = totActFee + feeAmount;
}
else if (feeID == "165")
{
totAnnualFee = totAnnualFee + feeAmount;
}
else if (feeID == "12")
{
totAuthFee = totAuthFee + feeAmount;
}
else if (feeID == "25")
{
totInactFee = totInactFee + feeAmount;
}
else if (feeID == "24")
{
totCardShipFee = totCardShipFee + feeAmount;
}
else if (feeID == "9")
{
totReplCardFee = totReplCardFee + feeAmount;
}
else if (feeID == "23")
{
totStmntFee = totStmntFee + feeAmount;
}
}
lblTotalFee.Text = "";
if (totNewCardFee > 0)
{
lblTotalFee.Text = "Total New Card Fee :" + " " + totNewCardFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totTxnFee > 0)
{
lblTotalFee.Text += "Total Transaction Fee :" + " " + totTxnFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totAdditionalFee > 0)
{
lblTotalFee.Text += "Total Additional Fee :" + " " + totAdditionalFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totAuthFee > 0)
{
lblTotalFee.Text += "Total Authorization Fee :" + " " + totAuthFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totActFee > 0)
{
lblTotalFee.Text += "Total Activation Fee Reversal:" + " " + totActFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totAnnualFee > 0)
{
lblTotalFee.Text += "Total Annual Fee :" + " " + totAnnualFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "/br>";
}
if (totInactFee > 0)
{
lblTotalFee.Text += "Total Card Inactivity Fee:" + " " + totInactFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totCardShipFee > 0)
{
lblTotalFee.Text = "Total Card Shipping Fee:" + " " + totCardShipFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totReplCardFee > 0)
{
lblTotalFee.Text += "Total Replacement Card Fee:" + " " + totReplCardFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
if (totStmntFee > 0)
{
lblTotalFee.Text += "Total Statement Fee Transaction:" + " " + totStmntFee.ToString(CMSAppConstants.Misc.DECIMAL_FORMAT) + "</br>";
}
}
}
}
catch (System.Threading.ThreadAbortException) { }
catch (CMSException cmsEX)
{
LogHandler.LogMessages(cmsEX);
CMSAppUtilities.CMSAppUtilities.ShowErrorMsg(cmsEX, divMsg, lblErrMsg);
}
catch (Exception Ex)
{
CMSException cmsEX = CMSUtility.BuildException(Ex, 100000, Ex.Message);
LogHandler.LogMessages(cmsEX);
CMSAppUtilities.CMSAppUtilities.ShowErrorMsg(cmsEX, divMsg, lblErrMsg);
}
}
protected void gvCardFeesRReport_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
switch (e.CommandName)
{
case "First":
gvCardFeesRReport.PageIndex = 0;
break;
case "Prev":
if (gvCardFeesRReport.PageIndex > 0)
gvCardFeesRReport.PageIndex = gvCardFeesRReport.PageIndex - 1;
break;
case "Next":
if (gvCardFeesRReport.PageIndex < gvCardFeesRReport.PageCount - 1)
gvCardFeesRReport.PageIndex = gvCardFeesRReport.PageIndex + 1;
break;
case "Last":
gvCardFeesRReport.PageIndex = gvCardFeesRReport.PageCount - 1;
break;
}
}
catch (System.Threading.ThreadAbortException)
{
}
catch (CMSException cmsEx)
{
LogHandler.LogMessages(cmsEx);
CMSAppUtilities.CMSAppUtilities.ShowErrorMsg(cmsEx, divMsg, lblErrMsg);
}
catch (Exception ex)
{
CMSException cmsEx = CMSUtility.BuildException(ex, 100000, ex.Message);
LogHandler.LogMessages(cmsEx);
CMSAppUtilities.CMSAppUtilities.ShowErrorMsg(cmsEx, divMsg, lblErrMsg);
}
}
This is my code. When i click on next page right value get stored in label but display the value of previous page. Dono know its happening at the tiem of rendering or what?
I have removed my code from DataBoundEvent to Selected event of ObjectDataSource. Still the problem is same.
Inderjeet Kaur
Sr. Software Engg
modified on Thursday, August 27, 2009 11:04 PM
|
|
|
|
|
Try calling gvCardFeesRReport.DataBind() after setting the Page Index property of the gridview in your RowCommand event handler.
Do like this:
gvCardFeesRReport.PageIndex = 0;
gvCardFeesRReport.DataBind();
Cheers!
|
|
|
|