Click here to Skip to main content
15,902,198 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to set the color when mouseover on a linkbutton? Pin
Seraph_summer17-Aug-09 10:30
Seraph_summer17-Aug-09 10:30 
GeneralRe: how to set the color when mouseover on a linkbutton? Pin
Abhijit Jana17-Aug-09 10:34
professionalAbhijit Jana17-Aug-09 10:34 
GeneralRe: how to set the color when mouseover on a linkbutton? Pin
Seraph_summer18-Aug-09 10:46
Seraph_summer18-Aug-09 10:46 
QuestionAjax Control ToolKit Problem Pin
pampam11017-Aug-09 9:30
pampam11017-Aug-09 9:30 
AnswerRe: Ajax Control ToolKit Problem Pin
Abhijit Jana17-Aug-09 10:06
professionalAbhijit Jana17-Aug-09 10:06 
GeneralRe: Ajax Control ToolKit Problem Pin
pampam11017-Aug-09 10:11
pampam11017-Aug-09 10:11 
GeneralRe: Ajax Control ToolKit Problem Pin
pampam11020-Aug-09 3:11
pampam11020-Aug-09 3:11 
QuestionGetting crazy with datalist-volume 2- Pin
Ersan Ercek17-Aug-09 9:22
Ersan Ercek17-Aug-09 9:22 
Hello,

For some reason I need to know which image-button causes postback. The following code does this job very well (according to coordinates). However when I click on a image button in a datalist. Somehow datalist items disappear. When I disable the codes(at pre_init) that calls the following function, the image button of the datalist works very well. Does anybody have any idea? Only you gurus would help me. Thanks in advance.


private string getPostBackControlName()
{
Control control = null;

string ctrlname = Page.Request.Params["__EVENTTARGET"];
if (ctrlname != null && ctrlname != String.Empty)
{
control = Page.FindControl(ctrlname);
}
else
{
string ctrlStr = String.Empty;
Control c = null;
foreach (string ctl in Page.Request.Form)
{
if (ctl.EndsWith(".x") || ctl.EndsWith(".y"))
{
ctrlStr = ctl.Substring(0, ctl.Length - 2);
c = Page.FindControl(ctrlStr);
}
else
{

c = Page.FindControl(ctl);
}
if (c is System.Web.UI.WebControls.Button ||
c is System.Web.UI.WebControls.ImageButton)
{
control = c;
}
}
}
if (control != null)
{
return control.ID;
}
else { return "budegil";}
}

Please clik on any "Ekle" button in the following web-page to see what I mean.

webpage[^]
QuestionCalling non-static method from static webmethod Pin
DotNetXenon17-Aug-09 8:19
DotNetXenon17-Aug-09 8:19 
AnswerRe: Calling non-static method from static webmethod Pin
N a v a n e e t h17-Aug-09 8:44
N a v a n e e t h17-Aug-09 8:44 
GeneralRe: Calling non-static method from static webmethod Pin
DotNetXenon17-Aug-09 9:29
DotNetXenon17-Aug-09 9:29 
GeneralRe: Calling non-static method from static webmethod Pin
Christian Graus17-Aug-09 11:57
protectorChristian Graus17-Aug-09 11:57 
QuestionFocus Issue Due to AJAX Refresh Pin
platso_58817-Aug-09 5:37
platso_58817-Aug-09 5:37 
QuestionHow to calculate number of lines? Pin
Gaurav Aroraa17-Aug-09 3:19
professionalGaurav Aroraa17-Aug-09 3:19 
AnswerRe: How to calculate number of lines? Pin
Blue_Boy17-Aug-09 3:31
Blue_Boy17-Aug-09 3:31 
GeneralRe: How to calculate number of lines? Pin
Gaurav Aroraa19-Aug-09 3:07
professionalGaurav Aroraa19-Aug-09 3:07 
AnswerUse integer division Pin
David Mujica17-Aug-09 4:02
David Mujica17-Aug-09 4:02 
GeneralRe: Use integer division Pin
Gaurav Aroraa19-Aug-09 3:13
professionalGaurav Aroraa19-Aug-09 3:13 
QuestionText reterival from dynamic HTML textbox Pin
VarunPrakash17-Aug-09 2:56
VarunPrakash17-Aug-09 2:56 
QuestionGetting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 2:04
Ersan Ercek17-Aug-09 2:04 
AnswerRe: Getting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 2:14
Ersan Ercek17-Aug-09 2:14 
GeneralRe: Getting crazy with datalist control within update panel Pin
Coding C#17-Aug-09 2:22
Coding C#17-Aug-09 2:22 
GeneralRe: Getting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 2:42
Ersan Ercek17-Aug-09 2:42 
AnswerRe: Getting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 3:51
Ersan Ercek17-Aug-09 3:51 
Questionsession Pin
mylogics17-Aug-09 1:50
professionalmylogics17-Aug-09 1:50 

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.