|
i have done this like..
document.getElementById("img_tool").onLoad = setTimeout("imageLoaded()",3000);
function imageLoaded()
{
document.getElementById("img_tool").src="pic/load.gif";
}
but its not working...please help me...
|
|
|
|
|
Neetu Maheshwari wrote: document.getElementById("img_tool").onLoad = setTimeout("imageLoaded()",3000);
If above line is out of function then it will not work.
try with my script
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,whenever I am using update panel,i can not dynamically set focus to the control I want to.Should I use any Java Script?Can anybody help me out???Thanx in advance...
|
|
|
|
|
http://www.velocityreviews.com/forums/t369478-set-focus-to-a-control-inside-a-updatepanel-in-atlas.html
http://forums.asp.net/t/1027015.aspx
|
|
|
|
|
yes dear u can use javascript when u use UpdatePanel
in update panel some time document.getelementById("") is working properly.
U can use the javascript with ClientControl Id.
Simple add attibute in your codebehind file and passes ClientId control to the javascript like below;
.cs
Button1.Attribute.Add("onclick","javascript : return JSscript("+TextBox1.ClientID+");");
on javascripting
function JSscript(ctrlID)
{
ctrlID.focus();
return false;
}
I hope it will work for u ...
|
|
|
|
|
My project will be hosted in net.... Now i create the session for userlogin name.. this seesion create in my system hosting or web hosting..
|
|
|
|
|
nithydurai wrote: this seesion create in my system hosting or web hosting..
What do you mean ? Session will be created on the server where you host application.
|
|
|
|
|
But the session will be created in system not created on the server...
i want to create the session for server help me....
|
|
|
|
|
nithydurai wrote: But the session will be created in system not created on the server...
Session will be on server always. You miss the concepts. Please take a good book and learn.
|
|
|
|
|
This person always posts silly questions.
He needs to learn how asp.net works.
|
|
|
|
|
Session will be created on web server where you have hosted your application
cheers,
Abhijit
|
|
|
|
|
Hi i am sending mail to different ids...,
Everything going on well....,
I am going to make this application to exe and put it in schedular task...,
This things will execute automatically...,
Now my probs is suppose mailserver is down...,
Then it will be probs in mailsend...,
So in that case how to handle the code it mean if the mailserver will down or mail didnt send properly...,
Then it have to be fire again after some minutes or some other condition have to do how to do that?
This is my code:
DirectoryInfo dInfo = new DirectoryInfo(mypath);
DirectoryInfo[] dInfos = dInfo.GetDirectories();
foreach (DirectoryInfo d in dInfos)
{
MailMessage mailMessage = new MailMessage();
MailAttachment attach = null;
mailMessage.From = "Magesh@Test.com";
mailMessage.To = d.Name;
mailMessage.Subject = "Hi";
//mailMessage.Body = "Hi This One Is For Testing
FileInfo[] fInfos = d.GetFiles();
foreach (FileInfo f in fInfos)
{
attach = new MailAttachment(f.FullName);
mailMessage.Attachments.Add(attach);
}
SmtpMail.Send(mailMessage);
mailMessage.To = "";
attach = null;
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
You may use Ping command to check if the mail server is down or not.
Then, depending upon the outcome, you can decide what to do.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
iam having nearly 45000 records in the data base where iam getting these many records into the grid view using the select statement in the oracle query .the problem it is more time consuming .is there is any aleternate solution to get these many or more than these record as fast as possible
|
|
|
|
|
Enable Pagination for the GridView. This would improve the performance of data loading
|
|
|
|
|
hi mr rider to implement this also the data should come fast na .my problem is the data is not getting faster from the data base.
|
|
|
|
|
You can enable pagination in your store procedure instead of code behind side.
Suppose if you want to set PageSize=20,retrive only 20 records from database in one query and get total number of records in other query.
There are many articles availabel.search in google for this.
another way is that, retrive all records when page is loaded,store dataset in cockie and bind gridview and enable pagging.
when page index changed,get back dataset from cockie and bind gridview.No need to retrive records from database again.
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi sir the concept whic u are saying is quite intersting...plz help in this regrds by giving the best site abt paging in the database
|
|
|
|
|
lakshmichawala wrote: hi sir the concept whic u are saying is quite intersting...plz help in this regrds by giving the best site abt paging in the database
Read these two article.
Article 1
Article 2[^]
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: another way is that, retrive all records when page is loaded,store dataset in cockie
Are you kidding ? a dataset which contains 45000 records and keeping it in cookie ! I don't think it is possible.
|
|
|
|
|
R u used Stored Procedure.
if not u might be use StroredProcedure , the command is still same but the stored procedure execute faster then simple command
i hope this will help u....
|
|
|
|
|
Hi
U c try to pageing the data in database it self.
Tanks
Siva
|
|
|
|
|
Hi,
I am using following code to generate report. I am using template for report header.It works fine. I want report should generate on individual sheet for each office. Currently Data of all sheet display on single sheet.
How i will add sheet dynamically for each office.
Private Sub CreateConsolidatedXLSheet(ByVal RptDate As String, ByVal endtime As String, ByVal conDate As String, ByRef ConsRptDS As DataSet)
Dim rpttype As String = "SummaryRpt"
Response.ClearContent()
'Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ".xls")
Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ".xls")
Response.ContentType = "application/vnd.ms-excel"
Dim headerfile As String = Server.MapPath("Reports\Header_" + rpttype + ".html")
Dim hreader As System.IO.StreamReader = New System.IO.StreamReader(headerfile)
Dim headerdata As String = hreader.ReadToEnd()
hreader.Close()
Dim username As String = TTUser.GetDisplayNameFromDB(context.User.Identity.Name)
headerdata = headerdata.Replace("##curdate##", Format(CDate(RptDate), "MMMM-dd,yyyy"))
Response.Write(headerdata)
Dim drow As DataRow
Dim dcolum As DataColumn
Dim numcols As New ArrayList()
Dim slno As Int16 = 1
Dim LRow As String = ConsRptDS.Tables(0).Rows.Count.ToString
For Each drow In ConsRptDS.Tables(0).Rows
Response.Write("<tr>")
Dim colix As Int16
For colix = 0 To drow.ItemArray.Length - 1
Dim strnum As String = ""
If colix = 0 Then
Response.Write("<td x:str>")
Response.Write(drow(colix)) 'tz.GetPST(drow(colix)))
Response.Write("</td>")
Else
Response.Write("<td x:num >")
Response.Write(drow(colix))
Response.Write("</td>")
End If
Next
Next
Response.End()
End Sub
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
This is the sample to create differenct sheets in same excel sheet
try this
Microsoft.Office.Interop.Excel.Application _excel;
Microsoft.Office.Interop.Excel._Workbook _wrkBk;
Microsoft.Office.Interop.Excel._Worksheet _excelSheet;
Microsoft.Office.Interop.Excel.Range _oRng;
//create an object og Excel Application.
_excel = new Microsoft.Office.Interop.Excel.Application();
_excel.Visible = false;
//Get a new workbook.
_wrkBk = (Microsoft.Office.Interop.Excel._Workbook)(_excel.Workbooks.Add(Missing.Value));
_excelSheet = (Microsoft.Office.Interop.Excel._Worksheet)_wrkBk.ActiveSheet;
Microsoft.Office.Interop.Excel._Worksheet _tempSheet = (Microsoft.Office.Interop.Excel.Worksheet)_wrkBk.Worksheets["Sheet1"];
int _defaultSheetCount = _wrkBk.Worksheets.Count;
for (int j = 0; j < dt.Rows.Count; j++)
{
if ((j + 1) <= _defaultSheetCount)
{
_excelSheet = (Microsoft.Office.Interop.Excel.Worksheet)_wrkBk.Worksheets["Sheet" + (j + 1)];
}
else
{
_excelSheet = (Microsoft.Office.Interop.Excel._Worksheet)_wrkBk.Sheets.Add(Type.Missing, _tempSheet, Type.Missing, Type.Missing);
}
_tempSheet = _excelSheet;
//write the data in the predefined format to the Excel Sheet.
_excelSheet.Cells[1, 3] = "test";
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi,
how to divide each row of table in 48 cells Dynamically ?
Give me hint or example related to use of table.
thanks in advance
Rameez
|
|
|
|