|
the problem I was having was related to Anthem controls, in particular, the button that was supposed to fire the Responses is an Anthem button, and they behave a little differently than your average, ordinary, every day asp button.
Apparently when the 'EnableCallBack' property is true, Anthem uses some javascript to work it's magic instead of a postback; that's the whole point of a callback, I guess, but since my file was sitting on the server, it kinda needs a postback in order to get the data.
So I changed the property to False and the dialog box opened right up.
|
|
|
|
|
Has anyone ever come across a date *and* time picker component for asp.net?
there are zillions of Date *or* Time picker components out there, but I can't seem to find one that allows both at the same time in the same control.
|
|
|
|
|
|
|
I want some fields the edit/insert Mode in a DetailsView control to be multiline textboxes... There is no apparent option for this... anyone know a quick work around?
|
|
|
|
|
<asp:detailsview id="dv" runat="server">
<fields>
<asp:templatefield>
<insertitemtemplate>
<%----%>
<edititemtemplate>
<%----%>
<itemtemplate>
<%----%>
|
|
|
|
|
|
How can I force my required field validators to validate one button OnClick but not my 2nd button?
I have 2 buttons within a form. The first button is part of a "Search" form. The 2nd is a logout button.
My search form has a few textboxes that are required to be filled in before advancing so I have required field validators. My logout button however should simply allow the user to logout (validators should not execute).
Unfortunately, if I click my Logout button, the validators display and prevent me from logging out.
So how can I force them to run when the Search button OnClick event is raised but not the logout button OnClick event?
Thanks in advance.
-Goalie35
|
|
|
|
|
Set the CausesValidation property of the logout button to false.
|
|
|
|
|
1- Is there a way to create a user contorl that consist of more then one .ascx page?
2- I have an application that has 6 .aspx pages [update, insert, delete, select etc] and I want to make it either a user control or a webpart for code re-use reasons. Is that even possible? Please help.
Thanks in advance.
Best regards,
Robert
|
|
|
|
|
1 - sure. Create a control that contains the other controls you want to combine
2 - What do you want to make a control, the entire app ? You can turn any page into a control, just move the code into a control and place that control on the page.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You might want to investigate the FormView, it allows you to define a single control to view, update, insert or delete an information to a bound datasource.
You could place one of these FormViews in a user control or custom control . The DataSource can be related to an object model or Sql Database etc in .NET 2.0.
|
|
|
|
|
|
Hi Friends,
I have created a webservice using ASP.net 2.0 wchich sends employees details as a dataset.
on client side i am using classical asp to access that
Dim xmlhttp
Dim DataToSend
DataToSend="companyid="& cstr(Session("companyid"))
Dim postUrl
postUrl = "http://localhost:1286/LoginServices/Service.asmx/GetUserList"
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP")
xmlhttp.Open "POST",postUrl,false
xmlhttp.setRequestHeader "Content-Type", _
"application/x-www-form-urlencoded"
xmlhttp.send DataToSend
dim dataReturned
dataReturned=xmlhttp.responseText
when i use Response.write(dataReturned) it prints data.
My problem is That I want to show data as a formatted text and also want to give user an option to edit the emplohees information and save back to the server. I want to show records in a table but it seems when it returns data its a single string.
I dont know if my apporach is wrong or right.
If any one knows how to create a formatted text or how to put that data into an xml file please help me
thanks
Naveed Kamboh
|
|
|
|
|
Dou have access to the code of the webservice? Then wrap the results in XML-Tags. The XML-Tag-Names are irrelevant, but I should be a wellformed XML-Stream you returned.
Now you can parse the result stream in CodeBehind before your Response.Write-Call OR clientside with JS using JS-DOM.
Regards
Stephan
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href=www.stephan-pilz.de>www.stephan-pilz.de</a> |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
I've added allowsorting="true" to my gridview properties, but I still don't get clickable headers. What am I missing?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Which data source you are using?
If you are bounding columns in design time then you need to tell sortexpression there.
you can use column name as sort expression. Also bear in mind that DataSet gives builtin sorting and paging options.
Naveed Kamboh
|
|
|
|
|
I don't have an answer, but when I saw your name on a post in a .net message board I almost crapped my pants! I thought you hated and reviled all things .net and avoided it like the plague or are there more than one Outlaw programmers around here?
|
|
|
|
|
I developed a site with a reserved section based on roles, when I try to access that page i got redirected correctly to the loginpage and on the address bar i see
the ReturnUrl containig the address to point to:
http://localhost/SiteName/login.aspx?ReturnUrl=%2fSiteName%
2fadministrator%2fdefault.aspx
administrator/default.aspx is the page I have to reach
I authenticate succesfully but when the following instruction executes without error:
FormsAuthentication.RedirectFromLoginPage(user, chkRemember.Checked)
i still remain in the same page, only user and pwd disappear
the address in the bar is still the same....
otherwise if i submit incorrect user o pwd I got an error that indicates the redirect correctly fails:
If AuthenticateUser(userEncoded, pwdEncoded, roles) Then
FormsAuthentication.RedirectFromLoginPage("@" & ruoli, chkRemember.Checked)
Else
lblLogin.Text = "Access denied!"
End If
Any idea?
Thanks
Alessandro
|
|
|
|
|
|
i've a win2003 server and clients in a lan.
i want to make a asp.net page.
if users open the page,the username appears in the textbox automaticaly.
|
|
|
|
|
This bit of code (visual studio 2005) will retrieve the logged in user name:
My.User.Name
I'm sure VS2003 and VB6 can accomplish this too, but you'll have to search for the actual syntax.
You could also store the user name in a cookie that gets saved on the computer. This would remember the last person who logged into the asp.net page on that computer, instead of whom ever is currently logged in... Code would look something like this:
'To Set the Cookie:
Response.Cookies("UniqueCookieName").Value = txtUserName.Text
Response.Cookies("UniqueCookieName").Expires = Now.AddYears(50)
'To Retrieve the cookie:
If Not Request.Cookies("UniqueCookieName") Is Nothing Then
txtUserName.Text = Request.Cookies("UniqueCookieName").Value
End If
Hope this helps.
|
|
|
|
|
hi,
i have developed an application using Asp.net and C#. But the when i try to login for the first time it redirect the page to login page instead of going to the second page. but it allow to move for the second time
|
|
|
|
|
You'll get better response to your queries if you
1) Don't ask the same thing twice within minutes
2) Don't mark it URGENT
only two letters away from being an asset
|
|
|
|
|
Hi,
Don't Repost the Same Question.
With Regards
Satips
|
|
|
|