hi brothers , i work on a ASP.NET MVC Project, please i try to get a cookie who created already using server side C# , and in a pure HTML page not .CSHTML i talk now about .HTML page , in this page i want to using javascript to read the value of the cookie that i created using C# . i wish if anyone can help me and thanks so much in advance.

Member Avatar
Member Avatar
+0 forum 1

Hi, I have to pass string entered in the input text to server method calling through jquery ajax. But its not going through. can please somebody tell me what i m doing wrong here. Below is the code: [CODE]$.ajaxSetup({ cache: false //timeout: 1000000 }); function concatObject(obj) { strArray = []; //new Array for (prop in obj) { strArray.push(prop + " value :" + obj[prop]); } return strArray.join(); } //var Eid = "stephen.gilroy1"; function testCAll() { //var ntid = $('#Eid').val(); $.ajax({ type: "POST", url: "Testing.aspx/SendMessage", //data: "{'ntid':'stephen.gilroy1'}", //working data: "{'ntid': $('#Eid').val()}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(result) { alert(result.d); resultData …

Member Avatar
Member Avatar
+0 forum 5

Hi here is code snippet used temprarily on button to debug. This works but i wish to use the 2nd snippet. 1st snippet Dim connString As New SqlConnection connString.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("sql2008r2_857000_dmcsqlConnectionString").ConnectionString Dim cmd As New SqlCommand("select TOP 1 no from members ORDER BY no DESC", connString) Dim reader As SqlDataReader Dim lastNumber As String Using (connString) connString.Open() reader = cmd.ExecuteReader() While reader.Read lastNumber = reader.Item("no") End While End Using Response.Write(lastNumber) 2nd snippet Dim connString As New SqlConnection connString.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("sql2008r2_857000_dmcsqlConnectionString").ConnectionString Dim cmd As New SqlCommand("select max(no) from members ", connString) Dim reader As SqlDataReader Dim lastNumber As String Using (connString) …

Member Avatar
+0 forum 0

I have a table with nutrient data(in Dutch) it looks like this ![Nutrient_table.png](/attachments/small/1/ea03b9085fe045894414a3101f2d6b4b.png "align-left") My DB design skills are very low, I only know Mr. Codd is lurking 'round the corner somwhere. Could anyone give me some hints on how to set up my tables or should I just usr one table? Thanks in advance for any answer.

Member Avatar
Member Avatar
+0 forum 6

it means if user insert "n"(number of case) in textbox than click the "Next" button, in datagridview set to "n" number of rows. i don't know what code i use, please help me, please check attach file, thank you so much

Member Avatar
Member Avatar
+0 forum 9

Hi guys, i have a login page where i created a session trainer after login. the session is the mail address of the trainer. now from another apsx page, i would like to retrieve the staffid of the user logged in using the session as criteria. I tried to write the below code but its not working. Any ideas please? Dim cmd As New SqlCommand Dim query1 As String query1 = "SELECT staffid FROM tblstaff WHERE email='" & Session("trainer") & "'" connect.ConnectionString = Constr connect.Open() cmd = New SqlCommand(query1, connect) Dim rdr As SqlDataReader = cmd.ExecuteReader Dim bFound As Boolean …

Member Avatar
Member Avatar
+0 forum 1

hi! ;) I just want to asked on how I can set the image as background. I put an image on the working station but once I run it, it doesn't appear on the browser. thanks. I'm using Visual Studio 2008 ;)

Member Avatar
Member Avatar
+0 forum 7

Hi Guys, I have a data bound grid-view with action buttons for updating and deleting items in a users shopping cart. The grid-view uses a 'SelectMethod' in the code behind to generate the data. The problem I'm having is that every time I edit some data in the grid-view, the data is successfully persisted, but then an error is thrown before the page even completes loading. **Here's the exception details:** *System.InvalidOperationException:* *A public method with the name '' was eithernot found or there were multiple methods with the same name on the type 'ASP.posworx_cart_aspx'.* What makes it even more confusing …

Member Avatar
Member Avatar
+0 forum 12

What are the ASP.NET MVC prerequisite?

Member Avatar
Member Avatar
+0 forum 6

