|
I have button in footer template
clicking on button while generate the total of grid view rows
now i want to call the button event after grid databound
my code:
Grid view footer template:
<FooterTemplate><asp:Button ID="btnTotal" runat="server" Text="Generate Total" Width="200px" OnClick="GenerateTotal" /></FooterTemplate>
Function:
Protected Sub GenerateTotal(ByVal sender As Object, ByVal e As EventArgs)
// Some Code
End Sub
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Your question is not clear. Can you please ellaborate a little so that we can help you out.
Either you love IT or leave IT...
|
|
|
|
|
I want to control some hardware by internet. In order to do that I want to use ASP.NET and C# language. Suppose I want to turn on a LED which is placed in a PCB board. That PCB board is connected to a computer which has internet connection. From remote distance I will do some thing so that that LED will be turned on. If any body know some things abut the above meter please inform me as soon as possible.
Rashed
|
|
|
|
|
ASP.NET does not do that. To do this inside the browser, you would need an activeX control. Unless the LED is on the server, then it's easy.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
As nicely and truely said by Christian, you have to use activex control with in your asp.net page which itself will take care of the interaction with the hardware. So whatever code you want to write to controll the hardware, have to be written inside the activex control. Your asp.net page will only call the methods that you have defined in the activex control to maintain hardware. This is not an easy job though but there is nothing called impossible. So all the best.
Either you love IT or leave IT...
|
|
|
|
|
Hi,there
Here is my case, we are developing a Web application for a client. By now everything else is fine, except a map issue. What client want is when adding a company record in the system, the company's address needs be typed, but except that, client have offered an image of their city in Photoshop file format. Client want the address can be roughly reflected on the image.
That is they can zoom, pan the image to the location according to the address (address data is not assocated with image in this case, they really just want some simple manipulation), and do some mark on the image and return as a hyperlink something, so next time when they view a company record, the click the link, system can bring the image out and go to the mark which corresponding to the
company's address.
So as you can see, it's not a strict GIS or map application, but it still need lots of image, graphic, map manipulation. I have looked at Google map, Sharpmap, however, given the system budget and timeframe, I don't think they could be applicable in this case.
I'm thinking to get some image or map manipulation library and develop an in-house function for this system, and spend about 1-2 weeks time(although they want it in one week). If anyone who can offer some ideas, advice, suggestions, that'll be greatly
appricated.
Cheers.
|
|
|
|
|
Hi there,
Were you able to solve your problem? I have something similar to solve and would appreciate some advice.
Thanks in advance.
|
|
|
|
|
Hi, I have an ASP.NET 3.5 Website.
I create a registration form to save my clients' data with subscription date.
if they choose 1 month or any, So their membership will be expired in the next 1 month or any, So their account will be update to Expired Account ( Role ).
Can anyone help!!!
|
|
|
|
|
Do you want to make the account as expired after 1 month if they have chosen subscription for 1 month?
Is "expired" a column is database?
what all roles do you have?
Prince
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
Yes sure, I want the account to be expired base on the subscription they choose, I have Weekly, Monthly and Yearly.
"Expired" is the column in the Table Registration.
I have 3 roles:
- Admin
- User (After They're approved)
- Pending (New user not yet approved)
Thanks in advance for your help.
|
|
|
|
|
Hello, I build an ASP.NET 3.5 Website.
I have a registration form that has an email address field,
I use SQL Server 2005 to storethe Data.
I would like to know how can I validate if the email address is already in use or not instantly during the registration process.
I'm looking forward to hear from you soon.
|
|
|
|
|
execute
select * from tableOfTheTable where EmailId='EmailIdYouAreAboutToSave'
if this query result is 1 row, that means that emailID is already in use and is stored in DB.
Prince
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
|
Hw can i attach an already made database to our project tha is available in Sql management express edition-2005 ?
|
|
|
|
|
Have you tried putting the database file to the App_data folder?
|
|
|
|
|
I need ajax implementation for tab strip control in my asp.net web page. the first tab contains some input controls and only when the user enters values into the first tab then the next tab to be active and so on. the user should be able to edit fields in previous tabs but should not be able to go to next tab before completing the current tab.
|
|
|
|
|
are you using atlas tab strip control..
If so, then just place it inside one UpdatePanel... thats all.
|
|
|
|
|
You have to use JavaScript validation in order to check whether the required data is filled or not and make the next tab active.
Either you love IT or leave IT...
|
|
|
|
|
Hi, after some hours dealing with the above error message, i am afradid need help on this:
i have a DetailsView control, inside it i have some templatefields, one of them is a radiobutton list.
When, in Edit mode, the user changes the radiobutton seleccion (onselectedindexchanged = "RefreshDropDownList"), i need to recharge another templatefield wich is a DropDownList, with new values on it. The DropDownList is bounded to some ObjectDataSource and my purpose is "swap" to anthoer ObjectDataSource when the user changes the RadioButtonList selection.
The method RefreshDropDownList is:
protected void RefreshDropDownList(object sender, EventArgs e)
{
if (((RadioButtonList)sender).SelectedValue == "1")
{
if (odsAreasCU.SelectMethod != "GetAreasPubProyecto")
{
DropDownList ddl = ((DropDownList)dvCU.FindControl("DropDownList20"));
ddl.DataSourceID = odsNewObjetDataSource.ID;
ddl.DataTextField = "Name";
ddl.DataValueField = "CodObj";
ddl.DataBind();
}
}
else
{
}
}
When it passes over "ddl.DataBind();" line, a green arrow exception arises with the following message:
'DropDownList20 has a SelectedValue which is invalid because it does not exist in the list of items'
DropDownList20 is the one on this aspx page code:
<asp:TemplateField HeaderText="Area" SortExpression="Area">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList20" runat="server" DataSourceID="odsAreasCU"
DataTextField="Nombre" DataValueField="CodObj" ForeColor="#006666"
SelectedValue= '<%#DataBinder.Eval(Container.DataItem,"Area")%>'
Width="200px" ondatabinding="DropDownList20_DataBinding"
ondatabound="DropDownList20_DataBound"
onselectedindexchanged="DropDownList20_SelectedIndexChanged1"
AppendDataBoundItems="True">
<asp:ListItem Value="0">(sin área específica)</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
Any help or suggestion on this would be appreciated, i am really dissapointed with this bug.
Greetings.
|
|
|
|
|
Hi,
If you are trying to use the selectedvalue proeprty and the selected value does not fall with in the available value colections in the drop-downlist then you will get this error. It is preferred to insert the value in the drop-down list if it does not exist. Just check the sample code:
if (DropDownList1.Items.FindByValue("Gurgaon") != null)
{
DropDownList1.Items.FindByValue("Gurgaon").Selected = true;
}
else
{
DropDownList1.Items.Add(new ListItem("Gurgaon"));
}
I hope it helps.
Either you love IT or leave IT...
|
|
|
|
|
Thanks saanj, i'll try that.
|
|
|
|
|
hi,
im new using asp bt i have been using c# for bout 3 years but ive neither come across this problem before and need help.
ive current got a set of public variables declared and i have a start timer button that changes a public bool to true and and data to a string, ive added break points and the data is added when the button is pressed but when press the stop button the variables have changed to null it could be something basic but i cant seem to get my head round it so would appraciate any help on the matter
thanks marc
|
|
|
|
|
Can you post your code? That will help determine the problem.
|
|
|
|
|
i want to scan photo and documents according to diff-2 id and it save in folder.plz give me advice.
thanks and regards
vivek kumar
modified on Monday, May 4, 2009 1:44 AM
|
|
|
|
|
Hi,
This is Ravi Shankar. I had some problem with Globalization and Localization.
I have created one web form with name BillPrint.aspx and it contains labels like BillNo, ConnectionId and so on. I want to globalize the label’s text. I have created resource files for this with names BillPrintResources.en-US.resx, BillPrintResources.hi-IN.resx, BillPrintResources.resx. Which contains BillNumber as Name and “BillNo.” as value and similarly for ConnectionId as Name and “Conn ID” as value.
I had specified BillPrintResources for Classkey and BillNumber for ResourceKey in Expression property of BillNo label. Similarly for BillPrintResources for Classkey and ConnectionId for ResourceKey in Expression property of ConnectionId label.
After this I am building the website which it is showing some errors like
1.The resource object with key 'BillNumber' was not found.
2.The resource object with key 'ConnectionId' was not found.
Like this how many variables I had used the errors are coming for all.
Please help me in finding the solution.
Thanks & Regards
Ravi Shankar.
|
|
|
|