|
hi,
How to Change picture in Ad rotator control using specfic time interval without postback..?
thanx & regards
Ramu Annamalai
|
|
|
|
|
Don't Cross Post in Multiple Forums.
SSK.
|
|
|
|
|
hi vir ssk,
thanks for the advice, its my first time in this site,
some dilemas over my mind. here after i'll go clean..!
Cheers
Ramu Annamalai
|
|
|
|
|
hello ,
The date validation should be done using javascript only.
ok byee
|
|
|
|
|
Below i have Answered you.
BTW why you create a new thread for the same.
SSK.
|
|
|
|
|
hello everyone,
I have small doubt regarding DateValidation.I have a textbox and button in a webform.aspx page .When i enter a date and click on button the corresponding date validations should be done and dateformat should be in dd/mm/yyyy format only.Plz help in write it is very urgent for me,...
ok byeee
Murali
Murali
|
|
|
|
|
|
ballameharmurali wrote: dateformat should be in dd/mm/yyyy
You can use this regular expression to validate this
\b[0-9]{2}/[0-9]{2}/[0-9]{4}\b
|
|
|
|
|
he asked for Javascript not the Regular expression.
SSK.
|
|
|
|
|
Vri SSK wrote: he asked for Javascript not the Regular expression.
Is it., After getting regular expression, still he don't know how to integrate that with javascript,. it's shame on him. He can integrate this expression with javascript and that will give the result what he expected.
|
|
|
|
|
Let him try, we have helped him in all aspects.still no reply from him.
SSK.
|
|
|
|
|
Try this code.... i hope it helps
VB.
If IsDate(Text1.Text) then
Text1.Text = Format(Text1.text, "dd/mm/yyyy")
Else
MsgBox ("Wrong Date"), vbCritical
Text1.SetFocus
End If
|
|
|
|
|
HI murali
U can do that easily by using compareValidator.
Set belove property of compareValidator.
Type="Date"
ValueToCompare="01/01/1901"
ControlToValidate="TextBox1"
ErrorMessage="Enter valid date"
SetFocusOnError="True"
Operator="GreaterThanEqual"
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi
I have been trying to open existing excel document from my asp.net page, it does not give me an error but it does not open the excel file.
Any help i will appreciate that
Thanks
if isTrue Then call Stop() Else call Start()
|
|
|
|
|
What Code you have written for Opening the Excel document.
How can we tell without seeing the code what is wrong in it?
SSK.
|
|
|
|
|
Sorry for that i'm using VB
here is my code
Dim ExcelObj As Excel.Application
Dim workbook As Excel.Workbook
ExcelObj = New Excel.Application
workbook = ExcelObj.Workbooks.Open(strFullFileName, 0, True, 5, "", "", True, Excel.XlPlatform.xlWindows, ",", False, False, 0, True)
'workbook = ExcelObj.Workbooks.Open(strFullFileName)
workbook.Application.Visible = True
workbook.Close()
workbook = Nothing
ExcelObj.Quit()
ExcelObj = Nothing
|
|
|
|
|
Try with the Code as Sandeep Said.
SSK.
|
|
|
|
|
Hi,
First add reference of Excel and try to open the document.
Example:
<code>Excel.ApplicationClass _appClass = new ApplicationClass();
Excel.Workbook _workbook = null;
Excel.Worksheet _worksheet = null;
try
{
_workbook = _appClass.Workbooks.Open(
excelSheetNamePath,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing);
_worksheet = (Excel.Worksheet)_workbook.Worksheets[1];</code>
Regards,
Sandeep Kumar.V
|
|
|
|
|
I have tried that but it didn't work. I have tried a different way...
I pass a variable to HTML Hidden tag
FileName.Value = "C:\MyExcel.csv"
Then here is A tag
GetFile
This work like fine, but it display the excel file on a html page.
Here is what i'm doing.
I have an aspx page with a button and ExportToExcel icon. When clicking on the button is should create a table using a DataTable which is returned from Database Class and create and save a csv file to C:\. On click on Export to Excel icon, it should open the saved file.
Is there an easier way to do this.
|
|
|
|
|
hello,
i am struggling to hold a pair of values in a dropdownlist
i.e CountryID and CountryName i want to take CountryID when selectedIndexChanged Event raises...
I had done the same thing in desktop app. by overriding .Value() and .ToString Method..
I dont want to write Multiple queries at every time because it is an overhead in web apps.
anyone who can help me out please.....
i am expecting advice, code snippet or files...so that i can go ahead...
nobz
|
|
|
|
|
Pls be clear in your question.
SSK.
|
|
|
|
|
let me explain...........
public object Value;
public object Value1;
public string Description;
public ValueDescriptionPair(object NewValue, string NewDescription)
{
Value = NewValue;
Description = NewDescription;
}
public ValueDescriptionPair(object NewValue, object newvalue1, string NewDescription)
{
Value = NewValue;
Value1 = newvalue1;
Description = NewDescription;
}
public override string ToString()
{
return Description;
}
----------------------------------------------------------------------
i created one value pair like this......
for that i will get a set of values which overides .Value method
----------------------------------------------------------------------
ddlCountryService.Items.Add(Convert.ToString(new NRIValueDescriptionPair.ValueDescriptionPair(dtr[0],dtr["fld_CountryId"], Convert.ToString(dtr["fld_CountryName"]))));
-----------------------------------------------------------------------
Here i could able to set the values also......
-----------------------------------------------------------------------
obj.CountryId= Convert.ToString(ddlCountryService.SelectedItem.Value);
--------------------------------------------------------------------------
but....
i couldnt able to get the value by .Value method...
it is not overriding... i did this nicely in windows apps.....dont know y its not happenning in web apps
----------------------------------------------------------------------------
hope it will be clear for you now.....
help me....
|
|
|
|
|
i am creating a usercontrol that contains 2 textboxes and a button.textboxes are web controls .i want to check when i click in button whether textboxes contains value or not? is it possible to write a javascript function inside a usercontrol?
i tried
if(document.getElementById('Name').value=="")
{
alert("Name can't be empty");
}
but it's not working?
with regards,
Anu
|
|
|
|
|
anujose wrote: if(document.getElementById('Name').value=="")
You will get error on this line, if control Name is a server control. This happens because ASP.NET appends user control name with the server side controls to make control id unique. So you need to view source of the page and find out how your control is rendered. Usually it will be like usercontrolname_controlname . Find this name and use that in javascript.
|
|
|
|
|
anujose wrote: 'Name'
'<%=Name.ClientID%>'
|
|
|
|