|
add a template field and assign it to command button..!
try this article
GridView all in one[^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I am working on custom control. I am creating databound control. I have one property name RowDataSource that
accept DataRowCollection as data source and I bind control on OnDataBinding event. I have another property
name RowItem.
My code looks like this.
public DataRowCollection RowDataSource
{
get
{
if (ViewState["rowDataSource"] == null)
{
ViewState["rowDataSource"] = null;
}
return (DataRowCollection)ViewState["rowDataSource"];
}
set
{
if (value == null)
{
throw new ArgumentException("unvalid data source.", this.ID);
}
ViewState["rowDataSource"] = value;
}
}
public RowCollections ExelRows
{
get
{
if (rCollection == null)
{
rCollection = new RowCollections();
}
return rCollection;
}
}
OnDataBinding event code
protected override void OnDataBinding(EventArgs e)
{
base.OnDataBinding(e);
if (RowDataSource != null)
{
foreach (DataRow dr in RowDataSource)
{
RowItem item = new RowItem();
item.Text = dr[rTitle].ToString();
this.ExelRows.Add(item);
}
}
}
CreateChildControls method to render control
protected override void CreateChildControls()
{
if (ExelRows.Count > 0)
{
}
}
Now, I am binding this control with DataRowCollection and It works file. I have one button in this control and
I am raising bubble event when button is clicked.
My problem is that when I click on button then CreateChildControls method is called first before OnDataBinding event.
so I am getting ExelRows.Count = 0.
so what I have to do to getting all rows on every bubble event of control.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
1. Google Maps, Street View API
2. Interfacing with it and determining location using IP addresses and not Latt, Longg to provide location based services, providing street views, providing driving directions
how can i do this?
Thanks.
PUJA FALDU
|
|
|
|
|
pujafaldu wrote: location using IP addresses
first convert the ip address into location and pass the location using latitude ang longitude to the google maps
For canverting IP address
first google hits[^]
First google hits[^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thanks for help.
next i want to know how can i get latitude ang longitude of given address.
Thanks.
PUJA FALDU
|
|
|
|
|
First try to implement that ..!
Once You got the address its matter of time You can get the lats and long.
With the help of google interface You can get ..!
all the best
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
<html>
<head><title>SALARY DETAILS</title>
</head>
<body>
<form name=frm action="sal.aspx">
Emplyee Name:<input type=text name=txtname><br>
HRA :<input type=text name=txthra><br>
DA :<input type=text name=txtda><br>
TA :<input type=text name=txtta><br>
PF :<input type=text name=txtpf><br>
Salary :<input type=text name=txtpf><br>
<input type=button name=btn value=Calculte onclick=checks()>
<script language="javascript">
function checks()
{
if(document.frm.txthra.value>100)
{
alert("HRA CANT Be More Than 100");
document.frm.txthra.focus();
}
else if(document.frm.txtda.value>100)
{
alert("DA CANT Be More Than 100");
document.frm.txtda.focus();
}
else if(document.frm.txtta.value>100)
{
alert("TA CANT Be More Than 100");
document.frm.txtta.focus();
}
else if(document.frm.txtpf.value>100)
{
alert("PF CANT Be More Than 100");
document.frm.txtpf.focus();
}
else
{
document.frm.submit();
}
}
</scrip></form>
</body>
</html>
getting error at <input type=button name=btn value=Calculte onclick=checks()>
|
|
|
|
|
assign id also .... like this
HRA :<input type=text name="txthra" id="txthra" ><br>
|
|
|
|
|
Hi,
I prepared a bookmark related exe, now I want to add it to mozilla fire fox and internet explorer. Is it possible to add our application to browser through programmatic way. If you have any references please send me.....
Thanks In advance........
sampath-padamatinti
|
|
|
|
|
after user login how we get their details in detail view component. like in login form if we insert abc as username and some password..after login how i can display the information of abc in details view component... there details are saved in database
|
|
|
|
|
plz send me the code in c#
|
|
|
|
|
get the MemberShip object and you'll get all the related info and feed to the controls manually.
|
|
|
|
|
If you're using the Microsoft login control, have you bothered to read the documentation ? I believe there's a control whose only purpose is to show those details when someone is logged in.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
tell me the code in asp.net
|
|
|
|
|
No - try to do your own work and ask specific questions when you can show that you've put some effort in instead of asking us to write the code for you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
i have made asp based web page using C# in which there is a login form and it is running well But I want to implement another thing in it . I want to have "remember me" component in it.Plz send me the code for it in C#
.
Thankx
|
|
|
|
|
If the Check box is enabled you can work with this Code
you can try FormsAuthenticationTicket and add it to Cookie.
|
|
|
|
|
how could it do this? I mean don't know how to put the code of "formsAuthentication" and add it to the cookie..that's why i have asked to do so...
|
|
|
|
|
are you using FormAuthentication as first place? If so, you don't have to add code to the cookie, add Authentication Ticket to the cookie.
|
|
|
|
|
|
store the credentials in a Cookie if 'Remember Me' is selected and later retrieve data from the cookie to pre-populate the fields.
|
|
|
|
|
I would like to get the local printers on the client computer in order for the client to pick from in a dropdown box and then print to. Is this possible?
|
|
|
|
|
You can just invoke window.print in the client browser. It open up the print dialog box where there is already one dropdown box to choose printers.
Certain things are not accessible in browser due to security reasons. Direct access to printer is not possible.
|
|
|
|
|
Hi,
I am importing data to sqlserver2005 from a csv file. But the folder where i upload the file before import is unaccessible even though i have given full rights to everyone accessing this folder or even the root folder of the application for testing purposes. I am getting error 'invalid File' (though the file is valid csv) on my system where Norton and Kaspersky are installed but when i tryed to import data from same file using other system it did not give error and file was uploaded successfully and then imported to database. I have restarted the deployment server. Should i restart iis admin servies or what should i do. I have given full rights on the folder where i m uploading the file before importing it to database.
Thanks,
Safvi
|
|
|
|