0
votes
3answers
123 views
Iterating item in a loop
I have a List<int> with the values like 60,45,45,45,45,30,60,60,15 people
Also i have two slots. 1st slot is capable to occupy 180 people
Problem is I need to loop List<int> to fill ...
0
votes
1answer
24 views
How do I bind a javascript class to a asp:linkbutton
I have a formview attached to a gridview so that when I click select on a record on my gridview, the record populates in the gridview. Now I want to open the formview in a lightbox, but I am running ...
1
vote
2answers
38 views
Return Json file with ASP.NET Web API
I am trying to return a JSON file using ASP.NET Web API (for testing).
public string[] Get()
{
string[] text = System.IO.File.ReadAllLines(
...
0
votes
0answers
23 views
Connect via JavaScript to a C# TCP-Listener
i've already looked up in the web, but can't find any solution for it.
Is it possible to connect to a TCP-Listener with JavaScript?
I don't look for socket.io or node.js - cause I don't want to use ...
0
votes
2answers
32 views
Submit Form with Complex DataType to Controller
This is my model
Model
public class XPersonContent
{
public string PersonType { get; set; }
public int PersonId { get; set; }
}
public class XViewModel
{
public ...
1
vote
3answers
50 views
Do You Use “Fake” Function Overloading In JavaScript? [duplicate]
In C# I might have an overloaded function like so:
public string OverLoad(string str1) {return str1;}
public string OverLoad(string str1, string str2) {return str1+str2;}
I ...
0
votes
1answer
37 views
JQuery Dialog with Checkbox and Submit button in C#
Basically I have a JQuery UI Dialog but I would need to integrate a checkbox and a submit button in it. Upon clicking the submit button to close the dialog, I would require the checkbox to be checked. ...
1
vote
3answers
53 views
How to pass DataTable values in a loop in aspx?
I have a DataTable called dt5 which has 4 rows. I am trying to pass the src of image in aspx from dt5, but its not working. Here is my code...
<%
for (int i = 0; i < dt5.Rows.Count; i++)
...
1
vote
2answers
28 views
how can i add head text in javascript alert dialog box
I need to add Header text in javascript alert dialog box, that text having some forecolor and textfont will be bold. it is possible to create on javascript alert dialog box.
-5
votes
2answers
44 views
Display messagebox in asp.net webpages [closed]
can anyone tell me How to display Messagebox in asp.net webpages?
I need it to display some variables for some code errors.
Messagebox.show("");
doesn't work for asp.net.
1
vote
2answers
32 views
Image source missing while generating HTML elements dynamically in asp.net
I have 4 rows in DataTable dt5. I am trying to generate certain html elements dynamically equal to number of times as the rows in dt5.
Visual studio code:
<% for(int i = 0; i < dt5.Rows.Count; ...
0
votes
1answer
23 views
How to call C# method in javascript by using GeckoFX as the wrapper of XULRunner
I am using GeckoFX16 and xulrunner-16.0.2.en-US.win32 in my project.
The thing is, i want to call C# method in javascript.
I am curious about if there is a way to do this?
just like bellow:
C# ...
1
vote
2answers
75 views
Best way to make alert messages safe in javascript
I want to display messages from my asp.net pages by registering a script, sometimes even the exception code from an error. I use this code:
ScriptManager.RegisterStartupScript(this, Page.GetType(), ...
0
votes
1answer
22 views
Rename Property from Deserialized Javascript
How do I take deserialize JavaScript and change the name of the property being processed?
For example:
class MyClass
{
public string CreateDate {get;set;}
}
public class DeserializeMyClass
{
//How ...
0
votes
1answer
30 views
Uploading an image(blob type)-Asp.Net-C#-Oracle 11g ex
I have been trying to perform a simple upload operation of an image using the asp FileUpload control and save it in Oracle database. Though I have hardcoded a few lines, I somehow succeeded. But then, ...