I have a view for import batches (headers, not details), which a link to start a new import. When the user clicks that link, I want to invoke my Import action method. Inside that standard, synchronous action method, I want to start an asynchronous task, and then redirect back to another view. That view will monitor the progress of the async task with ajax calls and update the view so the user can follow the progress.
Everything I can find goes into too much complexity with async action methods etc. which is overkill for me in the prototyping phase.
Suggestions and critique of what I want to do will be most welcome.
i am trying to install vsn server 2.5.9 from the link http://www.visualsvn.com/visualsvn/download/[^]
while installing vsn server i was asked to choose port no(2 port nos are displayed 443 & 8443).i have chosen 443 port no for https.so what i did is i removed https & selected 443 for visual vsn.now vsn is working fine.the issue i am facing is i am unable to run my application on iis using http.when i run my application i am getting "the address is incorrect,type the correct address".but the address is correct in the address bar.how to overcome this problem?if i want to run my application using https what port n do i have to choose?could anyone help me pls...
Okay so very easy to validate an email in ASP and also very easy to validate that someone enters between 6 and 30 characters but can someone help me in making sure that BOTH are checked in a Custom Validation perhaps. What I have for example:
I am using a CascadingDropdown for three dropdownlists for country,state and district.when the country is selected state will automatically get values,i have a tab index issue if the state value doesnt come on tabpress the control will on the fourth control that is after district dropdown.I had made tab index correctly any way to make it work nicely.If stae comes up with value then no problem.if it doesn't then irritating
I have an asp.net application in which I am using two tables, Table1 and Table1Staging. Staging table data is updated every month.
And both have the same columns except the identity columns for the two tables are different. The reason for that is Table1 is transactional table so that we have to use an Identity columnfor that, here we are doing it with Unique Identifier. And there is an identity column in Staging table as auto increment integer for the sake of Entity Framework.
They both have a unique contraint column called clientId on which I am going to write all the logic to update or modify.
Now my question is I want to get all the rows in the staging table whose clientid exists in staging table but doesnt exist in transactional table, similar to not in operator in SQL Query.
Please if somebody can help me that would be really helpfull. I am searching from my side also. But if someone can help me its really great.
I´m new to Expressiontrees and their invocation...
but they seem to be really mighty and useful...
I know that one can extend expressiontrees, but up until now I wasn´t been able to fully comprehend how to do that..
practically I want to "convert" this lambda into an expressiontree:
so far so good. I also know that I now can query multiple users... fine thing...
what´s really cool about this is, that expressiontree returns whatever you need takes any type of parameter... a fine thing would be if I was able to pass the correct "sql/linq" query to it...
to be honestly, my desire goes for this:
(o => o.LognName == name && o.LogonPW == "12345") //dumb pw
now my question is:
how to link different params in an expressiontree?
I heard about
and am using it, but I feel that this does not function properly and as desired...
here´s my function of the treebuild:
I've found that on the interwebs...it´s NOT mine...but with very few changes, I've also implemented the AND-equivalent. whoa... what an effort...
so, to put long things short:
how to combine the both of them to achieve the desired query?
thanks in advance!
what a cool community
ps:hopefully I dove into the correct forum...
LogonName in the lambda was of type string, the Expressionparam is of type string
as one might suspect:my math knowledge is not that sophisticated... the term binarytree is familiar to me since 4 days or 5...
but, i´m somewhat able to use it...
just like luke skywalker and his lasersword...
he is capable to use it as a weapon, but is he able to assemble it!?
Could you please help me on how to convert an html document to a pdf document. I need like a free third party tool that can do the job. I've tried iTextsharp but it won't copy the styles from the html document to the pdf file. I've also tried Winnovative, but it prints out a watermark specifying that I am using a demo version.
I need a solution that can convert the file to pdf without the watermark but with the styles. Thanks a lot in advance guys.
I have developed an ASP.net VB application on 1.1 in which we insert certain data into a particular table which is on sybase.
My table structure:
CREATE TABLE dbo.at_ip_disbursement
doc_id numeric(7,0) IDENTITY,
doc_type varchar(30) NOT NULL,
rim_no int NOT NULL,
item_type varchar(80) NULL,
customer_name varchar(80) NOT NULL,
rsm_name varchar(80) NOT NULL,
branch_no int NULL,
business_unit varchar(30) NOT NULL,
input_dt datetime NOT NULL,
Category varchar(30) NULL,
deferral_details nvarchar(600) NULL,
days_deferred int NULL,
Deff_Expdt datetime NOT NULL,
Deferred_Dt datetime NULL,
rm_comments nvarchar(600) NULL,
creator_id varchar(10) NULL,
modifier_id varchar(10) NULL,
status char(1) NOT NULL,
App_Authority nvarchar(600) NULL
IF OBJECT_ID('dbo.at_ip_disbursement') IS NOT NULL
PRINT '<<< CREATED TABLE dbo.at_ip_disbursement >>>'
PRINT '<<< FAILED CREATING TABLE dbo.at_ip_disbursement >>>'
Now the piece of code where the insert takes place:
Public Shared Function AddDisbursement(ByVal DocType As String, ByVal Rim As Int32, ByVal CustomerName As String, ByVal RSMName As String, ByVal BranchNo As Int32, ByVal Business As String, ByVal InputDate As String, ByVal Category As String, ByVal DeferralDetails As String, ByVal DeferredDays As String, ByVal DefExpDate As String, ByVal DefDate As String, ByVal RMComments As String, ByVal CreatorId As String, ByVal App_Authority As String, ByVal Item As String) As String
Dim logger As SKLogger = New SKLogger
Dim connMosaic As String = System.Web.HttpContext.Current.Session("connStr").ToString()
Dim cmdText As String
cmdText = "INSERT INTO at_ip_disbursement(" & _
"doc_type, " & _
"rim_no, " & _
"customer_name, " & _
"rsm_name, " & _
"branch_no, " & _
"business_unit, " & _
"input_dt, " & _
"Category, " & _
"deferral_details, " & _
"days_deferred, " & _
"Deff_Expdt, " & _
"Deferred_Dt, " & _
"rm_comments, " & _
"creator_id, " & _
"status, " & _
"App_Authority, " & _
"item_type) " & _
"VALUES (" & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"?," & _
"'A'," & _
"?," & _
Dim conn As OdbcConnection = New OdbcConnection(connMosaic)
Dim cmd As OdbcCommand = New OdbcCommand(cmdText, conn)
cmd.Parameters.Add("@DocType", OdbcType.VarChar).Value = DocType
cmd.Parameters.Add("@Rim", OdbcType.Int).Value = Rim
cmd.Parameters.Add("@CustomerName", OdbcType.VarChar).Value = CustomerName
cmd.Parameters.Add("@RSMName", OdbcType.VarChar).Value = RSMName
cmd.Parameters.Add("@BranchNo", OdbcType.Int).Value = BranchNo
cmd.Parameters.Add("@Business", OdbcType.VarChar).Value = Business
cmd.Parameters.Add("@InputDate", OdbcType.Date).Value = InputDate
cmd.Parameters.Add("@Category", OdbcType.VarChar).Value = Category
cmd.Parameters.Add("@DeferralDetails", OdbcType.VarChar).Value = GetNull(DeferralDetails)
cmd.Parameters.Add("@DeferredDays", OdbcType.Int).Value = DeferredDays
cmd.Parameters.Add("@DefExpDate", OdbcType.Date).Value = DefExpDate
cmd.Parameters.Add("@DefDate", OdbcType.Date).Value = GetNull(DefDate)
cmd.Parameters.Add("@RMComments", OdbcType.VarChar).Value = GetNull(RMComments)
cmd.Parameters.Add("@CreatorId", OdbcType.VarChar).Value = GetNull(CreatorId)
cmd.Parameters.Add("@App_Authority", OdbcType.VarChar, 1200).Value = GetNull(App_Authority)
cmd.Parameters.Add("@Item", OdbcType.VarChar).Value = GetNull(Item)
Catch ex As Exception
AddDisbursement = ex.Message
ERROR [HY000] [INTERSOLV][ODBC SQL Server driver][SQL Server]ct_param(): user api layer: external error: A data length of 399 exceeds the maximum length allowed for CHAR data.
The same happens when i try to insert data into fields "RMComments" and "DeferralDetails"
I need to add hot keys to my ASP.net MVC3 application. please give me any ideas on the best way to implement this in MVC?
go to home page of my application when Ctrl + Q is used
to log_out when Ctrl + K is used
How do I clear the server cache in asp.net? I have found out that there are two kinds of cache. There is the browser cache and the server cache. I have done some searching but I have yet to find a clear, step-by-step guide for clearing the server cache using asp.net (or not).
I am working on an ASP.NET c# application that uses a 3rd party CMS. I have reason to believe that a bug I am having must have something to do with the cache on the server side. As an admin of the CMS, I have used some controls that individual users can see but they should not. The customer service has suggested I need to clear the server cache.
I can remote to the server. Do I need to clear the cache from there?
I did a search on google. So far, the only information I have is confirmation that there is such a thing as a cache on the server that differes from the client cache on the browser. The first results from Google are from wikipedia and instruct users of using a url addition to clear the cache on the server. I am not sure if that will work for what I need to do.
I wish I could find some sort of ASP.NET C# sample code that will clear the server cache.
Please help me to do this operations by using Asp.Net
1.Several screens (or one very functional one) to view the data in a variety of ways like by Phase, by ESXHost, by Application.
I think if we have several drop downs for filtering then that would work; so I can choose Phase 1, to show only the databases that will be migrated in Phase 1, then I can choose some other criteria and the screen shows a subset of data etc.
2. The Pre-requisites and Post-Migration checks should show whether the Phase or database migration is ready to start or is ok to complete.
I need to have multiple applications realized with VS2008 running on same Website
Applications are published on different subfolders
I don't need (if not necessary) to have webconfig on the root folder
i have different webconfig for each app stored in subfolder app
But when i try to run an apps i retrieve:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Hi my name is Isaac,
How can I upload a video in sql server 2005 then play it in asp.net webpage.
And create a playlist on web page of all video that i upload in sql server so that a user can choose a video to play and see to many time a video was played.
I need your help please step by step
Is it possible to drag an object from the user's computer and drop it into a webpage using asp.net? I know dragging and dropping of objects into a windows app can be done but I've never seen it done in a web app. Please give an example of how this can be done or point me to a link that might help if you know of any. Thanks in advance for your reply.
I downloaded and installed the ODAC for 64 bit machine. There were no issues installing, except that you have a to execute a sql file at the end of installation. It is located at
c:\app\\product\11.2.0\client\Asp.net\SQL - Where would I execute this? From DOS prompt?
I added the Oracle.DataAccess.dll to VS 2010. I keep getting this error -
Error 2 Could not load file or assembly 'Oracle.DataAccess, Version=220.127.116.11, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. C:\projects\CSCC-DotNet\Web.config 14
any ideas? I did search the web, but with no luck.
When this method is used, the trace output is displayed on the page that is executed.
Out of Page
In this method, the tracing results are not displayed on the page but these are stored on the web server and in the root folder of the application in a file named as “trace.axd”. After execution of the pages, this file can be viewed on the browser.
“trace.axd”.-----here what is the expansion of axd...
I do apologize if this is the incorrect forum to post.
I have a file which I need to post to a remote client server. I created a .p12 key file from the client web site. Using this .p12 ket file, password information I need to post a file to the server.
Using class, X509Certificate2 from namespace using System.Security.Cryptography.X509Certificates X509Certificate2.
I created a simple C# console application on my laptop using VS 2010, to define the parameters to the .p12 key file, and path to the csv file to post to remote server. I keep getting "Remote Server returned error - 401 UnAuthorized Error". Is there some sort of permission issue on .net end or the client side. The client keeps stating there is no communcation problem on their end.
I have been working on this code for some time now. any ideas is much, much appreciated.
We have tired of ton JS code in our applications, when errors could occurred in runtime (and specific browsers only).
So we decide to write something which allow to build rich client-side (single page as well) web applications on C# using our Incoding Meta Language.
It's simple - you define the tag behaviour on C# and then it parsed using our JS engine. Any js library could be plugged in, like we did for the Jquery UI (dialog, slider), Google Maps (show map, add/remove marker), BlockUI...
No trial, no donate. Just Open Source. We would like if someone would say "that's cool, i will try!" and give any feedback (critics are welcome).
I know some questions would be like "we need to learn this before start using, why do we need that if we already known js?".
- I would answer by asking another thing:
"What if your teammate (or another developer) leave some code for you and you need to understand what the hell this js construction is and first of all, where to find that event handler?"
With this approach, you just find the element on page and see what the behavior defined in C# well typed code.
You may kick me for the spam, but I just want to discuss:
1) If this type of approach could be alive or not?
2) What are your suggestions? Do you use something else to exclude such problems like we have had to write this?
P.S. We have all current projects using this. And there are server-side features as well.
i am an electrical engineer but interested in programming . i developed one v.net project for office and now wanna use send sms coding... the coding is as below but i am not getting message... please help... thanks in advance
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SMSPort As SerialPort = New SerialPort
.PortName = "COM7"
.BaudRate = 460800
.Parity = Parity.None
.DataBits = 8
.StopBits = StopBits.One
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
If SMSPort.IsOpen = True Then
SMSPort.WriteLine("AT" & vbCrLf)
'set command message format to text mode(1)
SMSPort.WriteLine("AT+CMGF=1" & vbCrLf)
'set service center address (which varies for service providers (idea, airtel))
SMSPort.WriteLine("AT+CSCA=""9848001104""" & vbCrLf)
' enter the mobile number whom you want to send the SMS
SMSPort.WriteLine("AT+CMGS= ""9494949494""" & vbCrLf)
SMSPort.WriteLine("aaaaat" & vbCrLf & Chr(26)) 'SMS sending
I need to take the main parts of a C# 2008/2010 console application and turn it into a thin client for the web. The only things that need to be displayed on the screen is to enter the customer number and where to obtain a file in a directory path. The user will it the enter button and the application will pass the information to a web service.
Notes about the code that will be used: 1. the application uses linq to sql to point to a sql server 2008 r2 database.all parts of the exisitng code is placed together. there is no separation of data, presentation from business logic.
The simple application will not be part of any other web application.
Can you tell me the following:
1. How will the user start the application? Would it be a url on the web and/or a shortcut on their desktop? How would you setup the code for the user to click on a desktop short and/or point to a url?
2. When you start the code from scratch, what kind of a web application would I use? web forms since that is the easiest.