|
Guffa wrote: You can only send one response back to the browser. You can't both send back an Excel document and a page.
If you want to do both, you have to send two requests from the browser, one that gets the Excel document and opens in a different window, and one that gets the new page.
Thanks, I think I got it.
|
|
|
|
|
Am relatively new to Asp.Net and OOP. Can someone expose me to the concept of Data Access Objects and a simple application
|
|
|
|
|
Am using the DetailsView web server control but which to validate some fields for data entry or edit. How do I validate desired fields
|
|
|
|
|
I can't log on to my web app after deployment (which I can do before deployment). Though I use aspnet in-bult Membership Provider.
Can anyone help me?
|
|
|
|
|
Im trying to build scott mitchells online photo album
in chapter 23 i built a manage categories page to enter and edit categories
in chapter 24 i built a default pge to enter pictures in the detailsview a dropdownlist
is supposed to show the category id. But the category id list stays empty
|
|
|
|
|
Can you show the code that you used to populated the Dropdownlist?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
how do I send the code here from my desktop?
|
|
|
|
|
learningman wrote: how do I send the code here from my desktop?
send it through World Wide Web
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Do you have a email address?
|
|
|
|
|
I need the code that closes the window i'm in.
thx
BiG RaLpH
|
|
|
|
|
try this on button click
Button1.Attributes.Add("OnClick", "javascript:window.close();");
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandeep Akhare wrote: Button1.Attributes.Add("OnClick", "javascript:window.close();");
That would be:
Button1.Attributes.Add("onclick", "window.close();");
The javascript: protocol is only used when you put Javascript code in an URL. If you do that anywhere else, it becomes a label instead.
Naming the attribute OnClick only works in html. Using onclick works both in html and xhtml.
---
single minded; short sighted; long gone;
|
|
|
|
|
Alt + F4?
Javascript :
function CloseMyWindow()<br />
{<br />
window.close();<br />
}<br />
but if you didn't open the window then you will get a client side message box asking if the user want to allow you to close it.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
you can add a parameter to the close function.
window.close(opener=0);
This will remove the message.
Amol
|
|
|
|
|
|
Hi All,
I need to fire a query on datatable which has the parent child relationship.
Ex:
ChildID Description ParentID
A Desc1 NULL
B Desc2 A
C Desc3 A
D Desc4 A
Now my problem is that I get repeative record ie one for Parent and other for Child.
Ex:
A has BCD child
ABCD is child it self.
Please tell me how do I handle this???
Thanks is advance...
|
|
|
|
|
What exactly is the Problem?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Thanks John.. My probelm is display problem.
Ex:
ChildID Description ParentID
A Desc1 NULL
B Desc2 A
C Desc3 A
D Desc4 A
It shows
A
B --| Hidden under Parent A
C |
D ---
B Again Child Element is shown.
C
D
And I want the display as:
A
B --| Hidden under Parent A
C |
D ---
Please help me with this.
Thanks again....
|
|
|
|
|
Hi all,
I'm trying to authenticate the currently logged on user with a username / password login page.
I have done this so far:
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
Session["sHRUID"] = "";
if (Session["sHRUID"].ToString() == "")
{
string loggedOn = Request.ServerVariables["LOGON_USER"];
loggedOn = loggedOn.ToUpper();
Session["sHRUID"] = loggedOn.Replace("DOMAIN\\","");
}
if (Login1.UserName == loggedOn && Login1.Password == "admin")
e.Authenticated = true;
}
But how can I authenticate the password?
Can anyone please help???
Many Thanks
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
You can't get the user's windows password. If you have your site set up to not use anonymous access, the fact that they are able to get to your page indicates that they have been authenticated against AD.
|
|
|
|
|
Thanks Paddy makes sense.
I don't know whether I should start a new thread but, is it possible to use frames within asp.net, if so which component can I use or must it be done pro grammatically?
Many Thanks
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
You can use frames in just the same way as any other html page.
|
|
|
|
|
|
how to check selected node child have not same name when we add any new node on selected node
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
try the following
Framework base class
using Microsoft.VisualBasic.Compatibility.VB6;
Functions
Support.GetItemData
Support.SetItemData
Hope this may help u.
Best of Luck
Soniagupta1@yahoo.co.in
|
|
|
|