Click here to Skip to main content
15,881,380 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Set webgrid scroll position Pin
Armandt__26-Nov-08 19:35
Armandt__26-Nov-08 19:35 
Question[Urgent](NewBie)How To dynamicaly add three dropdownlists in ASP.NET C#? Pin
bilal haider25-Nov-08 2:58
bilal haider25-Nov-08 2:58 
AnswerRe: [Urgent](NewBie)How To dynamicaly add three dropdownlists in ASP.NET C#? Pin
Nishant Singh25-Nov-08 4:03
Nishant Singh25-Nov-08 4:03 
GeneralRe: [Urgent](NewBie)How To dynamicaly add three dropdownlists in ASP.NET C#? Pin
bilal haider25-Nov-08 18:24
bilal haider25-Nov-08 18:24 
Questiondisplaying image in gridview from folder Pin
Jai Vikas Singh25-Nov-08 2:56
Jai Vikas Singh25-Nov-08 2:56 
AnswerRe: displaying image in gridview from folder Pin
kenexcelon25-Nov-08 5:17
kenexcelon25-Nov-08 5:17 
GeneralRe: displaying image in gridview from folder Pin
raghvendrapanda25-Nov-08 19:21
raghvendrapanda25-Nov-08 19:21 
QuestionConditional PostBackURL Based in UserName Pin
lisad_tgc25-Nov-08 2:39
lisad_tgc25-Nov-08 2:39 
I am having difficulty launch a form submit event after adding a postbackurl attribute to an imagebutton in asp.net. See code below.


I have a Login Button with an 'onclick event'... ie. see below:
************
<asp:imagebutton id="LoginButton" runat="server" text="Log In" validationgroup="Login1" imageurl="~/images/login_up.gif" onclick="LoginButton_Click1" xmlns:asp="#unknown">
************

My Event is as follows (code behind - vb):
******************

Protected Sub LoginButton_Click1(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)


If (Left(Me.Login1.UserName, 6).ToLower = "domain") Then

Dim LoginButton As System.Web.UI.WebControls.ImageButton
LoginButton = CType(Login1.FindControl("LoginButton"), ImageButton)
LoginButton.Attributes.Add("PostBackUrl", "http://internalusersite.anyname.com/Portal/AdminLogin.aspx")
'need an event to submit the form after adding the attribute

Else
Dim LoginButton As System.Web.UI.WebControls.ImageButton
LoginButton = CType(Login1.FindControl("LoginButton"), ImageButton)
LoginButton.Attributes.Add("PostBackUrl", "http://externalusersite.anyname.com/Portal/AdminLogin.aspx")
'need an event to submit the form after adding attribute

End If
AnswerRe: Conditional PostBackURL Based in UserName Pin
vrushaliD29-Jan-09 0:23
vrushaliD29-Jan-09 0:23 
QuestionCan we use SOAP UI's mockup web service in an ASP .net project Pin
Rocky#25-Nov-08 2:22
Rocky#25-Nov-08 2:22 
QuestionDisplaying images from another folder.? Pin
Mir_As25-Nov-08 1:55
Mir_As25-Nov-08 1:55 
AnswerRe: Displaying images from another folder.? Pin
Nishant Singh25-Nov-08 2:36
Nishant Singh25-Nov-08 2:36 
GeneralRe: Displaying images from another folder.? Pin
Mir_As25-Nov-08 3:03
Mir_As25-Nov-08 3:03 
GeneralRe: Displaying images from another folder.? Pin
Nishant Singh25-Nov-08 3:47
Nishant Singh25-Nov-08 3:47 
GeneralRe: Displaying images from another folder.? Pin
Mir_As25-Nov-08 4:48
Mir_As25-Nov-08 4:48 
Questionhow to pass xml file to web service Pin
md_azy25-Nov-08 1:51
md_azy25-Nov-08 1:51 
Questionreg error 40 Pin
madeline_veda25-Nov-08 1:20
madeline_veda25-Nov-08 1:20 
AnswerRe: reg error 40 Pin
Abhijit Jana25-Nov-08 1:47
professionalAbhijit Jana25-Nov-08 1:47 
QuestionI am Confused with this Pin
Krazy Programmer25-Nov-08 0:30
Krazy Programmer25-Nov-08 0:30 
AnswerRe: I am Confused with this Pin
Abhijit Jana25-Nov-08 1:49
professionalAbhijit Jana25-Nov-08 1:49 
QuestionPopulate values from GridView to ModalDialog box using Javascript....? Pin
codingrocks25-Nov-08 0:01
codingrocks25-Nov-08 0:01 
AnswerRe: Populate values from GridView to ModalDialog box using Javascript....? [modified] Pin
Nishant Singh25-Nov-08 1:24
Nishant Singh25-Nov-08 1:24 
QuestionHow about heavily using configuration variables in web.config? Pin
Mohammad A Gdeisat24-Nov-08 22:58
Mohammad A Gdeisat24-Nov-08 22:58 
Questionunable to use .test AJAX controls Pin
AprNgp24-Nov-08 22:30
AprNgp24-Nov-08 22:30 
AnswerRe: unable to use .test AJAX controls Pin
simsen25-Nov-08 0:02
simsen25-Nov-08 0:02 

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.