|
In web.config:
<connectionStrings>
<add name="DatabaseConnection" connectionString="Data Source=CHRISKOWHAI\SQLEXPRESS;Initial Catalog=Sandbox;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
|
|
|
|
|
|
|
Hi,
I would like to use a .aspx.vb code-behind file to create a dll which I can then use as my .aspx page's code-behind file in place of the .aspx.vb one.
The reason I would like to do this is that I would like to distribute existing code from my 'sandbox' in an application I'm developing for a client, but do not want to provide the client with the .aspx.vb source code.
I am using Visual Basic / Visual Web Developer 2005 Express Edition (ASP.NET 2.0).
So far I have tried:
1. Importing the .aspx.vb file into a new VBEE project and trying to build the project. This doesn't work because the references to controls on the .aspx page aren't recognised in the VBEE project.
2. Investigating the possibility of using the code compiled when the site is built be the .NET framework. I have looked all over the place for an answer/dll file, but haven't come up with anything.
Well I've run out of ideas on this so if anyone is willing to help that would be great. If you've not got a complete answer, just some ideas of where to go to investigate further would be great.
Many thanks,
Chris
|
|
|
|
|
|
Hi,
I have a login page in asp.net accepting username as email and password,using form authentication. And a checkbox to make password persistent or non -persistent.
My requirement is that when i log out, then again when i open the url , and puts the same emailid then its password should automalically come in password textbox.
Is there anyother way to achieve this.
Thanx
|
|
|
|
|
This is a function in the browser, and the user decides if the function should be used or not.
You can't control this functionality programmatically, and there is no way that you can set the value of a password textbox using code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Can we use cookies for that?
|
|
|
|
|
Eh... Yes, you can use cookies to not store the password...
---
single minded; short sighted; long gone;
|
|
|
|
|
hello everybody
i got some image which is jpeg format. i want to put UserName TextBox, Password TextBox and Login Button on my image.
More Description, I have designed a LoginPage which I saved JPEG format. Now I would like to put TextBox and Button.
Am I doing the right way? Any help will be helpful
Thanks
Sarfarj Ahmed
|
|
|
|
|
Use the image as background of an element, and put the controls in the element.
---
single minded; short sighted; long gone;
|
|
|
|
|
I am lost. Please someone help!
What I am working with:
VB with code-behind, databound dropdownlist with columns of linkname and linkaddress
I have been unable to successfully figure out how to write a javascript function that opens a new window in IE when the selecteditem is changed.
Can anyone help me?
|
|
|
|
|
To do exactly what you are asking for is (AFAIK) impossible using only Javascript. To open a new window in a specific program (in this case IE) requires you to run an executable on the client computer.
To open a new browser window, however, is easy:
onchange="window.open('PageToOpen.aspx','_blank');"
You can add the value of the selected item as a querystring:
onchange="window.open('PageToOpen.aspx?someNiftyName='+this.options[this.selectedIndex].value,'_blank');"
You also can set the onchange attribute from code behind:
TheDropDownListControl.Attributes("onchange") = "window.open('PageToOpen.aspx','_blank');"
---
single minded; short sighted; long gone;
|
|
|
|
|
I'm sorry I am still not understanding it...
Here is what I have:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
End Sub
I guess I am not as savvy as I thought. Where do these codes go? Is there javascript involved? I also forgot to mention I am coding this in asp.net in a web form not a windows app.
Thanks for your help!
|
|
|
|
|
bnbdnb wrote: Where do these codes go?
In the markup code. In the aspx page.
Is there javascript involved?
Yes. You have to use Javascript to open a new browser window. That can not be done using ASP.NET code.
The event happens in the browser, and the new window has to be opened in the browser, so there is no reason to use a server event to do it.
I also forgot to mention I am coding this in asp.net in a web form not a windows app.
As you are posting in the ASP.NET forum, I took that for granted.
---
single minded; short sighted; long gone;
|
|
|
|
|
ok Here is how far I have gotten. Please let me know I am so close!
Javascript:
function openOrange(selObj,restore){
var theFullString = selObj.options[selObj.selectedIndex].value;
if (restore) selObj.selectedIndex=0;
var theLength = theFullString.length;
var endPos = theFullString.lastIndexOf("~");
var theUrl, theTarget, theParent;
if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
else {theUrl = theFullString;}
endPos++
window.open(theUrl);
}
PageLoad event:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
DropDownList1.Attributes.Add("onchange", "javascript:openOrange(this,1)")
End Sub
Got it to work finding some javacode for a jumpmenu. Anyone know how to clean it up?
|
|
|
|
|
Mainly i'm a JAVA programmer and new to ASP .NET.
But nw I'm creating a 2 player game in ASP .NET. I'm thinking how to send every user action to other user.
Options:
1.I'm thinking of using Sockets.
Problem i'm facing in sockets in asp:
I can get connected to server socket from client only if the socket is created and used on the same page.
I want to store the socket objects in objects created global.asax or Application object.
2. Repeatitive checkin in as pages(seems bad to me a action occurs every couple of second)
|
|
|
|
|
Hi
As i have seen around on google map that i needed the map of thialand
to search few locations and implement that in my own website and what
i got is a map in thai language which is of no use to me as i don't
know thai language
So can any one please help and tell me how to translate this map in
english or from where else i can find a similar map in english to
implement in my website
Japanese map converted to English
http://diddlefinger.com/
regards
Harry
|
|
|
|
|
Hi,
Is there a way of creating help documents something similar to the MSDN Help 2008? I have a web app and I need to create help files for my classes and methods, constructors, etc.
It must preferably be free, but price shouldn't be an issue.
Regards
ma se
|
|
|
|
|
Hi all.
Ive got a silly little problem irritating the hell out of me. I binded a GridView to a collection in the code, as we had to loop through several tables to retrieve the correct specific record. So I did the same for the DetailsView and everything seems to be working, in terms of they both show the correct details. But the irritating problem is that when i select a record in the gridview to display it in the detailsview, I have to click the "Select" link once, which seems to highlight the row, and then click "select" a second time to display its details.
This irritates me as I know from when I used smart tags before, I only had to click once.
Does anyone have an idea whats wrong? or what i need to do?
Much Appreciated
Dazz
|
|
|
|
|
Hi,
I am created a web application such as, if user want to upload photo. He can drag photo from window explorer and drop it on animation control over the web page and upload it by simply clicking the upload button. The paths of these photos are inserted into html select control.
So, my qery is,
is any ActiveX control which I can use for uploading the files ?
Here I am not using the InputFile control so I am not able to upload the files on server.
By "File.copy(source, destination)" I can upload the file locally.
Any one can give me answer for this?
|
|
|
|
|
|
hello everyone,
I have a small problem in CheckBoxList control in asp.net.
When i take checkboxlist of 2 items.When i Click on the second item checkboxlist, i should get an an alert message showing that this selection is not acceptable.To do this we have use javascript only but not with the checkboxlist_selectedchanged event ,that alert message should fire when i click on the button.Plz anyone help me fast this is urgent for me.
ok byeee
Murali
|
|
|
|
|
make a javascript funtion as
create an array of checkbox list control. if index of that array is checked then show alert.
this funtion you have to call on button click.
|
|
|
|
|
hello tulsulkar,
Thank Q very much for ur reply.Actually my requirment is that i need that javascript code.Can u write the javascript code post again.
Thank Q very much in advance.
ok byeee
Murali
|
|
|
|