|
i had created a crystal report and it is displayed in a crystal reportviewer control.
problem is whenever i click any links in the report,including drilldown in the reports,the report is not getting displayed,plz help me regarding this
|
|
|
|
|
Hi,
Please let me know if u hv got the answer
Thanks.
g
|
|
|
|
|
Hi i am comparing datatables with each other...,
My code look like this:
for (int i = 0; i < DS.Tables.Count-1; i++)
{
foreach (DataRow dr1 in DS.Tables[i].Rows)
{
foreach (DataRow dr2 in DS.Tables[i + 1].Rows)
{
if (dr1["MID"].ToString() == dr2["MID"].ToString())
{
Some methods
}
else
{
Some methods
}
}
}
}
for (int j = DS.Tables.Count - 1; j < DS.Tables.Count; j++)
{
if (!Directory.Exists(_path + "\\" + DS.Tables[j].Rows[0][1].ToString() + @"\"))
{
Some methods
}
}
Everything is going on well...,
But when the datatable is empty...,
In that period i am getting in that last for loop (j) there i am getting error as "Index Out Of Range Exception was unhandled"
How to solve this...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Put an if condition before for loop ...
if(DS.Tables.Count >=1)
{
--Your exising code here
for (int j = DS.Tables.Count - 1; j < DS.Tables.Count; j++)
{
if (!Directory.Exists(_path + "\\" + DS.Tables[j].Rows[0][1].ToString() + @"\"))
.. .. ..
}
}
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi guys..
How to Maintain Values in Multiple PostBacks without using session, cache, ViewState, cookie, Application. We need to maintain server memory.
If there is any way to achiev this?
Thnaks in advance...
praveen....
Praveen Kumar.R
|
|
|
|
|
|
Why dont you just clear the sessions after a certain tome therefore saving server memory.
|
|
|
|
|
Hi..
Thanks for ur reply..
I am using a web service project so in that huge data is comming and iam binding this in the datalist which has a custom paging for that we need maintain the datalist item in the session and we are clearing the session. so iam taking from the session for next use, and right now the site was some what fast, but if we a huge user i might think that site will slow. is it right or there is any other way?
Thanks in advance
praveen.
Praveen Kumar.R
|
|
|
|
|
Hi,
I am developing an application which has a GridView.
Inside the GridView I have 17 ItemTemplates. Each ItemTemplate has a DropDown, so I have 17 Dropdowns in each row of the gridview.
When I bind the data page is taking 50 sec to 1 min to load for 150 rows, but when I change a value in any one of the dropdown and click on Save the page hangs. System resources go upto 100% and nothing happens.
I think this problem is due to ViewState.
Can anyone please help me out how to overcome this issue... It's urgent.
Thanks in Advance,
Kalyan
|
|
|
|
|
If you dont want to store your viewstate you can disable it inpage level. So that operations will be faster.
EnableViewState="False" to the @Page directive
Thanks,
Arindam D Tewary
|
|
|
|
|
No I cannot make EnableViewState="False" since I require the dropdown selected values for Saving the data back to database.
If I make EnableViewState="False" I need to bind the grid everytime in order to get the dropdown values.
|
|
|
|
|
hi all,
How i set the table header cells value dynamicllay based upon start_cell_number value and end_cell_number value . I mean time range values from 9:00AM to 11:00AM with interval of 30 minutes .
Any help is highly appericaiated
Regards
rameez
|
|
|
|
|
I did get it clearly .. do you need to change contents of table header cell value depending upon time interval(value changes after each 30 minutes elapsed)?
Thanks,
Arindam D Tewary
|
|
|
|
|
Thanks Arindam D Tewary for reply
Actullay i have to add time range values to table header cells from 8:00AM to 11:AM with interval of 15 minutes
like
8:00AM 8:15AM 8:30AM 8:45AM 9:00AM and so on .up to 11:00AM to each table header cell Dynamically or during run time .
Regards
thnks in advance
Rameez
|
|
|
|
|
Hi i have a folder its name is EMail Send, in that folder contained multiple folders and each folder having list of files...,
How to get the Email Send Folders Contained folders names and each folder contained file names?
It mean i want all sub directories names and each sub directory contained files path
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
modified on Wednesday, July 23, 2008 1:51 AM
|
|
|
|
|
New one wrote: It mean i want all sub directories names and each sub directory contained files path
Try this code.
DirectoryInfo dInfo = new DirectoryInfo(Server.MapPath("SendEmailFolder"));
DirectoryInfo[] dInfos = dInfo.GetDirectories();
foreach (DirectoryInfo d in dInfos)
{
FileInfo[] fInfos = d.GetFiles();
foreach (FileInfo f in fInfos)
{
}
}
regard
khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Ya for getting the files path its ok...,
But for subdirectories i need only the directory name...,
But there also i am getting the path of the directory...,
I modified that "d.fullname" as "d.name"...,
Eventhough its giving path of the subdirectory
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
New one wrote: But for subdirectories i need only the directory name...,
You can get it this way
Path.GetDirectoryName(d.FullName);
Regard
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
No still i am getting path also...,
this is the code:
DirectoryInfo dInfo = new DirectoryInfo(_path + "//");
DirectoryInfo[] dInfos = dInfo.GetDirectories();
foreach (DirectoryInfo d in dInfos)
{
label1.Text += Path.GetDirectoryName(d.FullName);
FileInfo[] fInfos = d.GetFiles();
foreach (FileInfo f in fInfos)
{
label2.Text += f.FullName;
}
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
This seems a duplicate thread going on !!!
Check the below thread "Different address mail sending at a time ..........."
Thanks,
Arindam D Tewary
|
|
|
|
|
Hey.
Use d.Name. it returns directory name only
label1.Text +=d.Name;
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks u imran for ur reply:
Thank u,
Its not problem in that...,
Its problem in that given path...,
Actually i given the path of teh directory like this:
string _path = "C:\\Inetpub\\wwwroot\\TimeSheet Email Shedular\\Email Send";
DirectoryInfo dInfo = new DirectoryInfo(_path +"\\");
In that time its give probs:
So i directly given the path in that directory:
DirectoryInfo dInfo = new DirectoryInfo("C:\\Inetpub\\wwwroot\\TimeSheet Email Shedular\\Email Send\\");// (Server.MapPath("SendEmailFolder"));
Now its working
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Problem statement :
I have a project which has 3 separate websites,which lies under the same domain name say http://www.xyz.com.
1-I need to design a single signon mechanism which will authenticate the user during the first time itself.
2-if a user types say http://abc.xyz.com, after authentication should directly go to http://abc.xyz.com.(Ex : mail.google goes directly to gmail)
|
|
|
|
|
Hi guys yesterday i posted...,
I want to attach multiple files and have to send emails to different different "To Address"...,
Some guys replied for that sending email is easy go through google...,
Ya i too know there is lot of articles are there to send email...,
My problem is totally diffrent...,Its not problem in sending email...,
Its problem in i want to put the directory name in "To Address"...,
And its contained files have to be attachments of that To address...,
Like this all the folders have to come
finally it have to send...,
Its the problem
Eg:
If i have 3 folders Like:
new@yahoo.com, man@rediff.com, mick@gmail.com
Each folder having multiple files...,
Now the folder name have to come as to address:
Example new@yahoo.com and its contained filders have to send that mailid...,
man@rediff.com and its contained folders have to send this mailid
Like this mick also...,
This alll the things ahev to send at a time
Give me some ideas abt this...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Ok
Suppose you have a directory named 'MailsToSend'.
This sub directory contains folders like " new@yahoo.com, man@rediff.com, mick@gmail.com ".
Using following code you can read the directories.
<br />
Dim MyDir As DirectoryInfo = New DirectoryInfo("C:\MailsToSend")<br />
Dim SubDirs() As DirectoryInfo = myDir.GetDirectories()<br />
<br />
For count As Integer = 0 To Mydirs.Length - 1<br />
Response.Write(Mydirs(count).Name)'contains email address<br />
Dim fileInfos() As FileInfo=Mydirs(count).GetFiles()<br />
for fileCount as Integer = 0 To fileInfos.Length - 1<br />
Response.Write(fileInfos(fileCount).FullName)'Contains file to attach<br />
Next<br />
Next<br />
Hope this helps you
|
|
|
|