|
bigphish wrote: how to invoke a standard dll in vs?
p/invoke
bigphish wrote: what is the difference in adding a dll and an exe in to a project?
You can add a reference to a .NET dll, but not an exe.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
bigphish wrote: what s the meaning in adding refference without integrating that dll in to the Project?
This quetion need more discription
When you add a dll by adding the reference of that dll to your project a copy of that dll is created in bin folder of your application by default
bigphish wrote: what is the difference in adding a dll and an exe in to a project?
You can't add exe directly to your project
Exe are self executable and dll are not
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... "
|
|
|
|
|
Hey guys
I am coming into a project and they are using the ASP.NET login control. Which I would never do
The problem is, we want to log in automatically based on a cookie. I have all the code working for this with one exception. I can't figure out how to bypass the actual login control. Any suggestions ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
What do you mean by, "bypass" the login control? Do you mean not even show it, or having it automatically submit?
only two letters away from being an asset
|
|
|
|
|
Well, either way is fine by me, I don't mind if I can tell it to log in using the usual means, via a username and password I provide. However, I don't *need* it to do anything, apart from accept that I have already logged my user in. I tried to get it to log in programatically, but the password property is read only.
My cookie contains a GUID which is associated with a user Id in my database. From this, I am able to get all my user's data, and can perform all of my custom login, so all I really need, is to make it so the application knows I am logged in and redirects accordingly.
Thanks for your help.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Wow - turns out my assumptions were wrong. In fact, it turns out that this site would allow you to browse to any page you wanted, without first logging in. Adding some code to redirect users who are not logged in, and adding a Response.Redirect to my login code, worked just fine.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If you can view any page with logging in, what's the point of logging in?
only two letters away from being an asset
|
|
|
|
|
*grin* beats me. Like I said, I just came onto this project. I have fixed that, you get redirected to the login now.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I have a website with 9 ImageButton tags
<asp:imagebutton id="ImageButton1" cssclass="HomePageRowOne" runat="server" imageurl="~/Images/02-team_nav-on.jpg">;
etc....
my css file (which is working as when I change the width and height it alters at runtime) does not pick up the border attributes...if I apply them to the image tag in HTML all is fine but then I dont want them in my HTML.
CSS file:
.HomePageRowOne
{
border-style:solid;
border-right-style:solid;
border-right: white 10px solid;
border-left: white 10px solid;
border-bottom: white 10px solid;
border-top: white 10px solid;
height: 30%;
width: 30%;
float: left;
}
is there a different border command in CSS for ImageButton ?
Any help would be great...
Harvey
|
|
|
|
|
CSS has no idea what imagebutton is. You should perhaps look at the source that's being generated to see what's happening, perhaps ASP.NET adds some attributes to the controls it uses to create an imagebutton by default.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian,
I dont suppose CSS knows what any of them asp: xxxx="" mean but that doesn't stop it applying attributes to the tag, I have changed it to a asp:linkbutton and this puts the borders on fine but cannot set the imageurl in <asp:linkbutton>. Is there something about asp:imagebutton that doesn't work?
modified on Wednesday, March 26, 2008 6:22 PM
|
|
|
|
|
What I mean is, you need to look at what the tag is that's being generated, and try to work out from the source, what's going wrong.
you need to check 'Ignore HTML tags in this message (good for code snippets)' if you want to paste HTML into your reply.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks, good idea.
It's not taking the attributes on (not a shock really)
if anyone has any idea?
Thanks
|
|
|
|
|
Hi all,
I'm trying to load a UserControl inside another UserControl using LoadControl in the "OnInit" event-handler of the page..
The problem is that if I clicked a button then pressed refresh for the page the event-handler of the button is automatically called again..
Any idea how to solve this??
Thanks a lot
PS. I'm using ASP.net 2.0
|
|
|
|
|
If you click a button and refresh then that always happens, regardless. The way around it is to do a redirect to the same page in the button click event and put any info you need to restore state on the URL.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Try using this
<br />
DropDownList1.SelectedItem = DropDownList1.Items.FindByValue("Your Value goes here");<br />
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
Hi,
I coded an aspx page with drop down lists, when the user selects a value from the drop down list, my javascript code gets the selected values of drop down lists and reload the page with the values in the url. After reloading I want to show the selected values in the drop down lists, I couldn't understand how to this. for the moment I can retrieve the selected values of drop down lists. Here is my code with selected values. Any one please tell me.
lang = Request.QueryString["lang"];
viewType = Request.QueryString["view"]; // viewType may be List or Pic
sortBy = Request.QueryString["sortBy"];
if (viewType != null || viewType != "") //ddlView contains "List View" and "Pic View"
{
ddlView.SelectedItem.Text = viewType + " View"; // Here its changing the default value and I am having both values same in the drop down after execution of this statement.
}
Thanks,
Best Regards,
Aruna.G
|
|
|
|
|
gottimukkala wrote: ddlView.SelectedItem.Text
Try setting the text or selectedtext of the control. You're changing the text of the currently selected item, not actually changing which item is selected.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have used the CreateUserWizard to create users. Does anyone know how i can let users edit their details such as email....
many thanks
|
|
|
|
|
An ASP.NET web site is supposed to be deployable simply by dropping the aspx and config files on the server, which will invoke the compiler if a page has not yet been compiled etc. Is is possible to define the target Framework, i.e. 2.0 instead of 3.5, without using Visual Studio?
|
|
|
|
|
Brady Kelly wrote: Is is possible to define the target Framework, i.e. 2.0 instead of 3.5, without using Visual Studio?
Definitely possible. All the files that you need to compile an application are text files. You can write everything in Notepad and use the command line compiler if you like.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank you, but maybe I should have phrased my question better. I already suspected this, but I wanted to know where to set the target framework in these text files.
|
|
|
|
|
|
Yes, but ASP.NET files are not compiled in VS, they are compiled on the fly, so should there not be a way of telling the compiler used by the ASP.NET pipeline which framework to target?
|
|
|
|
|
Brady Kelly wrote: so should there not be a way of telling the compiler used by the ASP.NET pipeline which framework to target?
I wouldn't think so in the case of IIS since the framework version is an IIS setting you can't expect to set it to something different for compilation. At least it doesn't seem that would work very well.
led mike
|
|
|
|