|
You are right at all. but our client requirement is very different. he needs all data on one page, he dont want to wait on scroll down of page(he didnt like ajax call data on scroll,i did it once.)
I used jquery datatable for quick filter data on client side. but his browser gets stuck.then i moved changes to gridview. it looks better.but on filter ,it takes time. i need to make it fast. i read a solution in MVC , that it provides server side only.and reder all html on server.
so i raised here the question.what should i do. whether jquery datatable for 3000 or more records will work fine on clients browser if i use mvc.
-- modified 29-Mar-15 19:33pm.
|
|
|
|
|
Is this possible to generate PPT on server side and use it on client side without using inter-op property??
Thanks in Advance.
|
|
|
|
|
You can use the Open XML SDK[^] for this.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi all. Probably it should have been an article, but I want to start in an informal way.
Several months ago, I found myself with a thought I cannot deploy efficiently. But every single tool had its own disadvantages:
1. Atlassian bamboo can build, but can’t deploy well. It always was a Java thing. It can’t make sites, alter web.configs and work with MSSQL.
2. Teamcity is a great product from great company, but it is a CI server wich can make packages and nothing more.
3. Octopus deploy is pretty good thing at first sight but there is a huge mess with packet versions every time I had to decide what packet versions to use and of course it cannot build.
Therefore, I decided to try making my own tool, that can build, and therefore aware of project types, can deploy and aware how things work in ASP.NET.
So please welcome! http://aspnetdeploy.com/[^]
fully open source, hosted on GitHub (wip). Begging for feedback, what do you think of it? does it seem useful for you?
|
|
|
|
|
This post should be in the Free Tools forum[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I would of never looked there, does sound interesting however.
|
|
|
|
|
Hi All,
I have a Radio button group control that I am using in my ASP.Net application, when it is rendered on the client machine, it is rendered as below with Id and name, can I get the client name of the control instead of getting the client id.
Here is how it is rendered.
<input id="phb_ynTransferAttend_rdbYes" type="radio" name="ctl01$phb$ynTransferAttend$phb_ynTransferAttend" value="rdbYes" checked="checked" class="req" required="required">
And I want to get the name value "ctl01$phb$ynTransferAttend$phb_ynTransferAttend" instead of its Id "phb_ynTransferAttend_rdbYes" in my C# code behind, can I do that please?
Any help link, suggestion or code snippet would be really helpful
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
1. Why do you want the name?
2. You might be able to get it by referencing your control's attributes. FIrst add a runat="server" so you can access it directly in c#. Then possibly by phb_ynTransferAttend_rdbYes.Attributes["name"] might work.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
For most controls, the name will be the same as the UniqueID property[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
this is code for voice recognition in vb.net c# how to make it run in asp.net c# please help
private void button1_Click(object sender, EventArgs e)
{
spengin.RecognizeAsync(RecognizeMode.Multiple);
}
private void spengin_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
switch (e.Result.Text)
{
case "hi":
MessageBox.Show("hi");
break;
case "print developer":
textBox1.Text += "developer";
break;
}
}
private void Form1_Load(object sender, EventArgs e)
{
Choices command = new Choices();
command.Add(new string[] { "hi", "print developer" });
GrammarBuilder gbuilder = new GrammarBuilder();
gbuilder.Append(command);
Grammar grammar = new Grammar(gbuilder);
spengin.LoadGrammarAsync(grammar);
spengin.SetInputToDefaultAudioDevice();
spengin.SpeechRecognized += spengin_SpeechRecognized;
}
|
|
|
|
|
This code is in C# (Not VB.NET), they have different paradigm and syntax. This can be used in ASP.NET web application by creating an assembly (library; or simply class) inside your application and adding this code in to it.
ASP.NET is capable of running your VB.NET or C# code, because .NET framework is backing them all, VB.NET, C# and ASP.NET.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
i tried doing with asp.net bt it didn't happen.. bt its working fine with vb.net
if u guys could try it on your system n tell me what m missing that will b a great help.
Assemblies used is "System.Speech.Recognition"
looking forward for your replies..
Thank you.
|
|
|
|
|
You need a reference to "System.Speech"
|
|
|
|
|
If this is ASP.NET, then your code will not work.
Code running on the server has no access to the microphone on the client. Unless your intention is to recognise your sys-admin's voice when he's sat in the server room swearing at the server, you're not going to get anywhere with this library.
There is an HTML speech API[^] which would be a better fit, but it only seems to be supported in Chrome[^] at the moment.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Exactly. +5
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have a simple VB.Net web app that gets a large table based on Form controls and I need it display the progress such as Doing 'Record# nnn'.
This method can be simulated with via clicking on a button the the form is initiated which is the instance that we need to access. lblMsg is a label on the form what I would like to update.
Public Function GetTable
Dim I as Integer
for I = 1 to 10
lblMsg.Text = "Doing Record# " & i
Sleep 1000
next
End Function
We are currently trying the below but when GetTable gets control lblMsg is nothing which means that the form is not initialed.
How can I get this to work?
$(document).ready(function () {
$("#btnTrial").click(function (e) {
e.preventDefault();
$("#btnTrial").attr('disabled', 'disabled');
var total = 5;
if (document.getElementById('<%=txtLoopRows.ClientID %>').value != "") {
var total = document.getElementById('<%=txtLoopRows.ClientID %>').value;
}
// comes here the first time
PageMethods.OperatePage(total, function (result) {
if (result) {
setTimeout($.updateProgressbar, 500);
}
});
});
});
<System.Web.Services.WebMethod(EnableSession:=True)> _
Public Shared Function OperatePage(total As Integer) As Object
Dim session As HttpSessionState = HttpContext.Current.Session
Dim totalParsed As Integer = 0
Integer.TryParse(total.ToString(), totalParsed)
_TotalLoop = totalParsed ' 1
System.Threading.ThreadPool.QueueUserWorkItem(AddressOf ThreadProc, session) ' Sets to invoke ThreadProc
Return New With {.progress = 0}
End Function
<System.Web.Services.WebMethod(EnableSession:=True)> _
Public Shared Function ThreadProc(ByVal stateInfo As Object) '2
' Loops with sleep but sets StateVariable to the counter which is picked up by Progress Page then to $.updateProgressbar = function
' InfusionSoft stuff here
Dim DefPage As New _Default
DefPage.GetTable(stateInfo) ' Invokes but form variables are nothing
stateInfo("TICK") = Nothing
End Function
Thanks
modified 24-Mar-15 11:18am.
|
|
|
|
|
GetTable is being kicked off from a background thread, it has no request context so has no server-side controls to access. Even if it did, you can't "push" data to the client that way, your server code isn't running inside the browser, it can't make changes to properties on server-side controls and have those instantly translated into DOM updates in the client html.
Basically your architecture isn't going to work, you can't do what you're looking to do because it isn't compatible with how http works. You'll need a function on the client polling a method on the server via a timer, and have that method return the current state which you them show in the browser by updating the DOM from the javascript.
|
|
|
|
|
Yea, so much for hiring somebody to do it.
So how can I get the lblMsg.text pushed to the web form so that the user can see the progress i.e. Doing Record# nnn???
|
|
|
|
|
[WebMethod]
public static string GetProgress()
{
return DateTime.Now.Ticks.ToString();
}
<div id="progress">
</div>
<script type="text/javascript">
var t = window.setInterval(showProgress, 1000);
var p = $("#progress");
function showProgress()
{
$.ajax({
type: "POST",
url: "test.aspx/GetProgress",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
p.html('Progress: ' + data.d);
// to cancel the polling
// clearInterval(t);
}
});
}
</script>
|
|
|
|
|
Thanks
I need the actual count in the background server code which must use the web form to get paramenters, etc.
How does the above fit in with the existing code? Do I remove it? or is this is combination with it?
|
|
|
|
|
It depends what your gettable method is doing. I suspect you're trying to push html to the client which asp.net doesn't really support, the page has to be made in one go then sent to the client in one go, you can't do it in chunks (you can look at disabling buffering though, it might work, Response.Buffer = false).
Chances are you're going to have to re-architect this and rather than generating the table in a background thread, have your javascript function keep calling a web method that returns the data 10 or 50 rows at a time then create the table html via javascript as each batch comes back. That way the page stays responsive and gradually loads. Doing it the other way and trying to write the table bit by bit might not work.
Google for retrieving data via ajax, and building a table via ajax, you should get sample code of both.
|
|
|
|
|
I understand that normally you get a server request and one page goes out and that is what I was really hoping to get around somehow.
GetTable does just that. It gets a database table from a Web Service based on form controls and populates a grid. It also writes it to disk for potential downloads.
I was hoping that this technology to update the lblMsg status could be used in other programs for a bunch of similar things.
Putting in some java to keep requesting a chunk might work in this case but in our other programs it would not or at least not easily. In the other programs the code would be much more complex and could not be done in chunks since the processing id dependent upon what it did in the records prior.
My thought is that since there are push technologies out there i.e. Chats do not need a user to push a button to get what other people enter, same for streaming that there must be a way of doing the same in my simple case. I have read about keeping sessions opened, etc. but since I am not a web developer I have a hard time getting my head around it.
As an alternative I was thinking of changing the lblMsg.text to s variable lblMsg_text that perhaps the async methods could just use to populate the real lblMsg.txt via Java. Would there be a way for that to work. I would have to be an instantiated variable since multiple users could be using it.
modified 26-Mar-15 8:58am.
|
|
|
|
|
I don't how you came up with that code, and it sort of looks like your a windows programmer trying to write a web form.
In code block 1, not sure why your using sleep, you sort of want the code to run as fast as possible.
In code block 2, you have a weird mixture of JQuery and Javascript.
So I just figured out that you just want to show a progress image or something, or you just want to call the service and create a pause as if code is running or something.
To show a progress, you just make a modal overlay using div, and just show and hide it using the client script.
This is how client script via web service works,
Introduction to using jQuery with Web Services[^]
|
|
|
|
|
I am not a web developer so please bear with me.
1. Sleep used to simulate long running process getting records from a large database from a web service and processing same in the server.
2. The java stuff was done by a developer that I hired who could not do what was needed. He is now gone.
3. I want to push the status / progress which may take 5-10 minutes and I want the user to see the progress i.e. Doing Record#=nn, Added=nn, etc.
4. I am happy with keeping the div showing all the time but the problem is that normally the web page does not get updated until the process is finished. For a long running process the user will give up after a minute unless he sees a change.
5. I am not sure what a modal div is but seems to imply that things wait until the modal div has completed something or the user hit a button. This is NOT what is needed.
|
|
|
|
|
Oh, I thought you were a programmer, I apologize for the mistake.
As far as the progress goes, just depends on the UI design.
I've been ditching the Modal Progress lately, for just swapping out the data input container for a progress container and then switching to a result container all in the same space. Sort of like tabs but with no tabs.
Pushing the status to the progress container would be tricky. I'm trying to think of a way to do that.
I guess I would write jquery to send data in small chunks, and display the results of that chunk, in a loop format.
Sounds like you need some help in programming.
|
|
|
|