|
Open a secondary window with the contents you wish to print formatted appropriately. Hint: use css with media type #print
only two letters away from being an asset
|
|
|
|
|
can u explain how can i implement that
|
|
|
|
|
can i use "page setup" and "print preview" funtionalities of the browser?
how??
|
|
|
|
|
Hi Guys,
I have 5 listbox controls which I populated from the database tables. I tried it using the wizard. For all 5 listboxes and a single Repeater I used a SQL DataSourse Object and mapped this sqldatasource to the repeater and then all the listboxes to the sql datasource and it worked. Now what I want to implement is to select values from all 5 listboxes and a textbox and to display in the repeater. The all 5 listbox values can be displayed in the repeater but I don't know how can I implement the textbox. For textbox I can enter values such as year i.e 2006 etc?. I also have a submit Button. I have set the Autopostback for all listboxes to false now because I want to select values from the listboxes and a textbox and want to display the information from the underlying database on the Repeater by clicking the Submit. Could you please help me to implement the Submit button for 5 listbox controls and a textbox? Any code examples.
I really appreciate your help.
Thanks
Koonda
|
|
|
|
|
During runtime,how to change the image in every 5 seconds using adrotator in asp.net.
|
|
|
|
|
Hi every body,
Can I customize the paper size and print a crystal report directly by coding. And my client have some printed papers, he needs to print the data at required places only. Like "Name : Code Project" here Name : is laready printed and it has to print CodeProject at specified place exactly.
How can we do it please advice me.Thank you.
Regards,
-- modified at 23:52 Tuesday 23rd January, 2007
-- modified at 23:53 Tuesday 23rd January, 2007
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Short answer is not with ASP.NET
only two letters away from being an asset
|
|
|
|
|
Means I didnt get you. Give me some code snippet or provide some guidance please. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
See if this is more clear; not with ASP.NET
only two letters away from being an asset
|
|
|
|
|
Hi every body,
Can I customize the paper size and print a crystal report directly by coding. And my client have some printed papers, he needs to print the data at required places only. Like "Name : Code Project" here Name : is laready printed and it has to print CodeProject at specified place exactly.
How can we do it please advice me.Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Sir,
I want to refresh only a control such as adrotator control. This control should change its image but the whole page must remain same. Can anybody tell me please. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Have you looked into AJAX methods?
only two letters away from being an asset
|
|
|
|
|
No sir, if you can provide me some help or if possible some code snippet too. Please. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
A larger subject, please do a little research first.
only two letters away from being an asset
|
|
|
|
|
Ok. Thanks any way.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
The solution may not be the best but it would work....
You have to try out using frames concept....
Lets say there is a homepage.aspx
Place your adrotator control in sepearte aspx page i.e.rotator.aspx
Now add a new aspx page like final.aspx and include the two pages as frames.
For that goto the html view of the page and add frameset and align the frame accordingly..
For guidance looking into frameset in www.w3schools.com -> learn html!!!
Gautham
|
|
|
|
|
No, I cant use the frames concept. I already know this. Can I use any other method, within the same page. If you can please give me. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
hi
Can any one please let me know how to sign the cookies secure in ASp.NET 1.1, please reply ASAP, thankx in advance,
|
|
|
|
|
Hi,
I am facing this unique problem which can be explained only with the code below
<code>
protected void grdQueryList_RowCommand(object sender, GridViewCommandEventArgs e)
{
string Sugg_Id;
if (e.CommandName == "View")
{
Sugg_Id = dv.Table.Rows[Convert.ToInt32(e.CommandArgument)][1].ToString();
Response.Redirect("Feedback_Data.aspx?Sugg_Id=" + Sugg_Id);
}
}
protected void grdQueryList_RowDataBound(object sender, GridViewRowEventArgs e)
{
//if (e.Row.RowType == DataControlRowType.DataRow || e.Row.RowType == DataControlRowType.Header)
// {
// e.Row.Cells[1].Visible = false; // Hiding the SUGG ID COLUMN
// }
if (e.Row.RowType == DataControlRowType.DataRow)
{
RowIndex += 1;
e.Row.Cells[0].Text = Convert.ToString(RowIndex);
}
if (e.Row.RowType == DataControlRowType.Header)
{
TableCellCollection cells = e.Row.Cells;
foreach (TableCell cell in cells)
{
if (!(cell.Text.Contains("VIEW") || cell.Text.Contains("SR NO")))
{
cell.Text = Server.HtmlDecode(GenerateScript(cell.Text, grdQueryList));
}
}
}
}
protected void grdQueryList_Sorting(object sender, GridViewSortEventArgs e)
{
string sortExpression = e.SortExpression;
if (GridViewSortDirection == SortDirection.Ascending)
{
GridViewSortDirection = SortDirection.Descending;
RowIndex = 0;
SortGridView(sortExpression, " DESC");
}
else
{
GridViewSortDirection = SortDirection.Ascending;
RowIndex = 0;
SortGridView(sortExpression, " ASC");
}
}
private void SortGridView(string sortExpression, string direction)
{
DataSet objQueriesData;
objQueriesData = BusinessClass.GetQueriesList();
dv = new DataView(objQueriesData.Tables[0]);
if (sortExpression != "" && direction != "")
{
dv.Sort = sortExpression + direction;
}
grdQueryList.DataSource = dv;
grdQueryList.DataBind( );
}
private string GenerateScript(string columnName, GridView gv)
{
string optionalParam = "Sort$" + columnName;
StringBuilder sb = new StringBuilder( );
sb.Append("<a style='color:Black' href=\"");
sb.Append("javascript:");
sb.Append(ClientScript.GetPostBackEventReference
(gv, optionalParam, false));
sb.Append("\">");
sb.Append(columnName);
sb.Append("</a>");
return sb.ToString( );
}
public SortDirection GridViewSortDirection
{
get
{
if (ViewState["sortDirection"] == null)
ViewState["sortDirection"] = SortDirection.Ascending;
return (SortDirection)ViewState["sortDirection"];
}
set
{
ViewState["sortDirection"] = value;
}
}
</code>
Now the problem is that, whenever user sorts data in the grid using Hyperlink Header, the data gets sorted properly, but when a RowCommand is fired, then the e.commandArgument shows 0th row being picked, but the value picked from one of the cells is from some other row instead of Row 0.
How to track or solve this ?
Pls guide
Thanks and best regards
Omkar Ghaisas
|
|
|
|
|
Hi anybody pls help me its very urgent
I am facing a problem while doing commit & roll back in one of my pages. My problem is i have
to upload data from one database(accounts) to another say Gaccounts programmatically.
In my web.config i wrote 2 connections by name con(for database accounts), con1(for
Database-Gaccounts).
Then in my program i am using commit & roll back.
I have to check the code from ledger table (say 0003) with code in accounts table if it exist then i have to check whether that code exits in accounts table of gaccounts database. If it is not there I have to add more value in the code like (0003tvm) and then create a row in accounts table of gaccounts database with this new code. This much am not feeling any problem.
Now I have to update this new code back in accounts table of accounts database. .here the problem comes if roll back happens then also updating of this code take place
Creating complete error .I am giving database details in a class file. In this project I used 2 class files say objdb-representing accounts and objmdb-for gaccounts.
‘This is the code I am using for roll backing
Dim objCon1 As New oleDbConnection(ConfigurationSettings.AppSettings.Get("con1"))
Dim objCmd As New OleDbCommand
Dim objTran As OleDbTransaction
objCon1.Open()
objTran = objCon1.BeginTransaction
objCmd.Connection = objCon1
objCmd.Transaction = objTran
Try
****** I have given the code for updating as *******
'sSQL = " Update accounts set txtmastcode='" & snewcode& "'WHERE txtcode='" & objdr("txtcode") & "'"
ireturn=objdb.executenonquerry(ssql,objdb.opendb)
objTran.Commit()
Catch ex As Exception
objTran.Rollback()
MessageBox.Show("Transaction failed. Contact Administartor")
MessageBox.Show(ex.Message().ToString())
Finally
objCon1.Close()
objCmd.Dispose()
End Try
Please anybody help me , this is very urgent.
-- modified at 13:25 Wednesday 24th January, 2007
|
|
|
|
|
Hi,
I have configured my project in the server.
I am using menus in my project.
I get a java script error as "menu is undefined" in the server.
But locally the same setup is running fine.It doesnt give any error message.
So i found that there is an error in the path where menu is defined.
I hardcoded the path as .It runs fine.But this should be set globally.
If i give globally as <script language="JavaScript" src="../scripts/menu.js">
it doesnt work.
Is there any ways how to specify the path to run the application in the server.If anyone knows reply me as soon as possibe.
Thanks,
Anandhakumar
-- modified at 6:09 Tuesday 23rd January, 2007
|
|
|
|
|
Try:
More Info:
<a href="http://msdn2.microsoft.com/en-us/library/ms178116.aspx">http://msdn2.microsoft.com/en-us/library/ms178116.aspx</a>[<a href="http://msdn2.microsoft.com/en-us/library/ms178116.aspx" target="_blank" title="New Window">^</a>]
<div class="ForumSig">Declan Bright
www.declanbright.com</div>
|
|
|
|
|
Thanks. I tried with the solution u gave, but doesnt seem to work.
Can u give me some other solution.
Thanks,
Anandhakumar
|
|
|
|
|
Hi,
I am using tag in one of my pages to display text entered into a text box. The problem is I don't want horizontal scroll bar. How do I achieve this?
If I am using
style="OVERFLOW: auto;height=150;width=125"
I am getting both the scroll bars. But I want the behaviour similar to wrap text property.
Regards,
Uma
|
|
|
|
|
style attribute overflow: hidden
Keep Smiling !!!
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|