ADO.NET :: How To Save Poll Module In DB
Nov 14, 2010Could you elborate how to save it in DB? Because all the users are unauthenticated
View 1 RepliesCould you elborate how to save it in DB? Because all the users are unauthenticated
View 1 RepliesI want to implement poll in my website and its a public available website so any one can vote. I want to know which might be the best option for creating poll. In my opinion there is only cookies in which i can store information and check if this user has submit a poll. My website is multi-lingual and im using Asp.net-mvc 2
View 2 Repliesit possible to use an application event to save the username in a session variable? I would like to do something like this:
private void ContextOnBeginRequest(object sender, EventArgs eventArgs){
if (_context.Request.IsAuthenticated)
_context.Session["ID"] = _context.User.Identity.Name;
}
However in the above code I get an error saying that Session state is not available.
How can I do to create a poll without database.
View 1 RepliesMy Web App is news application,with each news enabled to insert poll system to evaluate good or bad ...anything.
View 4 RepliesHere's what I am trying to do. I have a website that lets users submit requests that are queued up in a Jobs table that the service picks up and processes. I have a status column in the table that denotes whether the request is queued up for processing or being currenty processed by the service or the service has completed processing the request. The entire process takes a few minutes.I have a Status ASP.NET page in which I will need to show the current status of their request on a real time basis. I want to display some kind of animation and denote the current status. One way I could do this is to have a meta http refresh every x seconds that checks the status of the request (I guess this is how sites such as Expedia, Priceline does it?) would like to prevent a complete page refresh is possible and looking for a AJAX/JQuery solution. How would I implement this? Is polling the correct approach?
View 4 RepliesI want to know how to show the results of a poll with graphics using asp.net.
View 4 RepliesNow i'm developing a poll system which enable change dynamic layout , independance coder and designer.
View 1 RepliesFrameworks like Node.js, Tornado, and Twisted let developers create server-push applications that supports large number of concurrent hanging requests (10k+). From what I understand, they all achieve this by not creating threads to service each hanging request.
Can AsyncController be used to service large number of inactive concurrent requests?If so, are there any reasonably large ASP.NET MVC websites using this approach to create long-poll applications?
heavy operation which takes long time to be completed in my asp.net application. I don't want to run the entire operation in one request which may result in a TimeOut error. Instead I want to invoke the operation in a separate thread and poll for the result every x seconds. How can I do this?If the operation gets completed I need to register a script in the ajax postback to hide the loading panel and show the content. However I'm not able to register new scripts and invoke it during ajax postbacks.
View 2 RepliesI've a poll website with few tables :
poll
poll_question (id_poll, question, type_question ...)
poll_answer (id_poll_ans, id_poll, ans1...default)
type_question (id_type, type) type is dateValue, dropdownlist, checkbox or value)
If question have several answer like (yes, no.... or value in a dropdownlist then i will have to get this value from poll_answer)
So my question is ... how can i do to introduc this datas and dynamicly load the good kind of control, (dropdown or textBox or checkbox...)
How To Save Video files into folder and save path only into database in asp.net using c#.
View 1 RepliesMy page (which basically contains a pair of Repeaters) renders and is displayed to the user.I'd like to have a "Download" button on the page which, when clicked, will propmt the user to save the page locally as an html file without losing any of the CSS formatting.
My CSS files are linked to via a Master Page.Currently, I have the button linked to some javascript that open will the Save As dialog, but all of the CSS formatting is lost, and it saves the page .I'm assuming that the button will need to open a new page which will re-create the data for the Repeaters and then save using StreamWriter, but I'm not exactly sure if that's right or how best to do it.
one button i use to save form entity.and other is to navigate to next pagwhen i click on save button i use jquery to save form entity in database. and form remains as it is
<script type="text/javascript">
In a project when user click a button, some data is gotten and written to an excel instance by interop library.
Now, I want that: When excel instance get all data, a save as dialog box muste be open and save this excel instance to user specified path.
Is there a way to do it?
[Code]....
can we save pdf document without save,view,cancel dialogue box in asp.net..
View 1 Repliesi have place some .txt files in my web application root directory. now i want to open a popup on button click with save button so that client can save this file on his/her PC. also can we auto set the path??? mean client jst press save button and file automatically stored his "D:\Foldersample.txt".
View 1 RepliesI have one AsyncFileUpload control ,one Attach button,one Listbox and Save button.
When Users browse the file and click the attach button, filename must be added to listbox. So in this way the user has the option to add upto multiple filenames to listbox. For this i have written the following code
[Code]....
this is source code
[Code]....
In Attach button click event i added the filename to listbox and saved the Asyncfileupload controls in different session variable.
When user clicks on save button all files has to be saved in application folder and for this i wrote the following code.
[Code]....
But iam unable to save all the files . Suppose i added two AsyncFileupload controls to session variables, only last file i,e. 2nd file can only be saved and couldn't get first file.
[Code]....
I am working on a web application. I have two forms Webform1 and Webform2 and Module1. In webform1 and 2 I have labels, textboxes and dropdownlist. when I trying to use them in the Modules I cannot see them. Here is what I have in the ASPX page:
Public Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles DropDownList1.SelectedIndexChanged
test = DropDownList1.SelectedValue
End Sub
I want to be able to do this in the Module: Dim Test as string
Test= DropDownList1.SelectedValue
what is the best Chat Module? Audio/Video? for asp.net?
View 3 RepliesMy Asp.Net calls a SQL sproc and returns a XML file as a string. This is what I need to do:
- save that string into memory (as a file);
- pop up a dialog box asking the user which path he would like to save the file;
Any samples out there...how do I achieve this task in Asp.Net C#?
I am using the following code to write the contents of a string (converted to a byte array) to the client in ASP.NET/C#
byte[] data = StrToByteArray(strData);
Response.ClearContent();
Response.AppendHeader("content-length", data.Length.ToString());
Response.ContentType = "text/plain";
Response.AppendHeader("content-Disposition", "attachment;filename=" + fileName);
Response.BinaryWrite(data);
Response.Flush();
fileName is the name of the file ending with the file extension (.pgn). However, the file is saved as a .txt file, ignoring the extension that I am giving it. Would this have to do with the Response.Contenttype = "text/plain"? How can I get the Open/Save dialog to display and save the correct (.pgn) filename?
Also, if filename is a string separated by dashes or spaces, when the Open/Save dialog comes up, the filename is not displayed in its entirety but it is truncated where the first dash (-) or space (or comma) is encountered. How can this be remedied?
I am struct in a bad sitiation. I have developed my whole application and at the end client requested that they want encrypted URLs :(. Now application is in a state where I can not encrypt URL on individual pages.Is there any module through which I can add URL encryption throughout my website without changing the application as application code is 100% verified from Q/A.
View 1 RepliesI use IIS 7 URL Rewrite Module and it works fine.
But My javascript code doesn't work anymore on the page (details.aspx) where i use URL Rewrite Module.
Example :
<a href="#" target="popup" onclick="wopen('note.aspx?ID=<%#CType(FormView1.DataItem, System.Data.DataRowView).Item("NoteID")%>&S=<%#CType(FormView1.DataItem, System.Data.DataRowView).Item("IsS")%>','popup',480,480); return false;">
Write a note</a>
If i disable the rule in IIS, this link works as expected.
The Rewrite rule doesn't include the note.aspx page.
I'm probably going to use the URL rewrite module for IIS 7 eventually and I have a fairly straight forward question that I really can't find the answer to.
If you have a base case of:
http://yoururl.com/page.aspx?ID=7
You can obviously have it rewritten to:
http://yoururl.com/page/7 or whatever you want.
My question is this: When using this module can you still use Request.Querystring["page"] on the rewritten querystring. How does the Request.URL stuff work. Does asp.net still provide the un-rewritten url or does it provide the rewritten one.
I would assume that your C#/asp.net code is completely unaffected by the url rewriting, as that's more or less the point, but I want to be crystal clear.
Secondary question: What is the best practice for how you should code a website when using the rewritten. Should you code links in the written style, or continue using querystrings?