|
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
|
|
|
|
|
I have this code:
lable.text = hr.GetDataByReturnRequestNumber(((TextBox)FormView2.FindControl("DropDownList3")).Text, ((TextBox)FormView2.FindControl("AreaTextBox")).Text, Convert.ToInt32(((TextBox)FormView2.FindControl("OrgCodeTextBox")).Text), Convert.ToDateTime(((TextBox)FormView2.FindControl("InsertDateTimeTextBox")).Text));
and I got these 2 errors:
1- cannot implicity convert type 'DH.RequestFormDataTable' to ''string'
2- Unable to cast object of type 'System.Web.UI.WebControls.DropDownList' to type 'System.Web.UI.WebControls.TextBox'.
can any body help me with it please.....
|
|
|
|
|
Is the method returning a DH.RequestFormDataTable? Then you can't put that in the Text property of the label. What is it that you want to put in the label?
I suppose that DropDownList3 is a DropDownList and not a TextBox? So why are you trying to cast it to a TextBox?
---
single minded; short sighted; long gone;
|
|
|
|
|
Is any file File Uploader ActiveX control ? to upload the files
Thanks
|
|
|
|
|
Why do you need ActiveX control for uploading file?
I never use any ActiveX control in my project. I used to use only "File" html control. but the problem with this control is that it doesn't support multiple file uploads. it is very big problem when I was developing the Photo Gallery web application that need multiple photos uploads. What I did is that I make the "file" control (eg: fileCtl1 ) invisiable after the user selected the image for uploading. then, I dynamically create another "file"(eg: fileCtl2 ) control and show it to the user. When the user clicks "Upload" button, I take all "file" controls and save them to the server. (eg: fileCtl1.Save and fileCtl2.Save )..
If you don't wanna write the js code, you may probably use Flash control for that..
check-out the link below if you interest in using flash upload controls in ASP.NET
http://www.codeproject.com/aspnet/FlashUpload.asp[^]
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
Is it possible to disable the Save option in IE in an ASP.NET application?
Regards,
Blumen
|
|
|
|
|
blumenhause wrote: Is it possible to disable the Save option in IE in an ASP.NET application?
No.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Could you please tell me why this not possible?
Regards,
Blumen
|
|
|
|
|
blumenhause wrote: Could you please tell me why this not possible?
Because of Security reason. You can't do as you like to the client's browser.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
|
hi
Can somebody guide me how to insert google map in my asp.net with C# application and highlight locations on the map
and
on those points add thumbnails and links to videos and pictures in my project
Or
Is there any opensource code available for doing this
regards
Harry
|
|
|
|
|
Check-out this one. this is what google give me..
Google Maps Control for ASP.NET 2.0[^]
I don't have any experience with using Google Map in ASP.NET application. maybe. you can contact with the scott, the auther of this article that I gave you above.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
my default.aspx page was initially placed in new folder
i mean it's location according to relative path is
new folder/default.aspx
and defaut1.aspx was in the parent directory.
now if i have toi redirect to default1.aspx and currently i am in default.aspx then i used the following code
response.redirect("../default1.aspx")
now i am moving the default.aspx page to a inner new folder , and it's relative path becomes
new folder/new folder/default.aspx
now currently i am in default.aspx and want to navigate the user to default1.aspx which is curently in the parent directory(relative path is default1.aspx)
the what should be the code to navigate the user from default.aspx to default1.aspx
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Response.Redirect("../../default1.aspx")
petersgyoung
|
|
|
|
|
hi,
i hope u can use this to find relative path
"~//newfolder/default.aspx"
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Hi Guru's
I'm not good at organizing my sessions and I always find my self scratching my head when ever I'm looking from session variable I created. Is there any technique / way that I could organize my sessions into one holder, hmm something like what Enum can do?
I always port my session variables this way
Session("memberID") = memberID
Session("memberName")= memberName
Session("memberEmail")= memberEmail
is there a way that I could group then and place the group to a session? like placing Enum into session, hmm but not that actually but the idea of placing it.
e.g.
Public Enum MemberInfo
memberID = 1
memberName = "Name"
end Enum
Session("memberInfo")= memberIfo
regards
Dom
|
|
|
|