|
I have a problem in ASP.NET platform using C#.NET using Oracle 9i backend.
I failed to edit password type data in ASP.NET form using Oracle 9i backend. password type string is neither viewed nor edited. that is not retrived but remains blank if control type password nor text.
-NS
|
|
|
|
|
i want to run an window application exe from asp.net file but when i click to start exe the browser hangs out and did not show any thing.
the os is windows server 2008 and iis 7
the impersonation is set to that of administrator
the code is
<br />
string exepath =Server.MapPath("~") + "\\folder\\file.exe";<br />
string args2 = "";<br />
<br />
System.Diagnostics.Process.Start(exepath, args2);
can any one help me why this happen.
amirzada
|
|
|
|
|
aamirzada wrote: string exepath =Server.MapPath("~") + "\\folder\\file.exe";
string args2 = "";
System.Diagnostics.Process.Start(exepath, args2);
This will execute exe only on Server not in Client System . Where do you want to execute the exe ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
yea i want to run the exe on server. but it does not execute it
i don't know why.
amirzada
|
|
|
|
|
IIRC, you cannot launch an interactive (visible) process from ASP.NET. It'll run (provided the ASP.NET account has enough permissions for the application to execute), but you won't see anything.
|
|
|
|
|
thanx a lot it is running in invisable mode. thank you for your help
amirzada
|
|
|
|
|
|
sashidhar wrote: .i have put that exe in web application root , in that exe i will use Application.ExecutablePath as follows.
String actualfilePath = Application.ExecutablePath; //MessageBox.Show(actualfilePath); String filePath = actualfilePath.Substring(0,actualfilePath.LastIndexOf("\\")); StreamWriter swRecord = new StreamWriter(filePath + "\\MyTransaction.tmp", true); swRecord.WriteLine(record);
If possible check with exe source what exactly they are specifiying as filepath?
I didn't get your answer
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
Whats your expectation that you want to see in browser on click from browser button?
Thanks,
Arindam D Tewary
|
|
|
|
|
i want to insert data from exe into database i just want to insert data into database from exe but it nor show any thing the exe from where i don't have any thing every thing is on form load. but it did not insert data into the data base.
thanx for ur help
amirzada
|
|
|
|
|
How to create a site using rss where all the data can display in my site.
eg: using yahoo rss we get the link of all news, when we click on the link we navigate to yahoo site. I want to display the particular news or content in my site itself.
Thankyou,
YPKI
|
|
|
|
|
|
In this example also the detail page is displayed in another site. When i click read more i need to display the full details in my site.
Is it possible?
|
|
|
|
|
Yes. You need to feed all the contain for that and then you can display it on your web site.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
please explain it more or give me a smaple
|
|
|
|
|
hi sir
actually i do not want to add the record from textbox but i want add record from gridview but my gridview is not visible.because there is no record in gridview datasource.is there any tool to add record as we can add from gridview to add footer textbox.
|
|
|
|
|
|
sir actually issue is this suppose i want to add first record to gridview from gridview itself(textboxs in footer row)then gridview is not visible because there is no record.how can we resolve this issue.
|
|
|
|
|
Did you read the first article link that I have provided to you.
Below is the some quoted text from that article,
"The first thing we need to consider here is that if there is no record in the GridView Datasource, it should display a Form to insert records, so we shall use EmptyDataTemplate to render the Insert form. That will look similar to picture below.
GridView with No Record....."
Please read that article.
Thank you !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
sorry sir i got it.thanks
|
|
|
|
|
following is code that i transferred a value to other..
how to transfer multiple values using application..... any sample code plz....
Application["userName"] = txtName.Text;
Response.Redirect("default.aspx");
default.aspx....
if( Application["userName"] != null )
Label3.Text = Application["userName"].ToString();
|
|
|
|
|
There are a number of ways.
for a fewer values, if data is not confidential, I will suggest QueryString.
as a sample:
Response.Redirect("default.aspx?UserName=" + txtName.Text + "&UserType=" + UserType);
If data is huge, use cross page posting.
There are a lot other ways like using session, caching, cookies, storing to database, etc...
all of them is used in their respective scenario.
Hope this will help. For details, just google about state management in asp.net.
Thanks,
|
|
|
|
|
You can simply pass this value using query string. You do not need to store it inside Application Variable.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
if it is through query string the entire data can be viewed in address bar.
the data is confidential so im trying with application and sessions..
im unable to get to transfer multiple values.
for one value its working... how to transfer multiple values....
Session["username"] = dr["username"];
Response.Redirect("default.aspx");
next page page load event
if(Session["username"]!=null)
TextBox1.Text = Session["username"].ToString();
|
|
|
|
|
Hello Friends,
I've to remove scrolling from a body tag of web page.
I'm using following line of code but that's not working in IE 7 but working in Firefox and Chrome
document.body.style.overflow="hidden";
|
|
|
|