62 Posted Topics
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 … | |
Hi, Im using a datagridview with a object as its datasource.. Im willing to provide sorting functionality for the same but as the datasource is object it is not allowing me to sort the columns in the gridview. is ther any way to achieve the same? i have visited the … | |
Hi, I'm willing to build a application which is very similar like an SVN application. (for more info on SVN, Please click [URL="http://en.wikipedia.org/wiki/Apache_Subversion"]HERE[/URL]. to see an example of SVN Please click [URL="http://tortoisesvn.net/downloads.html"]HERE[/URL].) Is it possible to build such an application in .net? i also want to know when the user … | |
Hi, I'm trying to build an windows application in C#, where i will be using Cache Application Block. I have downloaded the Microsoft's Enterprise Library (5.0), & also tried a sample too.. The sample works fine but there is a catch. I'm not willing to use a configuration file in … | |
Hi.. Im using VS08 to build my C# App. Im using a MVP architecture & LINQ. I have populated my datagridview. but my problem is, i want to sort the columns in the grid view whenver i click on the header of the column. There is no property to do … | |
hi.. im having a problem with a MDI forms..Im building an app where i need to call an MDI form in a MDI form.for ex., if MDI1 is my first MDI form, then i want to call the second MDI form, say MDI2, in the MDI1..that is MDI1 should work … | |
hi.. im using VS 2008 to build my app. i need to generate a report for a specific user. i have a SQl database which contains all my tables & Stored Proc's.. i have created a proc to retrieve data for tht specific user & used the same to bind … | |
Re: You can Sign out programatically using Session.Abandon() Method. To know more about Sessions click [URL="http://www.codeproject.com/KB/aspnet/ExploringSession.aspx"]here[/URL] | |
hi.. im trying to do some practice on interfaces when i found this problem. i just want to know that if i have 2 interfaces with the same method names. i can implement this 2 same method names in a derived class but i just don understand how to call … | |
hi.. im building an app wher i want to retrieve data from PDF which will be questions of some sort...like as follows.. A. Group A A.1 Whats your name? A.1.1 Whats your Middle name? A.1.2 Whats your sur name? The questions could also be like as follows.. A.1.1.2.3 question 1? … | |
hi all.. few ideas crossed my mind so i thought to discuss with you all & see if i get a good solution to build that application. usually i have seen that while surfing on the internet, or while on a skype call, i suddenly have to go out for … | |
hi.. i just wanted to know how can we create an installer for a website with the required packages in the same. the installer should check the host system for the requires softwares like .net framework or iis n etc. & if its not available then it should install the … | |
hi.. Im building an application in ASP.net where i have a button which should add more textboxes when clicked. the other textboxes are placed in a table so if i click the button it should a new row containin the textboxes.. please let me know wht code i can use … | |
hi... i just wanted to know how we can access the variable of 1 form to another form.as far as i know, ther is no session management concept in C#. for ex., i want to access my login id into the next form. then what will be the procedure to … | |
Re: you can make use of session variables. If the login is successful, then on the put this code [CODE] Session["id"]=[I]Id of the user[/I] Session["pwd"]=[I]password of the user[/I] [/CODE] & then redirect to the next page. on that page, on page load event, retrieve the session values as follows, [CODE] string … | |
Re: You can't update them directly. say, when u r in products page, insert the data into the database & load the admin page on its save button. or simply redirect to the admin page. & in the page load event of the admin page, write code to bind those 4 … | |
hi.. im trying to put my data on a server & work on the same from other machine..im using win2003 as OS of my server & on the other machine's XP is the OS. my problem is, when i try to run my C# applications from the other machines, it … | |
hi.. Im trying to install SQL Server 2005 on my server.. but at a certain point it is giving an error which is unknown to me..im attaching a snap of the error.please let me know how to solve this error.. What does that domain account mean??? wher i can create … | |
hi... im writing a code in which i need to upload some files like pdf's images etc on ftp....my code saves all the files on ftp properly...but ther is one form which allows user to delete the same contents from ftp..n d code written to delete the contents is as … | |
hi.. im using a a gridview with template fields which contains labels to display the dynamic data from database.. my problem is, i want to use paging concept in the gridview. but as im using template fields & a dynamic database, im getting an error.. this is how im binding … | |
Re: hi.. you cant add a calender control in a dropdown list..wht you need to do is, either use a button to show ur calender control or use Ajax Calender control. Click [URL="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx"]Here[/URL] for an Example. another way is to take a textbox control & place a imagebutton beside it. by … | |
hi.. im using a grid with a template field which contains a button.i just want to know how can i retrive a value from a 2nd cell of the same row... for ex. my grid contains 5 columns.the last col is a template field with a button. ther are say … | |
Re: Which database ur using?if SQL05 thn simply change the Identity specification property of the column to yes..it will automatically increment the value in that column. | |
Re: hi.. you want to restrict some specific words for a specific textbox? for ex, is it like you wanna restrict "abc","pqr","Xxx" for textbox1 & "^","&","#" for textbox10? or the words/chars are fixed for each n every textbox on the form?? you can either go for Regular expression or use client … | |
Re: you can even make use of sessions too... create a session on first page & on the 2nd n 3rd page check if any session exist or not. if session does not exist redirect user to 1st page... or create a session variable on first page (may be on your … | |
Re: try using following code, add the namespaces, [CODE]using System.Web.Mail; using System.Web.SessionState; using System.ComponentModel; [/CODE] modify the following code as per your convenience. [CODE]#region Code to send emails automatically //code for sending mail to Admin try { // Create a new blank MailMessage MailMessage email = new MailMessage(); // Set the … | |
hi.. Im using Sql server 2005 SP3 edition & i want to store my database on the live Database server..As i try to connect to the server normally, it gives me error, so i asked the server administrator, he asked me to connect to the server using Query editor. As … | |
hi.. i want to know how we can attach a ext. javascript to server controls like buttons or Imagebuttons. cause in my app. im using few image buttons. i want to change the image of image button on mouseover event, but when i try to write properties in my source … | |
hi im trying to upload a file with the help of fileupload control. im using following code to save the file in to the database [code] upPic.SaveAs(Server.MapPath("Images/") + txtPrdId.Text.Trim() + ".jpg");//System.IO.Path.GetExtension(upPic.PostedFile.FileName)); [/code] the file gets saved perfectly..but when i try to display the same image somewher else, it shows a … | |
Re: hi.. Check This code and modify it..i have used a datagrid with template field. [CODE] #region To Set Image links for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { HyperLink chk2 = (HyperLink)(GridView1.Rows[i].Cells[5].FindControl("hypImage")); Label lbl = (Label)(GridView1.Rows[i].Cells[4].FindControl("lblPrId")); string s = Server.MapPath("Images\\"+ lbl.Text + ".jpg"); FileInfo file = new FileInfo(s); … | |
hi... im using a word editor in my app..i want to save all the data in the word editor to be saved in microsoft's word. does anybody have a code to create and save the data into the word doc. automatically? like when i click a button, it should automatically … | |
hi.. im having an issue with a table's border..im dev. an asp.net website,in which im retriving some images from the database & showing them into a datalist. i hv used 18 datalists in a table for the proper alignment of the datalists & images. now, my problem is, when i … | |
Re: Set ur dropdownlists AutoPostback property to True, and write code on the SelectedIndexChanged property. for ex., you have items ABC,XYZ in your dropdownlist, then on SelectedIndexChanged event write a code something like this, [CODE] protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if(DropDownList1.SelectedItem.Value=="ABC") { //code to display statewise jobs.. } if(DropDownList1.SelectedItem.Value=="XYZ") … | |
hi.. im in need of a free word editor which can be used in my website.. if any1 knows where i can find it, please let me know.and also tell me how to use it too... Thanks.. | |
Re: you need to create a GUI for the same, & need to write code to add new menus.. Click [URL="http://tinyurl.com/yarz6lp"]Here [/URL] for some Menu Info | |
hi.. im retriving some data from a database to a dataset...i want to show the data in a gridview..but my problem is, i want data to be shown in last to first format. i mean, if the dataset contains, A as first record & z as last record, then the … | |
hi.. i just wanted to know what exactly sharepoint server does??..and how we can use it when building web sites? Please let me know if any1 is having a good Ebook or tutorials on Sharepoint server. i dont know anything about sharepoint server so i need info. from scratch.. thanks.. | |
hi.. im using file upload control to upload some files on my server. but the problem with the same is it uploads the files of specific size only. for ex, if i upload a file in KB's, it works perfectly...but when i try to upload files of more than 1 … | |
hi.. can anybody help me to encrypt/decrypt a string? i want to encrypt a URL along with the parameters... plz let me know if any1 knows some good resources for the same.. thanks.. | |
Re: Try this: [code] SqlConnection cn = new SqlConnection("Your ConnectionsString here"); SqlCommand cmd = new SqlCommand("Query to Retrieve data from database",cn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds, "Data"); gridview.DataSource = ds.Tables[0]; gridview.DataBind(); [/code] define the variables globally if u want to use them more thn once. | |
hi, how can we create a new session? n i also want to knw how can i generate a new session id everytime i visit a page. even if i use Session.clear/Abandon method, it generates a same session id everytime i visit the page. hoping for a reply soon Thanks | |
hi, i want to store a arraylist in a session variable & retrieve it on the other page. how it can be done.. for example, [code] ArrayList ar = new ArrayList(); ar.Add("a"); ar.Add("b"); Session["id"] = ar; [/code] now how can i retrieve the arraylist on the other page? i tried … | |
hi.. i want to knw how i can create a link to some website which is valid for 3 hours only..im building an app wher i need to send this link to a user with the page name in encrypted format n which will be expired in 3 hours.. forexample, … | |
hello frndz.. i really need some urgent help on a simple problem. im storing a string in a database, say its "1 2 3",these are actually the id's of something. in order to get the name from the ID, i need to seperate the id's from the string, that is … | |
Re: hi.. Check for the ConnectionString.if the path of the database is of you file system, then copy your database into your directory in IIS.and thne you need to change the ConnectionString. Hope this will help. Thanks. | |
Re: hi.. vuyiswamb's method is right. you can even use this method. take your calender control on a different form. and on event,say button click event,call the form by Javascript. Following is the code for the same. [code] protected void btnCalShow_Click(object sender, EventArgs e) { string str="<Script> window.open('form2.aspx','mywinodw','height=300,width=300') </script>"; Response.Write(str) } … | |
hello frends... well...i have got a prob here...im building a webuser Control and want to create a property for the same..i want to set multiple choices in the property box.i mean when ill use it on a .aspx form it should allow user to select to a value from multiple … | |
hello.. i just want to know how can i generate a new form using javascript which will be displayed just below one of my dropdownlist control. what i want to do is, i want a form to be generated just below a dropdownlist when i will click on a button.but … | |
hello frends.. i want to know how can we display a gridview in a drop down list? i want to retrieve some values from database and i want to show them into the a dropdownlist like displaying in a gridview. also when i select the item it should be used … |
The End.