Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: Raj Parashar [x]
Answer 4 May 2013   license: CPOL
Just make sure to add this in your app.config file. and then it should work.
Checked List box value by Raj Parashar
Answer 19 Apr 2013   license: CPOL
Use the following to achieve your goalprivate void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e) { if (checkedListBox1.CheckedItems.Count == 0) { MessageBox.Show("This Client does not have any groups associated with it.", "No...
dropdwonlist in ASP.NET by Raj Parashar
Answer 19 Apr 2013   license: CPOL
Here comes your solution//datatable here is the collection of data from which u want to select MCPfor(int i=0;i
Answer 15 Apr 2013   license: CPOL
all of the above you want to have the data in a dataset or datatable right. so pls do the following which should solve your problem//get course ids for this teacherstring cmd1 = "select course_id from course_teacher where teacher_id='" + Session["t_id"] + "'";SqlDataAdapter da1 = new...
Answer 15 Apr 2013   license: CPOL
Do the following protected void ImageButton1_Click(object sender, ImageClickEventArgs e){ if (Session["Name"] == null) { } else { temp(img13.ImageUrl); }}protected void temp(string imgUrl) {//here u can simply use the variable imgUrl ...
AjaxControl toolkit problem by Raj Parashar
Answer 15 Apr 2013   license: CPOL
Exception Details: System.Web.HttpException: A page can have only one server-side Form tag.This line clearly says that you have extra form tag which means your master page already has a form tag so you can't declare another form inside content place holder so simly remove the following...
C#
Forum Message 14 Apr 2013  
Sorry for the inconvinience sir. However this is the first time i hav tried to write an article so completely new to this part and don't know how to expand the wording and write convincing text. So i
Re: A little short by Raj Parashar
Forum Message 14 Apr 2013  
Sorry for the inconvinience sir. However this is the first time i hav tried to write an article so completely new to this part and don't know how to expand the wording and write convincing text. So i
Answer 14 Apr 2013   license: CPOL
write the following line of code and it should do your workScriptManager.RegisterStartupScript(this, this.GetType(), "alertmessage", "javascript:confirm('Do you want to move to other page?')", true);Response.Redirect("Nextpage.aspx");This code in any case redirects to the next page...
Answer 14 Apr 2013   license: CPOL
You need to set startup position of your childs to center to parent and all forms would open at same location. consider the following code for same. frmCreateClient childForm = new frmCreateClient(); childForm.MdiParent = this; childForm.Text = "New Client"; ...
Answer 14 Apr 2013   license: CPOL
u need to set image url of the image control to exact as the Url of the image along with correct extension(.gif,.jpg,.bmp) and after doing the same you do not need to change anything in the code afterwards.Whatever image you will upload to the url with same name and extension it will...
Answer 14 Apr 2013   license: CPOL
String was not recognized as a valid DateTime.this error generally comes when you try to parse(dd/MM/yyyy) string value to datetime which is not acceptable.Either store date in your string as (dd/MMM/yy) or (MM/dd/yyyy) and then convert it and it must work.hope it works...
Answer 14 Apr 2013   license: CPOL
The problem is you are filling your 1st drop-down list in form load and every time some event happens it loads the form i guess u have not kept update panel so again it fills your first drop down and causes selected index changed event to fire which makes your dropdown2 selected index 0 again...
Answer 14 Apr 2013   license: CPOL
I guess following is what you were looking for. However this is just an example how u can load images in a control. Rest, being a developer i guess u can do...using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using...
Answer 14 Apr 2013   license: CPOL
i guess if you change your code a little bit as following then there should not be any problem Child ChildForm=new Child();ChildForm.mdiparent=this;childForm.Dock=DockStyle.Fill;childForm.Show();i am sure it will work on both xp and win7.
Answer 14 Apr 2013   license: CPOL
Dear C# has predefined function to check if the entered character is digit or alphabet on keypress event.//consider following code to get your problem resolvedPrivate void textBox1_KeyPress(object sender, KeyPressEventArgs e){if (char.IsDigit(e.KeyChar)){//your code here}if...
Answer 14 Apr 2013   license: CPOL
In grid instead of normal column use itemTemplate and place Textbox in it and then try to drag the div data to your grid. It won't reject your request :)Try to implement following line of code in your GridView ...
Answer 14 Apr 2013   license: CPOL
On click of your Login Button validate the user with database if the user is valid just write the following:-protected void btnLogin_Click(object Sender,EventArgs e){//User validity check here//you need to have two textboxtes on login page called...
Answer 14 Apr 2013   license: CPOL
how can i these record to previews Table by new identity Primary key ?If it just about displaying the data twice then no need to insert duplicate data in your table simply follow the guidelines belowOleDbConnection con = new OleDbConnection ();con.ConnectionString = "your...
Answer 14 Apr 2013   license: CPOL
Follow the following code and i am sure it gives you the desired result---//The following line gives you the last 2nd row--ds.Tables["title"].Rows[ds.tables["title"].rRows.count-2]["Your Column name here"].ToString();//Similarly The following line gives you the last 3rd...
Answer 14 Apr 2013   license: CPOL
as you just need to display time and you have asp.net page which gives you the flexibility of code behind model so you can use form load part of serverside code and simply write the followingProtected void Form_Load(object sender,EventArgs...
Answer 14 Apr 2013   license: CPOL
Have item template field for circle as linkbutton and itemtemplate field for your values as Label and in gridView_RowDataBound check the value of the label if the value is greater that 0 then enable the link and if the value is 0 then disable the link. Following example explains the...
Answer 14 Apr 2013   license: CPOL
However you have not written the error which is coming but still after watching your code i found following suspicious line which may cause in not updationdt.Rows(0)("OnHand") = dt.Rows(0)("OnHand") - rs.Tables("TPlt").Rows(0).Item("FullQty") -...
Answer 14 Apr 2013   license: CPOL
Following example explains the to set value to Item Template controls----- //Add onRowDataBound event to your grid and write the following code server sideprotected void gridView1_RowDataBound(object sender,GridViewRowEventArgs e){ //make sure to have UserID as itemtemplate in your...
Answer 14 Apr 2013   license: CPOL
It may look funny but try executing following way{String store = Request.QueryString["id"]; SqlCommand cmd = new SqlCommand();cmd.CommandText = "select spec from computer where prod_name is '"+store+"' ";DataSet ds = new DataSet();SqlDataAdapter dap = new...
Answer 14 Apr 2013   license: CPOL
can you confirm why you want to redirect to three pages, instead of redirecting when you click on back button displau your 1st two pages as popups and redirect to the third url which should definately solve your problem.for opening popup u can use Page.regiserStartupScript(-----------------)...
problem in grid view by Raj Parashar
Answer 14 Apr 2013   license: CPOL
Very 1st thing you add commandname to the following line in your codeActivatenow in in first grid rowcommand track the unique id of the row using following code and store in a label//u must have lblUniqueid and your...
Answer 14 Apr 2013   license: CPOL
even you can simply set timeout at the default.aspx page load by writingSession.Timeout=30000..and so on........which renews session every time the default page loads
Answer 14 Apr 2013   license: CPOL
well what you can do is while the user click on signup send an encrypted unique code to the email address entered alons with your URL as query string and store the decrypted value along with user info and make the status of the user De-active.When the user clicks the link and comes to your...
Answer 13 Apr 2013   license: CPOL
A quick and effective solution i would like to tell you that you keep your exe in a shared folder in the server and from client system access the folder and right click on the exe and send shortcut to desktop.That's it and it will work for sure.Do let me know if it doesn't work.
Answer 12 Apr 2013   license: CPOL
Dear by the following method you can get your work done1. Read all email-ID in a datatable2. use the following method to check ifthe email is valid//suppose datatable name is dtif(dt.Rows[0]["Email"].toString().indexOf("@")>0) {string...
Answer 12 Apr 2013   license: CPOL
You need to install SAP Crystal Report runtime engine on the system and your reports will run perfect.
C#
Answer 11 Apr 2013   license: CPOL
As the user clicks to open a video or word or pdf file start a timer in your program and track the running process of the application and as the process gets closed fire your next event.for e.g if someone opens video in media player u can see in task manager a process starts and as u close...
C#
Answer 11 Apr 2013   license: CPOL
what i suggest is do not try to save data in marathi format as this is not your requirement. According to your requirement you need to display data in marathi right.so use the same font shivaji01 in your reports to display the data or anwhere wherever you need to display the data and your...
Answer 11 Apr 2013   license: CPOL
Using With operator u can access record of any form from any form. E.g.If Form1 contains txtNametxtAgeand u want to fetch data from Form2 then following action u can performin form2 load or any event where u want to call data write following codewith Form1Dim name as...
VB6

Page 1 of 1


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid