Click here to Skip to main content
15,894,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to call javascript function in page_load event without any control attachment Pin
xodeblack12-Jan-10 6:22
xodeblack12-Jan-10 6:22 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
N a v a n e e t h12-Jan-10 6:50
N a v a n e e t h12-Jan-10 6:50 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
Abhijit Jana12-Jan-10 6:59
professionalAbhijit Jana12-Jan-10 6:59 
GeneralRe: How to call javascript function in page_load event without any control attachment Pin
xodeblack12-Jan-10 7:15
xodeblack12-Jan-10 7:15 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
Brij12-Jan-10 8:16
mentorBrij12-Jan-10 8:16 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
Pranay Rana12-Jan-10 19:02
professionalPranay Rana12-Jan-10 19:02 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
carlecomm13-Jan-10 19:17
carlecomm13-Jan-10 19:17 
QuestionPlease help,I have a problem checkbox in griedwiev Pin
silayse12-Jan-10 6:03
silayse12-Jan-10 6:03 
I added checkbox on gridview this method:
asp:TemplateField>
<
ItemTemplate>
<
asp:CheckBox runat="server" ID="CheckBox1" />
</
ItemTemplate>
I want to save selected values another table but I did not achive.First I try this code and then I will convert this delete statement to select statement ,it deletes checked value but there is sql exception ID =@ID and keyid=@keyid"; I think this values should be primary key,but I cant set primary key in a table both of them(keyid my primary key now I need this primary key when user select one row ).Please give idea,I tried most of things and tired

string connStr = ConfigurationManager.ConnectionStrings["bdConnectionString"].ConnectionString;
string sql = "Delete From ekleme Where ID =@ID and keyid=@keyid";
SqlConnection conn = new SqlConnection(connStr);
SqlCommand cmd = new SqlCommand(sql, conn);
cmd.CommandType =
CommandType.Text;
SqlParameter keyid = cmd.Parameters.Add("@keyid", SqlDbType.Int);
SqlParameter ID = cmd.Parameters.Add("@ID", SqlDbType.Int);
keyid.Value = Session[
"keyid"];
string str = "";
for (int i = 0; i < GridView1.Rows.Count; i++)
{
GridViewRow row = GridView1.Rows[i];
bool isChecked =((CheckBox)row.FindControl("CheckBox1")).Checked;
if (isChecked)
{
str =
"Seçildi";
conn.Open();
ID.Value = GridView1.Rows[i].Cells[0].Text;
cmd.ExecuteNonQuery();
}
}
Response.Write(str);
QuestionRefreshing a part of webSite Pin
jojoba201012-Jan-10 3:47
jojoba201012-Jan-10 3:47 
AnswerRe: Refreshing a part of webSite Pin
Vasudevan Deepak Kumar12-Jan-10 4:06
Vasudevan Deepak Kumar12-Jan-10 4:06 
QuestionRe: Refreshing a part of webSite Pin
jojoba201012-Jan-10 4:41
jojoba201012-Jan-10 4:41 
AnswerRe: Refreshing a part of webSite [modified] Pin
DJ Matthews12-Jan-10 5:16
DJ Matthews12-Jan-10 5:16 
QuestionRe: Refreshing a part of webSite Pin
jojoba201012-Jan-10 5:28
jojoba201012-Jan-10 5:28 
AnswerRe: Refreshing a part of webSite Pin
Abhijit Jana12-Jan-10 5:34
professionalAbhijit Jana12-Jan-10 5:34 
AnswerRe: Refreshing a part of webSite Pin
DJ Matthews12-Jan-10 5:35
DJ Matthews12-Jan-10 5:35 
QuestionRe: Refreshing a part of webSite Pin
jojoba201012-Jan-10 6:33
jojoba201012-Jan-10 6:33 
QuestionPrint document from remote system Pin
sarang_k12-Jan-10 2:45
sarang_k12-Jan-10 2:45 
AnswerRe: Print document from remote system Pin
Vasudevan Deepak Kumar12-Jan-10 4:06
Vasudevan Deepak Kumar12-Jan-10 4:06 
QuestionHide server control with JavaScript! Pin
awedaonline12-Jan-10 2:26
awedaonline12-Jan-10 2:26 
AnswerRe: Hide server control with JavaScript! Pin
Viral Upadhyay12-Jan-10 3:02
Viral Upadhyay12-Jan-10 3:02 
AnswerRe: Hide server control with JavaScript! Pin
Brij12-Jan-10 5:14
mentorBrij12-Jan-10 5:14 
GeneralRe: Hide server control with JavaScript! Pin
awedaonline13-Jan-10 3:30
awedaonline13-Jan-10 3:30 
GeneralRe: Hide server control with JavaScript! Pin
Brij15-Jan-10 21:10
mentorBrij15-Jan-10 21:10 
Questionpermission denied error in WebResource.axd Pin
Amit Patel198512-Jan-10 1:53
Amit Patel198512-Jan-10 1:53 
GeneralRe: permission denied error in WebResource.axd Pin
Pranay Rana12-Jan-10 18:12
professionalPranay Rana12-Jan-10 18:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.