13,153 Topics
![]() | |
Hi All, I have a problem with this piece of code: [code] string fileName = Label1.Text.Replace(" ","_") + ".jpg"; string localImageUrl = Server.MapPath(@"Images\" + fileName); [/code] The image does not show. When I ommit @Images\ abn move the images to the root of the project the image does show. any … | |
Hi There, I had this post before,but I have some problems when I add a header for specific charcter set,and also add some additional data, here is my code; [code] Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=aname.xls"); string header = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<title></title>\n<meta … | |
do you find websites written in ASP.NET somewhat slower? are ASP controls like gridview, datagrid etc heavy on page? what are do's and don'ts of ASP.NET if it comes to speed and security? | |
I have googled it so many times, and I still feel clueless about what language I should go with. I feel comfortable in ASP.NET, and I have coded some small stuff here and there in PHP too. 1) I do not have visual studio 2008. I have Visual Studio 2005. … | |
Hi, I am doing forum project. I have a doubt, tat how to count the value. that is, all the data which displays in gridview. in tat i need to show the reply value [count the value from database].it means in database i hv field lke pid,pstreplyid,uid,tit,sub ...., in tat … | |
Is it possible to develop a case tool for asp.net like we have case tool for UML? the case tool will guide to generate asp.net based websites or simply asp.net codes. I want it to develop using Asp.Net. Please suggest is it possible to do this? | |
Well, frankly I am new to ASP.NET and am required to make a project in it. I dont think that learning it will be tough as I already know ASP. Is ASP.NET just a step further from ASP??? Also could you please suggest me some ideas of which kinds of … | |
Hi, In Gridview, it have three Auto generated fields and one template fields (CheckBox) which Header text is Select. This Allow to paging true and Page size 10. When we have more than 10 rows, so we have to select second indexing. But i have a problem that when i … | |
Hello, I couldn't bind subreport's datasource which,itself is a subreport of another report. Can you guys help me out ? Thanks. | |
I am entering comments in the source view of my .aspx page and after several times saving, building and browsing, my comments are gone! I know the format is correct: <%-- My GRIDVIEW --%> I think it may have something to do with cut & paste but I'm not sure … | |
Hello experts, I have one page default.aspx.. I inherit one master page Masterpage.master in default.aspx. I want to refresh only my master page but not the content place holder of default.aspx.. pls give me an advice. Thanks in advance.. | |
I have one page which is placed in the Master Page. In the master page i have 1 dropdown and one GridView, dropdown is display the category , based on the dropdown list selection it will display the list of videos in the Grid. In the content page i have … | |
Hi all, I am beginner learning ASP.NET with C# as the programming language. Currently I am working with HTTPSERVERUTILITY. I have created a web form named as Default.aspx and Default2.aspx: I have written the following coding : Default.aspx: In source view [code] <body> <form id="form1" runat="server"> <div> <asp:Button ID="Button1" runat="server" … | |
Hi i am assigning binary value from sqltable to byte array The error i am getting is Cannot implicitly convert type 'System.Data.DataColumn' to 'byte[]' Byte[] bytes = (Byte[])ds.Tables["Photo_Det"].Columns["Photos"]); | |
Hello, I have an ASP.NET website that uses Windows Authentication to authenticate users against Active Directory. How can I implement a "Sign-On as Different User" just like SharePoint 2007? Our SharePoint site uses Windows Authentication as well and when you click to "sign-on as a different user" you are prompted … | |
Hey guys, in my website the user uploads 3 random files. I've uploaded these in a folder on my machine using the FIleUpload Control. But now i want to give a link to the user to download the uploaded files. This is what i've done so far: [CODE]HyperLink link1 = … | |
I want to send another ajax request when one request is in process to get the status of first request. This is working fine if no session data is set before calling the request. If I set data in session and then call both the request the second request gets … | |
HI.. I'm Testing a Web application for Pharma Co. Im fresher into this field. So kindly help me out as in the above said title.... | |
Hello, How to develop opc com server without and how to detect opc com server list opc foundation? Please advice me Thanks | |
Ok so i have a Function that connects to a database and runs the executeschaler() command. the executeschaler is attached to an object. When running the command it will search the database for ceartin information and return certain values, however it returns an error when i use the Try End … | |
Hey Guys, I have a textbox which had readonly property set to true. This textbox is used to take LongDate as it's input from a pop up calender. When i click on the button, it gives an error "String was not recognised as valid datetime" But when i set the … | |
how to read and write the xml file in c# and assign to a string | |
Here i am converting image to binary and saving it in sqltable , i got this code from some website but NOW I DONT KNOW THE WAY TO RETRIEVE THE BINARY DATA FROM SQL TABLE AND CONVERT IT BACK TO **IMAGE FORMAT** AND DISPLAY IT IN WEBPAGE public byte[] FileToByteArray(string … | |
Hey guys, I'm trying to run a javscript on a page which also has a master page but it won't run. Please tell me the procedure for it. | |
I have a TextBox and a button in y asp.net page which also has a mster page file inherited. When i click on the button a calender pops up in a new window which does not have any master page file inherited. i want the selected date to go into … | |
I have one page A . in that page i bind flash player in datalist. it plays all the video for 20 sec which are available in Data base.. if i click one video it redirect to page B playing the video.. I tried .. I want to know how … | |
hello experts, Can u tel me what is .net framework in 2 lines? and also definition for INTROPERABILITY, ABSTRACT, METADATA, MANIFEST ? | |
Hello, i am designing a music site where i need to play the songs on click on the songname as we see in diffrent sites so can i get an help how can i get the song url using database. Thanks, Suhasini. | |
Hey peoples, im a complete newbie to ASP.NET. Basically i just need to validate a textbox so that only a 4 digit number can be inserted. Wat code should i use (im using VB as my source language and it's not a code-behind). This is the asp textbox validation attributes: … | |
how to capture keypress or keydown in textbox using asp.net with c#.net. can any one give me some help | |
asp.net c# sql server I have a web form that I use to insert data into a sql database. I want to know how to prevent inserting duplicate records into the database. Thanks. Ichu | |
hi, I'm trying to get daya into a new table via form. two fields in new table will pick up data based on look up tables. pls guide as to how do i proceed . The code is flashing conversion of Data type error. To avoid the datatype error, i … | |
i've created a stored procedure to display a gridview. but in my DDL i only want to display the whole column instead of the whole row. can anyone help me? | |
Hi, this is really a beginner question: when I start debuging an ASP.net projet in VS, IE opens up to display the Default.aspx webpage and the following URL is in the adress bar: [url]http://localhost:52480/Default.aspx[/url]. My page including C# codebehind controllers works fine. If I stop debbuging and I try to … | |
Hi All, I have an asp.net page containing an image of size 200x200. Now I want that on click of this image open a new pop up window that show image of size 400x500. Please tell me this problem is in asp.net. Thanks in advance. | |
Hi here image is getting converted into binary and getting inserted into sqltable . [B]Now I want the opposite of it i mean i want to retrieve the binary data and display it as image. [/B] [code]protected void btnupload_Click(object sender, EventArgs e) { // set temporary variable for database connection … | |
I have to do this in 3 hours. I know it calls for a good loud laugh , but i am a newbie. Question is I have to browse and upload images in the design part of sample.aspx page and in the code behind before uploading(inserting) into the sql table … | |
Hi All, It's me again with another question! I have a table in .aspx file on each row inside each cells I have controls such as Label, TextBox and Field validator. So what I want to do is give a user a CheckBox control if the user checks the CheckBox … | |
i have an another web config file inside another folder.. How can i get the connection string From the above web config file? | |
Hi I created web application using visual studio and I want to link it to html page using front page when I run the HTML page I got the following error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and … | |
Hello, some help here.. I have a gridview, at my home page, binded to a dataset. On the first column is a hyperlink, on which, if click it will go to another, page, Viewer Page, and passes the data to display on the other page pls advise, preferably in c#.. … | |
Hello, I am just starting to do few web application and I have 2 questions to ask..Does anyone know how to count the number of files inside a folder? I am currently creating an application where I can upload images to my website. Whatever the image name is, it has … | |
I have recently developed one website. After uploading this website to the server, I have received a few security exception on errors on some of my pages. I contacted my hosting provider on this and they have told that "it seems that your website is requiring asp.net full trust environment. … | |
Hi I m using asp.net as front end and MS Access as backend,,,,,and most of the help on internet is regarding asp.net and SQL Server,,,,,from where can i get help reharding asp.net and MS Access | |
Suppose I am using the code below to display image [CODE]<img runat = "server" width = "50px" height = "50px>[/CODE] However, the original size of the picture is 500 * 500. So, in terms of bandwidth load, would it be same as displaying the picture in 500*500 dimension or do … | |
I have done a project in .Net 2008 with .Net Framework3.0 and ajax3.0. I have to integrate SubText blog in my project.. But the Subtext blog has Framework1.0 and Ajax1.0. How can i integrate this SubText blog with my Project.. Help me in this regard.. Thanks in advance.. | |
I'm new to ASP.NET so i'm probably asking a very stupid question so apologies!! I have 4 pages in my site so far. I want all of them to display the same page title. E.g My Website Title > A Small Description of the page Do i need to create … | |
I want to use ASP.NET to do video stream. But I didn't know how to start. Any sugestions? Thanks | |
Hi, hopefully someone can help with this as it has been driving me crazy for a few days now. On my master page I have a databound (from oracle) menu. This menu will always be same when the user logs into my site. The other menu however is created on … | |
Hi, I want to display the result of a XLS transform to an ASP web page. The C# codebehind I actually have (triggered from button in the ASPX webpage) displays the result of a transform "sample1.xslt" to an HTML file "result.html"... I wonder what can I use instead of XmlTextWriter … |
The End.