Web Forms :: Run An .exe File Within A Website & Pass Parameters?
Jan 14, 2011
1) I have an .exe program that checks for the current directory and generate two .txt files from a .xml file. It should store the results of the two .txt files back into the same location as the .exe I heard that I should not be able to execute the .exe file within the website ??
2) I also have an .exe that generates a folder browser that I am using to allow my user to store the data the user downloads from the website. I am currently passing the full path name of the folder by storing in in my C: drive, but that may not be possible on a website? How would you pass the full folder path so that I can read it within my website form and store the downloaded data to ???
Currently the folder browser .exe code is also on the c:drive, where do you recomment me to put it to use for the website ???
I am not sure if I have access the a drive (like c:) on a real website.
I need to pass username from one intranet website to another. User logs into one website, if a clicks a link, it should take him to another website, seamlessly i.e. without logging in again.
Both websites would be on the same domain. I do not want to use querystring.
i'm trying to upload files by AjaxFileUpload, i have got it done. But now i need also to know 2 parameters, 1 is given on the URL adreess myPage.aspx?parameter=2...the second is in ViewState.
But on event OnUploadStart or OnUploadComplete...i dont have access to these values event when i tried session.
Instead of specifying 10 parameters in the URL, is there any good alternative way of passing the parameters? And note the new window has to be a popup.
When user selects 10 miles from dropdownlist DDL1 and types AAA20 in textbox1 which is of type text, on button click it has to pull all the columns from database and show results in gridview using sqldatasource store procedure. I'm stuck in server side code..how to pull the data..in store procedure I'm passing two parameters val1 and val2. val1 gets data from DDL1 and val2 gets data when user types in textbox1 and it has to validate the text...see the code below mentioned and tell me how to pass the params and get the data in gridview...
I have big filter coming from database by using storedprocedure. This stored procedure contains about 12 parameters. In asp.net page I select these values and after doing that I want to pass these values to SqlDataSourec which is bound to gridview. How can I pass these values to SqlDataSource, manually in codebehind?
I'll start out by saying that I am kind of new to the Wizard control. What drew me to it, was the fact I didn't need to pass variables between pages with the traditional methods. Now I am faced with a situation where I may have to use those methods.On Step 2, I have a handful of LinkButtons that look similar to this...
[Code]....
I figured I could hide the item in a hidden field control before transfering over to the next page by changing the activestepindex. That's not the case. The first trip through the steps, I never retrieve the value in Step 3 from the hiddenfield. However, if I called boxChanger to get to Step 3, use the previous button (buttons are visible on Step 3) to change index back to Step 2, then called boxChanger again, I see the value called from the first time I called BoxChanger.Is there a way to accomplish this or am I stuck with the old fashioned methods? Hopefully, I am being clear enough with what I need.
this is regarding a tutorial posted here at [URL] , as such this example is working fine, but what if i have a textbox in the page and i want to call the value in the web handler, how can i achieve that?
I am trying to add a hyperlink to the below listview. This hyperlink passes multiple parameters to the next page? I am trying to achieve the below, works with a gridview but not below.
I am creating a grid with a code behind and in the hyper link column I would like to pass some parameters before passing users to a new page. If I just use one parameter, the CustomerID in the dataNavigateUrlFields and dataTextField then the
I need to pass parameters via a gridRowView to a button I have a gridView that currently allows row selection via a radio button What I need to do is based on that selection is pass the parameters to one of 4 button options within the footer. This will then open a new page based on those values. I'd got this working using a hyperLinkButton and querystring but now I'm really struggling with the new requirement "it must be a button" selected this way
Here's my code, if it helps anyone to see it? <asp:GridView ID="gvSavedChanges" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="EmployerIDNo" DataSourceID="dsSavedChanges" ForeColor="#333333" borderColor="Silver" GridLines="None" > <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <Columns>..............
I am trying to enable server side code to check my session varible but my itemcommand is not being executed because my modalpopup is client click.Each template is loading the iframe which is horible performance killer. How do I get it to load the iframe on LinkButton click only once?
I have a page containing a link to to MS Excel spreadsheet (I am able to assume that Excel is available as this is an intranet page). All works fine until I want to pass a parameter into the spreadsheet.
Normally I would do this with /e but this will not work I am starting Excel through a link.
Any ideas how I would pass the parameters into Excel?
(also - there may be multiple requests for the spreadsheet at any time with differing parameters!!)
I used a sub in which need to pass about 15 parameters. How to simplify it? Protected Sub test(ByVal _a As String, ByVal _b As String) //about 15 parameters will pass Dim s As String = "insert into AAA a, b value(" & _a & ", " & _b & ")" End Sub
crystal report has two parameters field, however, i used three method searched, all failed. Error is missing parameter values. sure parameter is passing by query string URL] checked by Label However, do not know why Error is missing parameter values.
Method 1 // First parameter ParameterFieldDefinitions crParameterFieldDefinitions; ParameterFieldDefinition crParameterFieldDefinition; ParameterValues crParameterValues = new ParameterValues(); ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue(); crParameterDiscreteValue.Value = Request.QueryString["ID"]; crParameterFieldDefinitions = objRpt.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions["Cheque_IssueRecord_Secretary_Review_TT_ID"]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); // Second parameter ParameterFieldDefinitions crParameterFieldDefinitions2; ParameterFieldDefinition crParameterFieldDefinition2; ParameterValues crParameterValues2 = new ParameterValues(); ParameterDiscreteValue crParameterDiscreteValue2 = new ParameterDiscreteValue(); crParameterDiscreteValue2.Value = Request.QueryString["tCOMDB"]; crParameterFieldDefinitions2 = objRpt.DataDefinition.ParameterFields; crParameterFieldDefinition2 = crParameterFieldDefinitions2["tCOMDB"]; crParameterValues2 = crParameterFieldDefinition2.CurrentValues; crParameterValues2.Clear(); crParameterValues2.Add(crParameterDiscreteValue2); crParameterFieldDefinition2.ApplyCurrentValues(crParameterValues2); Method 2 //objRpt.SetParameterValue("Cheque_IssueRecord_Secretary_Review_TT_ID", Request.QueryString["ID"]); //objRpt.SetParameterValue("tCOMDB", Request.QueryString["tCOMDB"]); Method 3 var value = new ParameterDiscreteValue(); value.Value = Request.QueryString["ID"]; objRpt.ParameterFields["Cheque_IssueRecord_Secretary_Review_TT_ID"].CurrentValues.Add(value); var value2 = new ParameterDiscreteValue(); value2.Value = Request.QueryString["tCOMDB"]; objRpt.ParameterFields["tCOMDB"].CurrentValues.Add(value2);
This crystal report database use stored procedure, parameter field is automatically added, after added i removed @ character do not know why parameter missing
I am trying a programming example, which I saw in a book, in an attempt to learn ASP.NET and figure out how to pass parameters to a simple query. Here is my HTML:
[Code]....
The page loads but the ListBox does not fill. As a consequence, or maybe as an aside, the button click_event does absolutely nothing. Here is my VB: