|
Convert those html pages into .aspx pages and reference the proper master page.
|
|
|
|
|
HI friends,
I am using report viewer in my Asp.Net application. In the report viewer loaded,
i got export,refresh,paging,search options .But print option is not showed in the
report. I set "showPrintButton="True"".And Install ActiveX control also.But again
i couldn't get the print icon. I am asking so many forums. But no one give useful
reply. So please give me the solutions. Very urgent.
Reply me as soon as possible.
Hope ur's reply
Thanks
Failing to plan is Planning to fail
Every Successful Person Have A Painful Story
|
|
|
|
|
CrystalReportViewer1.HasPrintButton = true;
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi
Thanks for ur's reply. But i am using sql report viewer.
Not crystal report viewer buddy.
Please give a useful suggestion.
Friendly
Guvera
Every Successful Person Have A Painful Story
|
|
|
|
|
Hi, I have a DropDownList in an EditItemTemplate within the GridView.
Problem is I can't find the control.
In the OnDataBound there is no e.Row.RowType == DataControlRowType.EditIem like in a DataGrid.
And when I try to bind the DataSet in the RowEditing Event the same thing happens.
EG RowEditing
protected void gvRegisters_RowEditing(object sender, GridViewEditEventArgs e)
{
this.gvRegisters.EditIndex = e.NewEditIndex;
this.SetErrorMessage("Record opened for editing", ErrorClass.Info);
DropDownList ddlCompany = ((DropDownList)gvRegisters.Rows[e.NewEditIndex].FindControl("ddlCompany"));
DropDownList ddlBranch = ((DropDownList)gvRegisters.Rows[e.NewEditIndex].FindControl("ddlBranch"));
DropDownList ddlDepartment = ((DropDownList)gvRegisters.Rows[e.NewEditIndex].FindControl("ddlDepartment"));
FillLocationDropDowns(ddlCompany, ddlBranch, ddlDepartment);
}
Got any Ideas???
modified on Thursday, September 4, 2008 2:18 AM
|
|
|
|
|
HI
Mention the cell name or index like this
DropDownList ddlList=(DropDownList)(GridView1.Rows[e.NewEditIndex].Cells[0].FindControl(""));
R.Palanivel 10:01 4 Jan '06
|
|
|
|
|
Affraid not. I even tryed looping through each Cell, it always returns null.
|
|
|
|
|
try to set runat="server" property else
send me you gridview's HTML code.
R.Palanivel 10:01 4 Jan '06
|
|
|
|
|
<pre>
<edititemtemplate>
<table style="width: 100%">
<tr>
<td>
<asp:dropdownlist id="ddlProfileEdit" runat="server" xmlns:asp="#unknown">
</asp:dropdownlist>
</td>
<td>
<asp:dropdownlist id="ddlCompany" runat="server" xmlns:asp="#unknown">
</asp:dropdownlist>
</td>
<td>
<asp:dropdownlist id="ddlBranch" runat="server" xmlns:asp="#unknown">
</asp:dropdownlist>
</td>
<td>
<asp:dropdownlist id="ddlDepartment" runat="server" xmlns:asp="#unknown">
</asp:dropdownlist>
</td>
</tr>
</table>
</edititemtemplate></pre>
|
|
|
|
|
Hi
the problem is your drop downl list not loaded please check viewsouce.
your c# code write. you have modify your Gridview HTML code.
Thanks & Regards
R.Palanivel 10:01 4 Jan '06
|
|
|
|
|
|
I am pretty new at web development, and have not had the chance to do this before. I need to find out how to change the image in the image column on a datagrid, when the mouse is dragged over a specific image. Can anyone help please?
|
|
|
|
|
This will give you a start. It changed the rows background onmouseover attribute.
protected void gvAdverts_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='gray'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;");
}
}
|
|
|
|
|
Hi..
I used embedded object to play video something like this..
<object ID="Player" CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width="425" height="350">
<param name="movie" />
<param name="wmode" value="transparent" />
<param name="autostart" value="true" />
<embed src="<%=str%>" type="application/x-shockwave-flash"
wmode="transparent" width="425" height="350"/></object>
Now can someone tell me how to use embedded object in a similar way to play mp3. Any help would be appreciated. Thankyou in advance.
|
|
|
|
|
Embedd windows media player and you can play an mp3
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi.. I did dat. Got my playlist bt now how to get length of mp3 so dat i can play another song wen the 1st one ends??
|
|
|
|
|
How to find the gridview header control id using javascript?,
It mean i have checkbox in my griview header template...,
I want to uncheck the checkbox
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi
you can find any control in javascript by the follwing code snippet
document.documentElement.getElementsByTagName("input").count
....
.....
write one for loop and search for the checkbox control.
R.Palanivel 10:01 4 Jan '06
|
|
|
|
|
hi guys
I am using master page and content page in my application
i want to execute some code on load of content page
code is below
Type type = GetType();
const string scriptName = "alertPopup";
if (!ClientScript.IsStartupScriptRegistered(type, scriptName))
{
ClientScript.RegisterStartupScript(type, scriptName, "javascript:window.history.forward(-1);", true);
}
this code is running properly but when i am using ajax tool kit then this code is not working
what is the problem any one give me solution plz
krishna veer singh
|
|
|
|
|
Doing this sort of history stuff is almost always a nightmare. What are you doing it for ? You know people can turn it off, right ?
Have you run the code in firefox with firebug and set breakpoints to see if your code is called, and if it's even there ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
then what will be alternative solution for that
plz suggest me
krishna veer singh
|
|
|
|
|
There is absolutely no failsafe way to render a page and force it to go to the prior page, if you do it on the client side. You need to redirect on the server.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
DebugBar for IE may be helpful if you cant get FireBug/FF to work.
|
|
|
|
|
krishnaveer wrote: i am using ajax tool kit then this code is not working
your are using Ajax , so you have to use ScriptManager insted of ClientScript .
krishnaveer wrote: if (!ClientScript.IsStartupScriptRegistered(type, scriptName))
{
ClientScript.RegisterStartupScript(type, scriptName, "javascript:window.history.forward(-1);", true);
}
use ScriptManager insted of ClientScript and RegisterStartupScriptBlock
It will Work !!!
|
|
|
|
|
Hi guys i am using checkbox in gridview header...,
I followed this url code [^]
Its working fine,
Now i have two grids in same page...,
When ever i select first grid header checkbox the second grid header and its checkboxes have to uncheck...,
How to do that...,
It mean at a time i have to select only one grid view checkbox header only...,
Plz help me...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|