|
need help in crystal report.....,
take sample like this....,
In table i have collections of students marks based on studentid....,
i displayed based on the studentid his grandtotal and some other calculations in my form,
Now what are the output i am getting in my form,those things i want to display in crystal report also...,
how to pass thos evalues to my crystal report.....
plz help me...
Magi
|
|
|
|
|
search crystalreport push method in code project. you will get solution
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I have a Webform Containing Two Radio buttons with GroupName and a Grid Containing Check boxes.If I select Header Check Box in the Grid Radio Buton2
is also Checked.If I Uncheck the Header Check Box then both the Radio Buttons are Unchecked.
I Used following Java Script code to Check Checkboxes in the Grid.
function select_deselectAll (chkVal, idVal)
{
var frm=document.forms[0];
for (i=0; i< (frm.length); i++) {
if (idVal.indexOf ('SelectAll') != -1)
{
if(chkVal == true)
{
frm.elements[i].checked = true;
}
else
{
frm.elements[i].checked = false;
}
}
else if (idVal.indexOf ('SelectOne') != -1)
{
if(frm.elements[i].checked == false)
{
frm.elements[1].checked = false;
}
}
}
if There are no Radio buttons it is working fine .I cannot find the solution.
Please anybody help me.
Regards
Narendra Mohan
|
|
|
|
|
here u are not checking whether the element is radio or checkbox.
so u have to check that...
if (frm.elements[i].type == "checkbox")
frm.elements[1].checked = false;
Thanks,
Sun Rays
|
|
|
|
|
Dear Sir,
Thank you Very much for your valuable reply
Thanks and regards
Narendra Mohan
|
|
|
|
|
hi all,
Iam new to ajax, I want sample code for scenario like this.
i have to dropdown controls,
first is populate with contries, if i select a contry in first dropdown i need to populate related states of particuler contry,
pls help me
\
thanks N Advance,
|
|
|
|
|
Have you had a look at www.asp.net there are good videos and ajax toolkit samples.
|
|
|
|
|
Hi am using DetailsView and ObjectDataSource to insert records in database.
detailsview contains dropdown,texbox and Listbox controls.. I selected multiple items from Listbox and now if I click on Insert button multiple records has to be inserted in database. Is this possible...? can u send me the code how can I approach? am using asp.net 2.0 and C3
|
|
|
|
|
here u are not checking whether the element is radio or checkbox.
so u have to check that...
if (frm.elements[i].type == "checkbox")
frm.elements[1].checked = false;
Thanks,
Sun Rays
|
|
|
|
|
Very Thank full for your help
Thank Thank Thank
Sunil Tvl
|
|
|
|
|
I'm curious. Why did you delete the original question?
|
|
|
|
|
Respected Gurus
How to get the value of a hidden server control on client side.
I mean i have a
control.
I m setting its value on the page_load event of my web page.
I want its value in one of my javascript function.
How to do that.
My code is
function SetInitialFocus()
{
var chk=document.forms[0].getElementById('ChkNewEdit').value;
if (chk="new")
document.forms[0].getElementById('txtName').focus();
else
document.forms[0].getElementById('txtContactPerson').focus();
}
<asp:textbox id="txtName" runat="server">
<asp:textbox id="txtContactPerson" runat="server">
Server side code is:---------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
if some condition then
ChkNewEdit.value="Edit"
else
ChkNewEdit.value="New"
end sub
Thanx in advance...
|
|
|
|
|
MissionSuccess wrote:
here u are calling Java Script function on body load.. always client side function will excecute then server side. so before page load u are trying to get value from Java Script so nothing is there,
To solve this u have to call java script function after setting hidden's value at server side.
Thanks,
Sun Rays
|
|
|
|
|
there may be two possible problem
If the HiddenControl is part of some usercontrol i mean am ascx then you need to get it ClientID.This is because ASP.NET change the ID of control that have a
runat="server" . you can see the ID of your control by viewing the Source of the page.check that the ID of your Hidden control in page source is "ChkNewEdit" or
some thing like "ctl_100_serer_xxx" .
2 you r calling the function on page load. but at that time the control that you r accessing in the function have not been created yet. you should register your script tag at the end
as
---
---
var chk=document.forms[0].getElementById('ChkNewEdit').value;
if (chk="new")
document.forms[0].getElementById('txtName').focus();
else
document.forms[0].getElementById('txtContactPerson').focus();
instead of writing function just paste your function source code in script tag
don't call the function at page load . it will call automatically when the page is rendered.
try this it will work
best luck
Faiq Afridi
|
|
|
|
|
hi
i have problem in asp.net application i.e, i taken one drop down in that taken languages like english,spanish,portchugal like that and also taken text area ,application is when i select one language,that language can written in text area
for this what can i do plz help me
|
|
|
|
|
I want to create a table using java script, The user should enter the number of rows to be created in the txtTable when the user clicks, create table button, the it should create the table on the form(using java script)or any language.
oga m
|
|
|
|
|
Try with this Javascript
<br />
var theTable = gocument.getElementById('tableId');<br />
for( var x = 0; x < theTable.tHead.rows.length; x++ ) {<br />
var y = document.createElement('td');<br />
y.appendChild(document.createTextNode('Thead cell text'));<br />
theTable.tHead.rows[x].appendChild(y);<br />
}<br />
for( var z = 0; z < theTable.tBodies.length; z++ ) {<br />
for( var x = 0; x < theTable.tBodies[z].rows.length; x++ ) {<br />
var y = document.createElement('td');<br />
y.appendChild(document.createTextNode('Tbody cell text'));<br />
theTable.tBodies[z].rows[x].appendChild(y);<br />
}<br />
}<br />
for( var x = 0; x < theTable.tFoot.rows.length; x++ ) {<br />
var y = document.createElement('td');<br />
y.appendChild(document.createTextNode('Tfoot cell text'));<br />
theTable.tFoot.rows[x].appendChild(y);<br />
}<br />
Regards,
Satips.
|
|
|
|
|
<asp:CommandField ShowSelectButton="True" />
the above is my code for displaying the button Select
i would like to change it to an image button any ideas how to do that
|
|
|
|
|
add following properties into ur existing tag
<<asp:commandfield buttontype="Image" selectimageurl="~/images/Edit.gif" selecttext="Edit" showselectbutton="True"> >
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
|
Hi All,
I am using crystal report in ASP.NET 2.0 and I want to show a report which has many columns and it doesn't fit in one report,so I need to use sub report.Can anyone please tell me how do I start??Do I have to create 2 reports one is main and other sub???
Thanks in advance.....
|
|
|
|
|
Hi am using DetailsView and ObjectDataSource to insert records in database.
detailsview contains dropdown,texbox and Listbox controls.. I selected multiple items from Listbox and now if I click on Insert button multiple records has to be inserted in database. Is this possible...? can u send me the code how can I approach? pls see the following code..
while trying to put code for listbox it is inserting last record only...
// Code behind file
protected void DVDoctorActivity_ItemInserting(object sender, DetailsViewInsertEventArgs e)
{
if (Page.IsValid)
{
string strDoctor = ((DropDownList)((DetailsView)sender).FindControl("ddlInsDoctor")).SelectedValue;
e.Values["DoctorId"] = strDoctor;
e.Cancel = false;
}
foreach (ListItem listitem in ((ListBox)((DetailsView)sender).FindControl("lbProducts")).Items) // it is inserting only one record.. (last selected item)
{
if (listitem.Selected)
{
string strProductId = ((DropDownList)((DetailsView)sender).FindControl("ddlInsDoctor")).SelectedValue;
e.Values["ProductId"] = Convert.ToInt32(strDoctorId);
}
else e.Cancel = true;
}
// aspx file..
<asp:DetailsView ID="DetailsView1" runat="server" SkinID="DetailsView" DataKeyNames="DoctorActivityId"
DataSourceID="DoctorActivityDataSource" AutoGenerateRows="False" OnItemInserting="DVDoctorActivity_ItemInserting">
<Fields>
<asp:TemplateField>
<InsertItemTemplate>
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<table>
<tr>
<td style="width: 113px; height: 21px;">
Doctor </td>
<td style="height: 21px">
<asp:DropDownList ID="ddlInsDoctor" runat="server" DataSourceID="DVDoctorMasterDataSource"
DataTextField="DoctorName" DataValueField="DoctorId">
</asp:DropDownList><asp:ObjectDataSource ID="DVDoctorMasterDataSource" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllDoctors" TypeName="ActNexxt.ActNexxtDataSetTableAdapters.Doctor_MasterTableAdapter">
</asp:ObjectDataSource>
</td>
</tr>
<tr>
<td style="width: 113px">
</td>
<td>
<asp:TextBox ID="txtEdtEmpId" Visible="false" runat="server" Text='<%# Bind("EmployeeId") %>'></asp:TextBox> </td>
</tr>
<tr>
<td>
<asp:ListBox ID="lbProducts" runat="server"></asp:ListBox>
<asp:ObjectDataSource ID="CampaignDrugSource" runat="server"
InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetProductsByCampaignId"
TypeName="ActNexxt.ActNexxtDataSetTableAdapters.Campaign_DrugTableAdapter" >
>/td>
</tr>
</table>
</asp:Panel>
</InsertItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:Button ID="Button1" runat="server" CommandName="Update" Text="Update" SkinID="Button" />
<asp:Button ID="Button2" runat="server" CommandName="Cancel" Text="Cancel" SkinID="Button"
CausesValidation="false" />
</EditItemTemplate>
<InsertItemTemplate>
<asp:Button ID="Button1" runat="server" CommandName="Insert" Text="Insert" SkinID="Button" />
<asp:Button ID="Button2" runat="server" CommandName="Cancel" Text="Cancel" SkinID="Button"
CausesValidation="false" />
</InsertItemTemplate>
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CommandName="New" Text="New" SkinID="Button" />
<asp:Button ID="Button2" runat="server" CommandName="Edit" Text="Edit" SkinID="Button" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Fields>
</asp:DetailsView>
thanks..
|
|
|
|
|
Hi friends,
Please give me some details reg. good book for asp.net for beginners.
Thanks in Advance.
Regards,
Prya
|
|
|
|
|
Wrox Publication books will good.
Regards,
Satips.
|
|
|
|
|
this is the situation.
i use form authentification as below
<authentication mode="Forms">
<forms name=".EHR_COOKIE" loginUrl="/EHR.WebUI/LoginForm.aspx" protection="All" timeout="180" path="/"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
so no one can get through my system without login through LoginForm.aspx.
let's say A person logged in through the LoginForm.aspx and then there is a menu on the top that will popup another browser so that A person can log in with different account.(we need this function because the client required) But as you know if A open a window from the logged in page, it will share sessions even though it looks like A has two different accounts with two diffent browses. The sessions will mix.
Does anybody know how can i separate the two accounts?
I know that it will be totally simple if A person log in and if he wants to log in with different account just click on iexplore icon and log in again. i mean this can be another solution if i can have two form authentification. <-- but i couldn't find the way.
anybody help..please...
-- modified at 21:43 Sunday 1st April, 2007
|
|
|
|