|
i m jst using using simple form.as soon as i use to add regular expression control this error comes...
|
|
|
|
|
I think there may be problem with your web config file . please send me the conf file.
|
|
|
|
|
i have mailed u config file
|
|
|
|
|
I dont know whether it is correct..
Please change the version as 2.0.0.0 and then try
"System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
|
|
|
i hav tried its not workin....
|
|
|
|
|
i have list in which i have object of one class say emp
i want to find out all duplicate emp from list
meanse if two object with same emp.id
how can i do that
|
|
|
|
|
nikhil1234 wrote: how can i do that
Use List<> to store your employee and implement the following -
Distinct(IEqualityComparer<(Of <(T>)>))
You can use your own implementation of IEqualityComparer[^].
|
|
|
|
|
Dear Sir,
I am going to develop a program where I need live gold price.
i want international gold price per gm or any other unit.
how can i do this.
is there any web service available for live gold price.
please help me
syed abid ali
abidali_gyro@yahoo.co.in
thanks in advance
|
|
|
|
|
Did you check out the followings?
1.WebServiceX[^]
2.Xignite[^]
I guess there might be plenty if you google it. I just searched in google and got the above.
|
|
|
|
|
Hi syedabidali,
Refer the following link
http://www.goldalert.com/free-interactive-gold-charts/
|
|
|
|
|
|
Use upload control
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
Simi SA wrote: code of uploading a picture in ASP.NET?
welcome to Code Project,
This seems to be your first post in this forum....
Before posting better read http://www.codeproject.com/Messages/1278599/How-to-get-an-answer-to-your-question.aspx[^]
The code for your question is:
drag a fileupload from the toolbox and write the code as below....
protected void btnupload_Click(object sender, EventArgs e)
{
String savePath = Server.MapPath(@"your path\\");
if (FileUpload1.HasFile)
{
String fileName = FileUpload1.FileName;
savePath += fileName;
FileUpload1.SaveAs(savePath);
}
else
{
//your error message
}
}
|
|
|
|
|
Simi SA wrote: code of uploading a picture in ASP.NET?
Check here[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi all
I have a grid view which is used to delete the data in it. I want the data to be stored in another table before it is deleted from the actual table. The database is in Oracle. I am using the following code.
Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As GridViewDeleteEventArgs) Handles GridView1.RowDeleting
Dim oradb As String = "Data Source=(DESCRIPTION=" _
+ "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Mahasilbkp.ltuisb.net)(PORT=1521)))" _
+ "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=db21a)));" _
+ "User Id=<userid>;Password=<password>;pooling=false;enlist=false;"
Dim conn1 As New OracleConnection(oradb)
conn1.Open()
Dim cmd1 As New OracleCommand
cmd1.Connection = conn1
GridView1.DataBind()
cmd1.CommandText = "insert into uu.record_backup(ntn, name, status, enf, aud, sector, delete_user) select ntn, name, status, enf, aud, sector" + ",'" + Label5.Text + "'" + " " + "from uu.total_cases where trim(ntn)=" + "'" + GridView1.SelectedValue + "'"
Dim dr1 As OracleDataReader = cmd1.ExecuteReader()
dr1.Read()
dr1.Dispose()
dr1.Close()
cmd1.Dispose()
conn1.Dispose()
conn1.Close()
End Sub
The insert command execute perfectly if I remove the GridView1.SelectedValue. But it does not give the desired result as I want the value displayed in the data grid to be inserted only, before it is deleted. What happens in the above code is that data is deleted from the actual table, but nothing is inserted in the backup table described in the code above. I understand I need to write something else instead of GridView1.SelectedValue, but I can't think of anything else. Please help me with this.
Thanks.
|
|
|
|
|
I think there may be some mistake in your query. Please refer Trigger concept to implement your desired results.
|
|
|
|
|
If there's mistake in query then how come it runs when i remove the GridView1.SelectedValue from it. I just need to get the value of the first column in the grid view. For that I need help. Thanks.
|
|
|
|
|
protected void grid_category_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
clsclass comfun = new clsclass(); // your main class or
sqlcommand cmd;
Label val = (Label)(your_grid.Rows[e.RowIndex].FindControl("lbl_id"));
comfun.ExecuteNonQuery("delete from evaluation_category where
evaluation_category_id=" + val.Text);
Label val1 = (Label)(your_grid.Rows[e.RowIndex].FindControl("lbl_1"));
Label val2 = (Label)(your_grid.Rows[e.RowIndex].FindControl("lbl_2"));
Label val2 = (Label)(your_grid.Rows[e.RowIndex].FindControl("lbl_3"));
cmd.executeNonQuery("insert into table values('"+ val1.text +','' + val2.text
+'',''+ val3.text+'")
// or done this query in storedprocedure
// or both query can be done in same procedure
// first remove value from first table then send thia to next one simple
FillGrid(); // bind your grid
}
Try this.
|
|
|
|
|
I tried your code and it's giving the following error
Object reference not set to an instance of an object.
It's coming in the line where I am using "val.text" in the insert statement.
|
|
|
|
|
Guys please help with putting GridView Value to a Label Text and my problem will be resolved.
Thanks
|
|
|
|
|
i m working with C#.net and at the back end access database
i have four tables in my database
category
Images
employee
&
empinfo
the first three tables above have the primary keys made foriegn keys in the table of empinfo
now i need a code in C#.net
how to store all the information in the tables of "category", "Images" and "employee" and finally in the table of "empinfo"
new to C#.net programming
plzzzzz can anyone help????
|
|
|
|
|
I would like to say one thing, make sure to put all insert statement in signle transaction.
It is mean firt do the Bigin Transaction
Update/Insert first table
......
Commit transaction
If anywhere exception occured then do the Rollback transaction.
Note: Insert or Update query you can find on google.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
I want to create a website about live video chat so how can i get video of webcam and audio in webpage..
Please show me any idea any 1 have...
Thanks in advance....
|
|
|
|
|
ASP.Net does not provide any way to do this.
And I am sure that this is not that easy to implement on your own untill and unless you have a ready component available which youn can directly use.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
ya i knw dat no direct control avilable but den how cn i do it else way ??
Wat abt activeX control ??
i dont knw hw to embedd activeX control in webpage ???
|
|
|
|