i was triying to call a exe file to convert CAD file to image for using with reporting services.
In a windows forms application, i call the conversion program without program, giving the arguments and the filename, but when i use it in a webservice nothing happens. Only the process is running and reimain here.
This is a extract of my code.
Dim conversionwmf As New Process
Dim archivoubicacion As String = AppDomain.CurrentDomain.SetupInformation.ApplicationBase & "AVI-029P-TB-003.dat"
conversionwmf.StartInfo.UseShellExecute = False
conversionwmf.StartInfo.FileName = AppDomain.CurrentDomain.SetupInformation.ApplicationBase & "convertidor.exe"
conversionwmf.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.SetupInformation.ApplicationBase
conversionwmf.StartInfo.Verb = "/infile " & archivoubicacion & " /outfile nuevo.png"
conversionwmf.StartInfo.ErrorDialog = True
conversionwmf.StartInfo.CreateNoWindow = True
conversionwmf.StartInfo.Arguments = "/infile " & archivoubicacion & " /outfile nuevo.png"
conversion = conversionwmf.Start()
I already change the file permissions in the iis server, but nothings happens, i already try with "call shell" method.
maybe someone have a idea how to do something like this in other way? or .Net webservices not allow to run executables in the server?
+ Since the process outputs a file, so you either add the ASP.NET process identity to the list in the Security tab of the folder containing the output file, or use the web.config file to impersonate an account that has enough permission. For more information, you can see Process and request identity in ASP.NET[^]
In the code below, I display a Name in the left column next to the right column where the doc type in the right column is Typ1. But my real need is to display the name (DataItem.Name) only for the first row and not because it corresponds with doc type Typ1. I've begun to learn a little bit about DataGridItems but need to figure out how to display field values conditioned upon being in a specific row, as in this case, the first row only. Can anyone show me how that would look?
I will also need to know how to display the name (DataItem.Name) in place of "Search Results" between my HTML header tags. how can this be accomplished?
NOTE: All angle brackets substituted out -- "[" & "]" = "<" & ">"
Public Sub dgDoc_onItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) 'Handles dgDoc.ItemDataBound
If e.Item.ItemType = ListItemType.Item OR e.Item.ItemType = ListItemType.AlternatingItem then
If e.Item.ItemIndex = 0 Then
Dim c as Control = e.Item.Cells(0).FindControl("lblCasName")
If Not c Is Nothing Then
DirectCast(c, Label).Visible = True
If e.Item.ItemIndex <> 0 Then
Dim D as Control = e.Item.Cells(0).FindControl("lblCasName")
If Not D Is Nothing Then
DirectCast(D, Label).Visible = False
I have created sessionID for to pass value from one page to another page.
this ID will be used as a parameter in other page for Stored Procedure.
Problem is that, once I navigate from one page ( SessionID is being created here, MyIDsessionID) to the next page which will use MyIDSessionID, it expires even if I am working on the second page.
Session times out even if I am looking or moving mouse and kicks me out of the system( I want to kick user out if session expires when they don’t do any activity for session duration of time in entire web application).
To make it simple, sessionID is created on page1.aspx. when I navigate to page2.aspx and am working on that page, the session should still exist for page1.aspx, but it expires because I was not navigating that page. Any idea, what can I do that will not let it exipire if I am working on whole ASP.net web application.
The session timeout is handled by the server, not the browser, so the only things that affect the session timeout is actions that include the server, e.g. requesting a page from the server.
Moving the mouse, or doing anything at all on a page loaded in the browser doesn't concern the server, so it doesn't affect the session timeout at all.
A session variable is in no way connected to a specific page. It doesn't matter if the session variable is created in page1.aspx or page2.aspx. The session variable is stored in the session, and it is the session that will be timed out, not the session variable. If you request any page from the web application, the session will be renewed, it doesn't matter what page.
To archive this, you have to inject some js code when each datagird item is bound
So, in the Item_Created event handler, put the following code...
In Visual Studio Professional 2005 I have created a test project. I've bound it to an instance of SQL Server 2000 *AND* also SQL Server 2005. When I click the smart tag of my datagrid and configure data source... I define the connection and then on the next tab I click the "Advanced" in order to have it generate all the CRUD for me. No matter what I do and which database I'm connected to 2000/2005 those options are grayed out. I cannot figure out why at all and that's driving me nuts. I'm connecting as sa if that matters.
In the Configure Data Source dialog box (the Configure Select statement step), you can follow the steps:
+ Make sure you tick the check box "Specify column from a table or view"
+ Select a table in the dropdownlist, for example the Products table from the Northwind.
+ Select columns by checking the checkbox.
+ Click Advanced, and the first option should be available.
+ Select the first option, the second option should be avaiable for you.
Well, right now I only have 3. But sometime this week my oldest son (5 years old) will be getting a lego set that can be programmed to do things with Java. Yeah, Java is a bit on the weak side but who cares. Grant will love it.
I just looked at your profile. I see you are from Vietnam. I have to be honest that just blows me away. My father is a Vietnam War veteran and he has some incredible stories. Now some 35+ years later his son is getting help writing software from a Vietnamese programmer. How cool is that?!!! Dunno about you but that's pretty cool to me.
I deeply appreciate the help you've given me so far and I thank you for that! I'm off to bed now but I wish you well until I come calling to the ASP forums again.
What part of Vietnam are you from or currently living in? I someday hope to come there and visit. My dad is not at all bashful about saying that it's the most beautiful place he's ever been. I think he's referring to the Ashua Valley and the areas surrounding it though. That's where he spent most of his time when he was there. He was also along the Mekong Delta to and if memory serves me he also thought it was a beautiful (though quite dangerous at the time) place.
Someday I'd love to go back with him. I think he'd enjoy it.
Wow, I didn't know how to express my feelings when I read your words, however there's one thing that I'm pretty sure that I'm really happy when I know a talented person like you and especially when I know that you are a son of a Vietnam War veteran and a happy father of 3 nice children.
I'm from the Middle of VietNam, but I'm currently living in Ho Chi Minh city. To be honest that this is the first time I heard about the name "Ashua Valley", I also haven't seen the film "Hamburger Valley", so when I asked my dad about this place, he said that it might be Khe Sanh, Quang Tri. This is one of the worst places in the Vietnam War. It's not far from Da Nang, my home town, and I guess that your father may probably know Da Nang. My father is a Veteran of the Vietnamese Army (does it blow you more far way ?), so he knows this place really well and he told me lots of things about this war when I was a child since it had ended before I was born. The Mekong Delta is surely one of the most beautiful places in Viet Nam, I just had a luck when I recently saw an interesting film "Mekong Chronicle" produced by the the HCM City Television Station. I have to admit that it's dangerous, but really really fantastic, one of the cameramen had a narrow escape from death when he was doing his job.
Hope someday your father and you have a chance to come and see my nice country, Viet Nam. Has he come back after the Vietnam War? You might probably know many Vietnam War veterans came back to Viet Nam, and they really had an enjoyable time. We welcome you to Viet Nam, and surely the people in the place when your father was in the war also welcome him and his family here. And I can be a good tour guide when you come to Ho Chi Minh City (or Sai Gon). I wish your father and your family healthy and happy .
Wow! Fantastic! Thanks for taking the time to post your comments.
My father has not been back though he and I both know that many veterans have gone back and loved it. I read a story a few months ago where a couple of American veterans met with a couple of North Vietnamese Army (NVA) veterans. They had a great time talking about the war and apparently they were opposite each other during a few conflicts. I thought it was neat to see that over time they could transition from enemies to acquaintences and share food and memories.
I'd definitely love to see your country. The Ashua Valley is the home of Hamburger Hill as you put it but there are also many other magnificent land-marks there. Someday maybe we'll get a chance to get there. I think it would be great and my dad has expressed a lot of interest in going to. So we'll have to see.