|
can you explain that again please, the end of the post doesnt make sense
|
|
|
|
|
i want to know i use javascript for master page control like i made a table for my menu box and there i show a href link and i want that when user click on link like home then home should be look like clicked means there will be a image in background of that a href and all not have that image but when that menu is called then there will be a image.
|
|
|
|
|
This is what you asked for:
onclick="this.parentNode.style.backgroundImage='url(someimage.gif)';return false;"
However, I don't really think that this really is what you meant. It doesn't make much sense to have a menu that doesn't do anything other than change it's apperance.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i have a master page there is a menu bar which is created in table and all td have an a href tag of html. there are five td name home, contact, profile, portfolio etc. now when i click contact then i want that contact page open but image will be apper which show that this time contact button is clicked.
advance thanks.
|
|
|
|
|
As I expected, this is not at all what you asked for first, and Javascript is not the solution.
Add runat="server" and an ID to the table cells so that you can access them from server code. In the code behind of the master page check what page you are on (Page.Url) and set the background on the corresponding cell.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
iwant to Source code for translate from english language to arabic language in asp.net.vb.net,c#.net
|
|
|
|
|
hello,
i have a form and there i received xml and mime type file which is a picture and picture type may be jpeg, png or other type. i want to convert all xml through parsing but now i would like to convert that picture in original format how can i do this with asp.net using c#.
thanks in advance
|
|
|
|
|
1) How to store "connection string" in global.asax file and web.config file using c#?
2) How to get that "connection string" from web.config file and global.asax file to My web application?
3)Where i have to call that connection string on My web application and how i call to that connection from My web application..?
CheeN
|
|
|
|
|
Add the following line in the configuration tag of your web config file
<connectionStrings>
<add name="Name" connectionString="Connstringhere"/>
</connectionStrings>
Reading it
_aseConn.ConnectionString = ConfigurationManager.ConnectionStrings["Name"].ToString();
If you want peace prepare for war...
|
|
|
|
|
can u post again with how i read it from my web application and how i open that connection @ several times..?
thanks alot...
CheeN
|
|
|
|
|
Hi,
u can add the connection strings in web.config in appsettings tag.
<appSettings>
<add key="constr" value="server=10.40.21.8;uid=sa;pwd=password;Database=dbname;"></add>
</appSettings>
Calling this connection string in .cs file
SqlConnection dbConn;
String ConnectionString = System.Configuration.ConfigurationManager.AppSettings["constr"];
dbConn=new SqlConnection(ConnectionString);
dbConn.Open();
Sutheesh Ramachandran
Cybernet Software Systems,
T Nagar, Chennai 17.
|
|
|
|
|
iam unable to get full File path using Fileupload control
i used,
string str = Fileupload1.PostedFile.FileName;
and also
string str = Fileupload1.FileName; etc
using this i can only get the filename, Please Help me
Bharani
|
|
|
|
|
Hi,
Here is how you can upload a file using the FileUploader.
string sImageToSavePath = @"c:\inetpub\wwwroot\MySample\img\bb.gif"; //Give a path and a file name
byte[] ba = FileUpload1.FileBytes;
File.WriteAllBytes(sImageToSavePath,ba);
Hope this helps
Thx,
Gayani
|
|
|
|
|
we are giving the path by our self.
c:\inetpub\wwwroot\MySample\img\bb.gif
but i need the path what the clients will open to upload the file using
fileupload control
ex: in my system i use to open the file which is at D:\\Bharani\\Folder1\\...file.xml
other can open in his own path i need to track that user selected path
is it possible.
Bharani
|
|
|
|
|
You can get the full path using javascript.
document.getElementById('FileUpload1').value
so store it in a hidden field for later use.
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Thanks for ur Help i got the full path from hidden filed and using javascript
Thanks allot for all.
Bharani
|
|
|
|
|
Hi barani,
Try this
string fextn = System.IO.Path.GetFullPath(File1.PostedFile.FileName);
Sutheesh Ramachandran
Cybernet Software Systems,
T Nagar, Chennai 17.
|
|
|
|
|
Whenever iam using Rating control This error is coming.
output is coming(but IMAGES not displaying)
|
|
|
|
|
Hi...
I want horizontal scroll bar in Listbox. For that i am using following code.
<div style="width:120px; overflow-x:auto">
<asp:listbox id="lstboxvalue" runat="server" width="125px" rows="6" xmlns:asp="#unknown"></asp:listbox>
</div>
It gives me horizontal scroll bar. But it truncates some portion of text. The whole text is stored in database but whole isn't reflected here. Can anyone tell me what could be the problem.
eg. The text stored in database is 'testing by needhi', den it shows only 'testing by ne'.
Plz help. Its urgent..
|
|
|
|
|
needhi_p wrote: eg. The text stored in database is 'testing by needhi', den it shows only 'testing by ne'.
Remove Width of ListBox and Div
Regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi.. thnx it was such a silly mistake...
|
|
|
|
|
|
Thanks Sherin
its working .ya you are right .plz tell now how i can take the values from user controls .and how i can retrive the values at next page .
but the condition is same .if 2 is selected then only two user control should be appear and values of these user control go to the next page.
plz send me the code
Thanks .....Again
gaurav
|
|
|
|
|
I think you already have the properties for the control.
Then as i already told,
for Loop
{
//Create controls
}
Here the create control creates, controls in to array, say 'cntrlArray'.
Then when you want to retrieve the value of the controls created
for(int i=0;i<cntrlarray.length;i++)>
{
//Get Values <--- cntrlArray[i].YourProperty;
}
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Thanks Sherin
actually i am new in asp.net .i was doing job in testing.
plz tell me how to add dynamically generated usercontrols
in an array.you tell me this code
for (int curControl = 0; curControl < totalControl; curControl++)
{
WebUserControl uc =
(WebUserControl)Page.LoadControl("WebUserControl.ascx");
PlaceHolder1.Controls.Add(uc);
}
it is right
for(int i=0;i<cntrlarray.length;i++)>
{
//Get Values <--- cntrlArray[i].YourProperty;
}
i think it will also work
after that how pass the values of the property (i have three properties in usercontrol)values with in conditions(if select 2 then 6 values goes to next page and if 3 selected by user then 9 values should pass ) at next page.
plz suggest
thanks ......gaurav
|
|
|
|