Click here to Skip to main content
15,884,176 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SQLDatasource parameters Pin
AlexeiXX34-Mar-08 17:05
AlexeiXX34-Mar-08 17:05 
GeneralI won't like O/R mapping in VS2005 any more. Pin
CooperWu4-Mar-08 16:36
CooperWu4-Mar-08 16:36 
GeneralSorting a GridView control Pin
jontyler4-Mar-08 15:47
jontyler4-Mar-08 15:47 
GeneralRe: Sorting a GridView control Pin
Christian Graus4-Mar-08 16:19
protectorChristian Graus4-Mar-08 16:19 
GeneralRe: Sorting a GridView control Pin
jontyler6-Mar-08 9:53
jontyler6-Mar-08 9:53 
Generalcreating xml file and passing the user's input parameters based on the xml schema Pin
elizabethsheeba4-Mar-08 14:03
elizabethsheeba4-Mar-08 14:03 
GeneralRe: creating xml file and passing the user's input parameters based on the xml schema Pin
Christian Graus4-Mar-08 16:24
protectorChristian Graus4-Mar-08 16:24 
Questionproblem with update panel and javascript Pin
$unil Dhiman4-Mar-08 13:36
$unil Dhiman4-Mar-08 13:36 
Hi All,
I have some problem with javascript.
when I use update panel then this problem comes.
when i click on Button1 first time, then some error occurs. but next time it not comes. it may be some script register problem. but i reister the javascript function in Page_Load event on button click. i ma very confused, why this error coming. i search many on this but not found any solution.
please help me.
here is sample code . i also did like this..
i write this code on button click

protected void Button1_Click(object sender, EventArgs e)
{
string scriptString = "function msgg() { alert('hello');}";
ScriptManager.RegisterStartupScript(this ,typeof (UpdatePanel), "scriptString", scriptString, true);
//i tried these also..
//ScriptManager.RegisterStartupScript(Button,typeof (Button1), "scriptString", scriptString, true);
//ScriptManager.RegisterStartupScript(updatepanelid ,typeof (UpdatePanel), "scriptString", scriptString, true);
}

protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes.Add("onClick", "return msgg();");
}

in aspx I write this--
<asp:updatepanel id="UpdatePanel1" runat="server" childrenastriggers="true">
<contenttemplate>
<asp:button id="Button1" runat="server" text="Button" onclick="Button1_Click">



thanks.
GeneralRe: problem with update panel and javascript Pin
$unil Dhiman4-Mar-08 13:42
$unil Dhiman4-Mar-08 13:42 
GeneralRe: problem with update panel and javascript [modified] Pin
Parwej Ahamad4-Mar-08 16:29
professionalParwej Ahamad4-Mar-08 16:29 
GeneralRe: problem with update panel and javascript Pin
$unil Dhiman4-Mar-08 17:25
$unil Dhiman4-Mar-08 17:25 
GeneralRe: problem with update panel and javascript Pin
Parwej Ahamad4-Mar-08 17:31
professionalParwej Ahamad4-Mar-08 17:31 
GeneralRe: problem with update panel and javascript Pin
$unil Dhiman4-Mar-08 17:36
$unil Dhiman4-Mar-08 17:36 
GeneralRe: problem with update panel and javascript Pin
$unil Dhiman4-Mar-08 17:40
$unil Dhiman4-Mar-08 17:40 
GeneralRe: problem with update panel and javascript Pin
Parwej Ahamad4-Mar-08 18:11
professionalParwej Ahamad4-Mar-08 18:11 
Questionhtml form to access database Pin
ric8s4-Mar-08 10:33
ric8s4-Mar-08 10:33 
GeneralRe: html form to access database Pin
Christian Graus4-Mar-08 10:50
protectorChristian Graus4-Mar-08 10:50 
GeneralUsing adsi to add certificate mapping Pin
Bob Morse4-Mar-08 8:50
Bob Morse4-Mar-08 8:50 
Generalquerry string to link resourse web pages Pin
Dotnet2Learner4-Mar-08 8:48
Dotnet2Learner4-Mar-08 8:48 
GeneralRe: querry string to link resourse web pages Pin
pmarfleet4-Mar-08 9:34
pmarfleet4-Mar-08 9:34 
QuestionHow to write arabic by default in a textbox in asp.net webform? Pin
AmrSaad844-Mar-08 6:44
AmrSaad844-Mar-08 6:44 
GeneralRe: How to write arabic by default in a textbox in asp.net webform? Pin
Christian Graus4-Mar-08 9:28
protectorChristian Graus4-Mar-08 9:28 
Generalgridview cell width Pin
aransiola4-Mar-08 6:37
aransiola4-Mar-08 6:37 
GeneralRe: gridview cell width Pin
Mike Ellison4-Mar-08 6:53
Mike Ellison4-Mar-08 6:53 
GeneralRe: gridview cell width Pin
Mike Ellison4-Mar-08 6:55
Mike Ellison4-Mar-08 6:55 

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.