|
Thanx
if u can share any example/ more detail then it will more helpful to me, Coz i didn't used cache yet
|
|
|
|
|
hi,
i'm getting problem with session ,while upload excell file and this data import into sql data base ,it works fine untill importing data ,when import finished session state 'null' ,and my session time =20min.could you please find me solution.
|
|
|
|
|
what IOC and why it is require and how it help us. if possible then please discuss the idea in detail.
Thanks in advance
tbhattacharjee
|
|
|
|
|
Hi,
I would suggest that you read the following article written by Martin Fowler:
http://martinfowler.com/articles/injection.html[^]
This article explains in great detail the idea behind IOC and Dependency Injection. The code examples are written in Java, but that should not be the problem.
Regards
Sebastian
|
|
|
|
|
suppose when user click on link or button for downloading file in asp.net then download start. so i just want to know how to detect that the file as been downloaded in client machine. is it possible to track from server side code. because i want to develop a file download section from where user at a time can download only single file. so in this case when file download start i will just capture client ip and store it in session and when file download will be over then i will clear that session and in this way my purpose will be solved and restric user to downlolad multiple file. so please me with sample code and idea.
Thanks in advance
tbhattacharjee
|
|
|
|
|
|
i am working with google chart and it is good and giving me the output but the problem is in case of barchart my label is getting verlap because my label text is lengthy. i hard that label text orientation can be change and i read google chart doc but not found any sample code from there for rotation of my label. so if anyone knows what i need to write to rotate label in case google bar chart please share the knowledge.
Thanks in advance
tbhattacharjee
|
|
|
|
|
Dear All,
I am using Asp.Net with C# in windows application (VS 2005). I create one test.bat file, which is executed by my application. I am using "System.Diagnostics.Process.Start" to execute test.bat. How can I get the result, that the bat file has been executed and closed.
Because, test.bat file is taking few seconds to run and it creates a table with data and gets closed. My application is gets the data from the table, which is done by test.bat and proceed further. I can have good result, if I debug the application. I can not have a good result at run mode.
I want to proceed my application, after executed the test.bat file. How can I identify that test.bat file has been executed fully?. What I need to do?. I have to handle threading? Is there any other way? Thanks in adv.
Balasubramanian K.
|
|
|
|
|
Hi,
the Process-class itself contains a method WaitForExit. Using this method the calling application will wait for the process to be finished. To get the output of your process you can redirect the stream by utilizing the StandardOutput-property.
Take a look into msdn to get further details:
http://msdn.microsoft.com/de-de/library/system.diagnostics.process.aspx[^]
Regards
Sebastian
|
|
|
|
|
Yes. It is working fine now. Thanks
Balasubramanian K.
|
|
|
|
|
Hello,
I wrote this code
string root = Server.MapPath("~/");
or
string root = Server.MapPath("/Project");
but it does not work
what's the problem?
|
|
|
|
|
Use
string root = Server.MapPath("~");
|
|
|
|
|
mghiassi wrote: but it does not work
what the error you are getting??
|
|
|
|
|
I can't access to this address if root string
http://localhost/project/picture/aks-13
but I recive this string
E:\mgh\AmirKabir\ASP.NET\Project\Picture\aks-13
|
|
|
|
|
Error Desc.:
The Type initialize for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
Previously I have used crystal report with VS2005 in Win XP, there is no problem but when I am using it in Win 7 then it is creating this problem. Please help me.
|
|
|
|
|
Hello everyone,
Basically my task is sorting the gridview manually and I got many solutions for that. But all of them are having the following thing in common.
DataView dv = new DataView(dt);
dv.Sort = sortExpression + direction;
But in my code, I have to bind an IList (collection or generics), and not any dataset, to my gridview. Somehow,I am not able to find the Sort property for an IList.
Could anyone please suggest what can I do about this?Do I have to convert the IList to a daraset?if yes,please tell how?
Thank You.
|
|
|
|
|
|
|
On successful login, how can I make sure the user always goes to dfault.aspx?
Thanks
|
|
|
|
|
solved by DestinationPageUrl
Thanks
|
|
|
|
|
great
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
Hi,
I need to build a ASP.net web page which can be added to any web application to show the helath of the web application.
The Items that it need to check:
1. Is the DB up and running - The DB connection string should be automatically picked from web.config
2. Any web services referenced by that applications are up and running.
3. Check for any DB jobs for that User in DB and get the last run time.
etc...
Any help in this direction is highly appreciated.
Thanking you advance,
Neha
|
|
|
|
|
|
Thanks Vipul for your response.
Actually I am more interested on the generic stuff.
The application which I am working on
1) Should query all the WebSites configured in the IIS of the system where the proposed application is deployed,
2) Read the individual web.config files of thoses applications and get the Connection Strings, Web Refrences etc.
3) Ping the DB / Web Services and show the responses.
Thanks,
Neha
|
|
|
|
|
Hi All,
if (!IsPostBack)
{
if (Session["userId"] == null || Session["SessionId"] == null)
Response.Redirect("~/Login.aspx");
else
{
BindModalities();
UserRole curRole = (UserRole)Convert.ToInt32(Session["roleId"]);
InitializeRoleView(curRole);
if (Session["SelWorklistView"] != null)
InitializeWorklistView();
else
{
if (curRole == UserRole.Admin)
{
Session["SelWorklistView"] = (Int32)Global.WorklistView.ReqPending;
InitializeWorklistView();
}
else
{
Session["SelWorklistView"] = (Int32)Global.WorklistView.Pending;
InitializeWorklistView();
}
}
}
}
and in Row Data Bound Event
This will add silverlight button in a grid.
protected void worklistGridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
RisStudyItem selStudy = e.Row.DataItem as RisStudyItem;
string idealHost = selStudy.Server.HostLocal;
string tempStr = idealHost.Substring(0, idealHost.LastIndexOf('.') + 1);
if (idealHost == null || idealHost == "" || tempStr == null || tempStr == "" || !Request.UserHostAddress.StartsWith(tempStr))
idealHost = selStudy.Server.HostExt;
HtmlGenericControl obj = new HtmlGenericControl("object");
obj.Attributes["data"] = "data:application/x-silverlight-2,";
obj.Attributes["type"] = "application/x-silverlight-2";
obj.Attributes["height"] = "30px";
obj.Attributes["width"] = "130px";
HtmlGenericControl par1 = new HtmlGenericControl("param");
par1.Attributes["name"] = "source";
par1.Attributes["value"] = "../ClientBin/Moksha.Ris.Silverlight.xap";
obj.Controls.Add(par1);
HtmlGenericControl par2 = new HtmlGenericControl("param");
par2.Attributes["name"] = "onError";
par2.Attributes["value"] = "onSilverlightError";
obj.Controls.Add(par2);
HtmlGenericControl par3 = new HtmlGenericControl("param");
par3.Attributes["name"] = "background";
par3.Attributes["value"] = "white";
obj.Controls.Add(par3);
HtmlGenericControl par4 = new HtmlGenericControl("param");
par4.Attributes["name"] = "minRuntimeVersion";
par4.Attributes["value"] = "3.0.40624.0";
obj.Controls.Add(par4);
HtmlGenericControl par5 = new HtmlGenericControl("param");
par5.Attributes["name"] = "autoUpgrade";
par5.Attributes["value"] = "true";
obj.Controls.Add(par5);
HtmlGenericControl par6 = new HtmlGenericControl("param");
par6.Attributes["name"] = "initParams";
par6.Attributes["value"] = "suid=" + selStudy.StudyInstanceUID +
",studyInsts=" + selStudy.NumberOfStudyRelatedInstances +
",idealHost=" + idealHost +
",studyDate=" + selStudy.StudyDate +
",username=" + selStudy.Server.Username +
",password=" + selStudy.Server.Password;
obj.Controls.Add(par6);
e.Row.Cells[14].Controls.Add(obj);
}
}
I have a Radio button in Grid so when i m selecting silverlight control so i need to all thing again.
Thanks and regards,
Amit Patel
|
|
|
|