13,153 Topics

Member Avatar for
Member Avatar for Ahmed_39

Hi 01 - i have create an sql function in my database that take to Date params with code: CREATE FUNCTION [dbo].[SelectEmployee](@frm_date DATE, @to_date DATE) RETURNS TABLE AS RETURN SELECT Emplo_ID, Emplo_Name, Work_Date FROM Employee_Data WHERE Work_Date BETWEEN @frm_date AND @to_date GO 02 - after that add it to project …

Member Avatar for Ahmed_39
0
607
Member Avatar for sushmaja.arumalla.9

I have a problem with the file upload control in MVC. My DOM element looks like @Html.TextBoxFor(m => m.logo, new { id = "logoUpload", type = "file", @accept = "image/*", @onchange = "showpreview(this);" }) onChange event looks like function showpreview(input) { if (input.files && input.files[0]) { var logo = $('#logoUpload')[0].value; …

0
136
Member Avatar for Violet_82

Hi, I run into an interesting thing. I'm looking into SQL a bit, and was reading some tutorial on W3C, so I built a small application to play with SQL queries: inserting info in a table and then retrieve it as it is, filter it etc. The table contains 5 …

Member Avatar for Violet_82
0
168
Member Avatar for Violet_82

I must admit I feel a little embarrassed to post this, but I don't seem to get this simple flipping application to work and I'm getting this error: Login failed for user ''. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

Hi guys, I'm in a bit of a situation here and I was wondering if anybody has any suggestion. Basically, I need to retrieve some data from 2 or perhaps 1 SQL table (that's what I'd like you to help me finding out). OK, here are my two tables (sure …

Member Avatar for Violet_82
0
305
Member Avatar for sachin.sonawane3

write a program to display a square root and cube of 1 to 10 number in a website using asp.net

Member Avatar for faheemsial
0
82
Member Avatar for alaad

Hello, I'm working an application with asp.net, but I have a problem in session.. I searched a lot about how to kill a session when browser closed but it has not any solution. Thanks for help.

Member Avatar for faheemsial
0
153
Member Avatar for AwaisAhmed88

I am working on a project, where we need to access multiple Web Forums API, I need a Generic way by using that I can get the User Data and Posts. For example these forums (nationstates, steampowered, simplemachines, StackOverFlow) provide their Api. So it is difficult to write 4 Methods …

Member Avatar for faheemsial
0
155
Member Avatar for coder91

Hi I am trying to export a gridview to CSV except i am getting an error due to some of the columns in the gridview not being visible. Was wondering if anyone knows how to fix this or a different way to export to csv. protected void gv_RowCreated(object sender, GridViewRowEventArgs …

Member Avatar for faheemsial
0
164
Member Avatar for jay.barnes

Hi, all I'm working with an aspx file that's supposed to check on a directory (on the same server the file lives on) to see if a file of a particular name exists. Based on its response, it's either supposed to create a link to that file, or, well, do …

Member Avatar for jay.barnes
0
190
Member Avatar for Sana Qureshi

Ok so i have been trying and trying to solve this issue, but to no avail. Therefore, i am posting here. Please note that i am a self learner and don't really know things in depth, just trying to learn.. So please be gentle. Here is my aspx code: <div …

Member Avatar for Sana Qureshi
0
304
Member Avatar for SpottyBlue

Can help? When in debugging mode of the database page (Database.aspx), I try to update the details by modifying the fields in the EditItem template. But then, when I click "Update", the data cannot be updated and shows the error message: "Data could not be updated. Please try again." ![Slide1.PNG](/attachments/large/4/b16bf4527be258f1bb5c1a405a0f878a.PNG …

Member Avatar for SpottyBlue
0
134
Member Avatar for jed.brundidge

I'm building an application in asp.net mcv, using Entity Framework and am running into some problems. My requirements are to take a pdf template and fill the pdf with information form a database. When try to return the data from the databse all I get is the EF genearted sql. …

Member Avatar for clairestreb
0
163
Member Avatar for maxpaine69

Hi all, I have a problem i have binding validation in WPF, aplication, but now because some rules some textboxes get disambled, and the validation shows same way, is there a way to disamble the validation when they are disabled and turn on when enabled? Best Regards

Member Avatar for clairestreb
0
188
Member Avatar for batoolhussain

hi all.I have a project that include creation of web page in asp.net and the language for my project is in vb.net2010 and I want to learn the language. Is it possible to propose a site or a book to help me to learn the language.

Member Avatar for JorgeM
0
86
Member Avatar for yoyoo

Hello there, I need to convert mdf file into sdf file using C#. Please any help will be greatly appreciated. Thanks a lot, yoyoo

Member Avatar for muka12
0
73
Member Avatar for coder91

Hi, I have a stored procedure that I have to send one parameter to. I then have to use the same stored procedure to display results, I'm not sure how to do this. Basically the system should allow the user to select an item, push a button (which is when …

Member Avatar for coder91
0
99
Member Avatar for PsychicTide

Dajia hao, daniwebians! Just a quick question, is it possible to focus on a textbox on an externally loaded website? My goal is to load an external website, focus on a textfield, auto fill it with the current date, then submit it to then run my newly created scraper tool …

Member Avatar for PsychicTide
0
2K
Member Avatar for SpottyBlue

When I was debugging the database page (Database.aspx), I encounter one problem. When I want to edit something by clicking the “Edit” button, some values were mismatched to other options instead to matching to the related option. ![help.png](/attachments/large/4/b0fcde48465b822d7f762bd21534c3cc.png "align-center") Actually, if I click the "Edit" button in the Item template …

0
126
Member Avatar for KhuramJan

I am using Visual Studio 2012 Ultimate , MySql Database , MySQL ODBC 5.1 Driver I have created a user DSN from Administrative tool in Control Panel (same on both my development PC and Server computer i-e Windows Server 2008) I have deployed web application from my PC to Server …

Member Avatar for KhuramJan
0
606
Member Avatar for coder91

Hi, trying to get the username of the user logged into a computer but it doesn't appear to be working. I was using `Label1.Text = User.Identity.Name;` to check if it did work but it wasn't displaying anything. The only reason I need the username is to send it through to …

Member Avatar for JorgeM
0
165
Member Avatar for PerplexedB

I have this Linq expression that works well. What is the right approach to test if it has returned anything? internal static void getCreditNotes(string invoiceId, out DataTable creditNotes,out double total) { total = 0; creditNotes = new DataTable(); var q = dt.AsEnumerable(). Where(r => (string) r["invoiceId"] == invoiceId && (string) …

Member Avatar for PerplexedB
0
217
Member Avatar for Violet_82

Hello, I'm building an expenses application in asp.net and I'm attempting to insert some data in a SQL database in visul studio but I get the following error (screenshot here http://s13.postimg.org/4kjmn4nev/SQL_error.jpg): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_expenses_ToexpenseCode". The conflict occurred in database "Applications", table "dbo.expenseCode", column …

Member Avatar for djjeavons
0
3K
Member Avatar for xrjf

By means of Mates8, graph coding becomes a bit easier. The web page has four textboxes so the figure gets bounded to the left, right, top and bottom; and a draw button. Additionally, a panel control will contain the image generated by the code after the button is pressed.

Member Avatar for xrjf
0
568
Member Avatar for coder91

Hi, so for my .net project I've to use HTML/CSS provided by another colleague. Ive copied this into the site master page in .net but it doesn't appear in the child pages, anyone have any ideas how I can fix this. The code is: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" …

Member Avatar for coder91
0
318
Member Avatar for markdean1989

Hi I am working on a simple C++.Net project which will allow me to run another program (e.g., I. Ex., Word etc.). However, I can't seem to find any working codes online. Here are the codes I have found so far; ShellExecute(GetDesktopWindow(), "open", "c:\myTestFolder\myfile.exe", NULL, NULL, SW_SHOWNORMAL); requires the inclusion …

Member Avatar for markdean1989
0
340
Member Avatar for pritaeas

I have the following: <h1><asp:Literal runat="server" Text="<%$ Localize:LoginRequest %>"/></h1> <fieldset> <legend></legend> <input runat="server" class="form-control" placeholder="E-mail" type="text" /> <input runat="server" class="form-control" placeholder="Password" name="password" type="password" value="" /> <button runat="server" type="submit" class="btn btn-default"><asp:Literal runat="server" Text="<%$ Localize:Submit %>"/></button> </fieldset> `Localize` is a custom expression builder to translate my strings from a resource file. I …

Member Avatar for pritaeas
0
193
Member Avatar for coder91

The project i am currently working on has an HTML/CSS layout which consists of 3 columns, the first contains a menu to access the various pages. When one of these options is selected the page appears in the second column and the same for selecting anything from the second column …

Member Avatar for JorgeM
0
152
Member Avatar for coder91

Hi, recently started a new job where I will creating .net applications, however there is one person who designs the html and css in notepad++ and then puts it onto the local server which I can then pull down onto my own machine. I was just wondering how I link …

Member Avatar for coder91
0
183
Member Avatar for Salvius12

I cannot figur this out ive been researching. Changeing code structure, Everthing I could think of to get this to work but it keep giving me errors here is the error I get Im pretty sure somewhere in the code its holding onto the file but I dont know where …

0
184

The End.