I am creating a web service to interact with a database and it is supposed to perform the CRUD operations. Right now it works fine with the read and post operation the WCF service supposed to have a method that is called from within jQuery whenever the page completes load to retrieve a list of all providers and it works fine, however, when I update the WCF Service with a method like this [OperationContract] [WebInvoke(Method = "PUT", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] public Object PutSupplier(int id, Supplier oParameter) { // Do work } OR [OperationContract] [WebInvoke(Method = "DELETE", RequestFormat …

Member Avatar
Member Avatar
+0 forum 1

consider the following classes (similar to the ones i am working with): [CODE] namespace Project { public class Person { public Person() { } private string name; public string Name { get { return name; } set { name = value; } } private List<Pet> myPets; public List<Pet> MyPets { get { return myPets; } set { myPets = value; } } } } [/CODE] [CODE] namespace Project { public class Pet { public Pet() { } private int numberOfPaws; public int NumberOfPaws { get { return numberOfPaws; } set { numberOfPaws = value; } } } } [/CODE] Lets …

Member Avatar
Member Avatar
+0 forum 4

I inserted data in sql server using asp.net (MVC 5), and its flowing nicely, but my problem is this. I don't want to insert in sql the exist data. How can I do it?

Member Avatar
Member Avatar
+0 forum 11

I am using visual basic, javascript, and html. I am trying to use google hierarchy chart api. I works fine on localhost but when I try to move the same code to the server than I get the following error: Error: Object doesn't support this action <%@ Page Language="VB" AutoEventWireup="false" CodeFile="myFile.aspx.vb" Inherits="UI_myFile" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script> google.charts.load('current', { packages: ["orgchart"] }); google.charts.setOnLoadCallback(drawChart); function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); …

Member Avatar
Member Avatar
+0 forum 1

Hi all, I have a web application written in ASP.NET. All is working ok, except that I would like to compress the data being returned. The data is basically a List of custom models. Currently I do something like: `HttpResponseMessage json = Request.CreateResponse(HttpStatusCode.OK, my_models_list);` and return this from the method. How can I compress this? I do not have access to the server, so I can't change anything with the IIS server configuration. Thanks.

Member Avatar
+0 forum 0

Hi Guys! This code is working fine before I removed other programs from my computer since it is already getting slow. Now, i don't know which program I've deleted that I needed to restore again. Error Code Says: `The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.` I am using MS Visual Studio 2010, Application Development - VB.Net Thanks much!

Member Avatar
Member Avatar
+0 forum 1

Hi all, I want to have a button in a page like 'open File'. on which if user clicks, it should open open file dialog box to select a file and as soon as he clicks on the open button it should open the file (in same window or different window) I tried using the "FileUpload 'Button but it comes in combination along textbox and button. but i need only button. I tried <input id="file1" Type="File" runat="server"/> in html view this is also the same thing can anybody help me such that on button click it should open file select …

Member Avatar
Member Avatar
+0 forum 6

Hi all, This is a very elementary question, but I'm a couple of days into this. Which web.config file should one store keys in? Keys to use within a Model/Controller? I see four different ones: Project > Views > Web.config Project > Web.config Project > Web.config > Web.Debug.config Project > Web.config > Web.Release.config When testing with a key in the one located Project > Views, I don't get to see the key value using `ConfigurationManager.AppSettings.Get("UserName");`. Thanks.

Member Avatar
Member Avatar
+0 forum 4

In JS i tried something like this, window.onbeforeunload = function() { window.open('http://www.msn.com','_self'); return 'close?'; } but it doesn't redirect the page, but the return statement is displayed. how can i do to archieve redirect a specify page without any alert?

Member Avatar
Member Avatar
+0 forum 15

I have the following code is asp.net <%@ Page Title="" Language="C#" MasterPageFile="~/Site02.Master" AutoEventWireup="true" CodeBehind="Tasks.aspx.cs" Inherits="DMS.Tasks" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <div class="row-fluid sortable"> <div class="box span5"> <div class="priority high"><span>Assigned By Me</span></div> <div class="task high" runat="server" id="Task01"> <div class="desc"> <div class="title">Test 45</div> <div>ID: 1</div> <div>Description: Test 45</div> <div>Assigned To: Naheed Kassam</div> <div>Status: Completed</div> <div><asp:Button runat="server" ID="btn1" CssClass="btn btn-danger" Text="Open Task" /></div> </div> <div class="time"> <div class="date">Sep 30, 2014</div> <div> 606 day(s)</div> </div> </div> </div> </div> </telerik:RadAjaxPanel> </asp:Content> I would like to add divs synamically like the div for desc and time (And …

Member Avatar
Member Avatar
+0 forum 3

Hello everyone has been a while since i made a question here i have a real problem with a web app that i been doing recently the problem is related with the datetime format when i make transfer data from the webapp to a database in access, the field in access has the property of date/time format and its format is in general date, everything is ok when i pass the data in my page but when i try to check the infomation that i captured the format in the database it´s wrong. an example of this capture 05/10/2016 06:37 …

Member Avatar
Member Avatar
+0 forum 2

Hi.. I want to upload a file with help of FileUpload control, in which, i want to save the file with a specific name or say a name entered in a textbox on a same page. for ex, if textbox contains "ABC" then the files should be uploaded with abc.jpg name. how can i restrict user to select only specific types of file in a fileupload control? also, how can i save an image in 3 different sizes at time of uploading? when user selects an image, it should be saved in some specific size in a specified folder with …

Member Avatar
Member Avatar
+0 forum 10

Hello everyone please your help with the correct syntax of this code i´ve just build it but the visual studio has closed the session and i lost all my work the code as you can see search between two dates that part its ok, and then search in another field of my database to validate that the information that read is the correct how can i join up those two code one search between two dates and the other search a value from my drop down list Protected Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged Dim T1 = …

Member Avatar
Member Avatar
+0 forum 1

I have this function call which I need to convert to POST request because this is getting popped up in query parameter in SSL security threat. Could you please help ? Thanks LoadYearMakeModelUsingAutoVin(controlId, 'RequestXml.aspx?name=GetVehicleInfoUsingVinCanada&VinOrSerialNumber=' + vinOrserialnumber); ------------------------------------ function LoadYearMakeModelUsingAutoVin(controlItem, dataSourceUrl) { var xmlDoc; var xmlDoc2; if (window.ActiveXObject) { var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlHttp.open("POST", dataSourceUrl, false); xmlHttp.send(null); xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = false; xmlDoc = xmlHttp.responseXML; var nodes = xmlDoc.getElementsByTagName("LookupData"); if (nodes.length > 0) { var node = nodes.item(0); if (node.childNodes.item(0).text != null) { if (node.childNodes.item(0).text.split("`").length == "9") { FillAutoInfoValuesCanada(node, controlItem); } else { BlankAutoInfoValues(controlItem); //Defect 57092 } } …

Member Avatar
Member Avatar
+0 forum 3

On our site we have a "News and Information" section at the top of our landing page. Right now it looks like this: ![news.PNG](/attachments/large/2/edb1aaabb260ba04b597c3a2f4a351b3.PNG "align-center") I'd like to change this to look something like the image below, but I'm having a hard time figuring out how to do this, or if it's even possible? I am using bootstrap CSS as much as possible, but I don't see anything like this in their documentation. Any thoughts or ideas would be GREATLY appreciated! ![news3.png](/attachments/large/2/5832e2c5b5d674c5e3381f713a77bd4e.png "align-center")

Member Avatar
Member Avatar
+0 forum 5

Hello everyone pleas help me with this I need a formula that can convert my data into barcode with crystal report in visual studio 2013 and Connectcode trial version I'm new with this so any help will be great

Member Avatar
Member Avatar
+0 forum 2

Hello again Please your support with the next statement in vb.net and access database this is part of the code can you help me the error code is missing operator in query expression str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\MXDTBTZ3XC1\Users\MXDTBTZ3XC1\Desktop\refacciones web\surtido.accdb" con = New OleDbConnection(str) sql = "select * from material where IDDOS ='" & TextBox10.Text & "' AND MATERIAL ACEPTABLE = '" & TextBox14.Text & "'"

Member Avatar
Member Avatar
+0 forum 3

Hi all can you help me I really don´t know why my web app is being deformed when a message is shown I Been trying the update panel but it just does nothing when try to retrieve information from a database in access

Member Avatar
Member Avatar
+0 forum 2

Greetings, I am developing a backend website using ASP.NET. I had a 3 GridView controls within the page. I am using the jQuery to add a CSS class to third column of the 3 GridViews when the page in ready as I tried to add this class by setting the CssClass property of the column and it did not work. The problem is that I used an UpdatePanel to ensure a partial post back, however, when I used such panel when the page post back the class of the third column I add through jQuery is lost and the column …

Member Avatar
Member Avatar
+0 forum 1

Good afternoon everyone! I'm running into a small snag and it could just be because it's late and I'm not thinking clearly. I have an ASP Panel that is an alert box. The panel's initial visible property is set to false and should only be set to true when specific events happen and my ShowAlert(string message) method is called. Everything works great except that when the page posts back the alert re-appears when it shouldn't. This is because the ShowAlert(string message) method sets the visible property to "true" but nothing ever sets it to false again. The alert box can …

Member Avatar
Member Avatar
+0 forum 1

i have a problem with ASP.NET. IN Asp.net i designed a code such that all controls i generate in a dynamic manner line in page_load event i generate one Button also attaching click event with this when it clicks two more buttons are created dynamically.also i attached click event with this two button.when i click it one textbox is created and some message is displaed in it.but when i run this it shows first page with that one button.i clicked it.it shows two buttons.but when i click one of the two button it doesnot show that textbox it again shows …

Member Avatar
Member Avatar
+0 forum 1

The End.