Tag Archives: vb

Dynamic Array For Indicator

I want to make indicators to check for mandatory fields and i have a problem to make a dynamic one. So i plan to use array and loop it to make dynamic indicators for that purposes. This code is in vbscript.

Difference Between Two Dates

I need to get difference between two dates and display the result in months and years. This should be simple. As i am very familiar with DateDiff function. That’s what i thought at first. But i don’t know why i spend so much time on this problem. I even had to consult with my friend to discuss about the formula. This is what i got.

I have to split the year or else it will round up to the nearest integer. There is also solution that i got from googling but haven’t try it out yet. But i think it is worth to try if you have some time. The solution from Praveen that i got from stackoverflow.

Create Table From Back End

This is how to create table or fill in value from the back end. Call a function with a server tag from the front end.

Then use this function at back end to get value and fill it in the table created.

Get All Value From Checked Listing (VBScript)

This is how to get all checked value of checkbox in listing. The code is in VBScript.

The code below is to combine all value and separated by “, ”

Send Value To Gridview From Stored Procedure

This is how to pass value run by SQL with parameter in stored procedure to gridview.

In .VB:

In ASP: