|
can you give me a quick sample?
|
|
|
|
|
You simply use the ADO.NET's basic objects like SqlCommand, SqlConnection ... to execute a simple query like "Select count(*) from Products where ProductName=@ProductName" in the event handler and check the return value. Since this sample code can be easily found out there, so I may refer you to a link instead:
Obtaining a Single Value from a Database [^]
|
|
|
|
|
|
Hi Friends ,
I have problem regarding creation bin folder in ASP.NET 2.0 which includes .DLL and assemblies for deploying the website.Whenever , I am compiling and running my asp.net 2.0 application , it won't create bin folder in the application.And I want to create bin folder automatically , as like in .NET versio 1.1
Please, suggest me that , what's the solution of this problem?
Thanking You,
In Advance.
param
|
|
|
|
|
In ASP.NET 2.0,by Default, the Compiled Version of your Web Application (.dll file) is not stored in the 'Bin' directory of ur Application Folder like Older Version.
Also it will not stroed in the same name of your Web Application. It may be stored in some Temporary Folder, with a Random name ( xxxx.dll).
Regards,
Jay
|
|
|
|
|
The compiling model is changed in the ASP.NET 2.0, and like someone said your source files by default are dynamically compiled to the assemblies stored in the temp folder of your ASP.NET application. I may refer you to a couple of links that can give you more information.
ASP.NET Web Site Precompilation [^]
Codebehind and Compilation in ASP.NET 2.0[^]
Also, if you want to have the output assembly of the project generated in the Bin folder, you may use the Web Project 2005[^]
|
|
|
|
|
Hi Param,
Below two articles will help you. You need to understand this two Articles.
http://msdn2.microsoft.com/en-us/library/ms229863.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet_merge_exe.asp
Regards,
Jay
|
|
|
|
|
I want to run a vb script at a specified time. (this time comes from one of the table in the database)
i am using sql server.
How can i do this?
thanks
|
|
|
|
|
Hi there,
With the client side script, you may have a look at some methods setTimeout/setInterval to create a timer at the client side, these methods takes the time period (milisenconds) as the method paremeter, but I can guess that you are able to populate this value based on the time coming from DB.
|
|
|
|
|
Hi All,
I create 2 controls dynamically - one textbox and one "Add" button.These controls are present in 2 different groups.If I click the button it should add a textbox to the textbox group. I need to create the textboxes based on the button click.
Any help would be appreciated.
vijaya
|
|
|
|
|
When you dynamically add the "Add" button, you can also add the event handler for the Click event to add the textbox at runtime. And you need to be careful when working with the dynamic controls as there two common mistakes that you may see: the dynamic controls get lost and the postback events do not execute.
How to: Add Controls to an ASP.NET Web Page Programmatically [^]
|
|
|
|
|
Hi
Thanks for Reply.
Actually my problem is Iam building two groups A and B.Each group contains one textbox and add button(all are builded dynamically).If i click on add button it should add textboxes to respective group.For add button click iam adding attributes and incrementing value from javascript using a hidden variable.
btnAddRange.Attributes.Add("onclick","javascript:submitVIN('"+GroupId+"')") this is code for click on a button.How can we identify click is performed on respective group.
Regards,
Vijaya
vijaya
|
|
|
|
|
Do you mean you want to determine which button is firing the event? and you might want to do that at the client side or the server side?
|
|
|
|
|
Hi,
Thanks for your reply.
Sorry for delay in reply.
My Problem was solved.
I have one more Problem regarding this dynamic creation of controls.
Delete option is there to delete respective row which is added by click on the add button.Iam using Request.form to read the values and save in to database.After clicking delete button ,Iam deleting that row value from database but page was loading values using request.form(control) but i need controls should load values from database.
Pls Help me,My project was in delivery stage pls reply me as soon as possible.And Thanks for help.
Thanks & Regards,
Vijaya.K
vijaya
|
|
|
|
|
Not sure about what your code is doing, but IMO you can simply refresh the control with the data in DB after you delete the row. In other words, you can have put your code somewhere else to set the control value, and this basically happens after the row is deleted.
|
|
|
|
|
Hi friends,
I saved some text with html tags, now i want to show that text in a grid column,
it shows those all teags too, is there any possibility that I could show html formatted text in the gridview coloumn?
any help will be appriciated.
Naveed Kamboh
|
|
|
|
|
I have sorted that
i used property htmlencode=false and it worked for me.
thanks
-- modified at 16:44 Monday 4th September, 2006
Naveed Kamboh
|
|
|
|
|
hi all
i hv created a dynamic page in which the controls are created according to data from a database these controls are radiobutton and checkbutton lists. i want to validate the user to check a fixed number of boxes in each list and also assure that the user checked a radiobutton in each RadioButtonList
abdelhameed81
|
|
|
|
|
+ To validate the number of boxes that the user checks you can use a custom validator or implement it on your own script.
+ To validate if the user checks a radiobutton in the list, you simply add the RequireFieldValidator to validate the RadioButtonList control.
|
|
|
|
|
the controls are creaeted in run time how do i access them
abdelhameed81
|
|
|
|
|
|
hi
This is a problem i came across while developing a project. My problem is to get the total of a datagrid column in a data grid control in ASP.Net with VB code.
If anybody can help me with finding this piece of code i ll be much greatfull
|
|
|
|
|
There are a couple of ways to do this common thing:
+ You can populate the total value based on the datasource bound to the control.
+ You can populate this value using the ItemDataBound event of the datagrid control.
You can find the sample code from the site[^].
|
|
|
|
|
Sir,
I am deleting the record in the datagrid but before deleting the row i want to send the request like 'are u sure u want to delete the record' .I mean i want two buttons Ok and cancel if ok is pressed it deletes the row otherwise row will not be deleted and for that i don't want to use another web form and want java script tools .Can i use these things in vb code behind file . Please help how to solve this problem.
Thanks
|
|
|
|
|
Hi,
IMO,You just simply use the js statement window.confirm(...) ...
<< >>
|
|
|
|