|
My problem is kind of javascript related thing I guess. I have this datalist stuff and On it there are some titles being read from database. its ok so far. But I have this link for each title so when a user clicks on that link (READ MORE link) there opens a new window above all windows and the news show up there.
I've used the code below in the OnClientClick event of my READ MORE link :
<asp:LinkButton ID="LinkButton4" runat="server"
CausesValidation="False" OnClientClick="windows.showModalDialog('news.aspx, titlebar="no", fullscreen="false", width="300", height="300", toolbar="no", resizable="false", menubar="no"');">read more</asp:LinkButton>
The qoueted part is a little problamatic I guess. I mean I used qouets, i removed them, I changed the captial letters and ... but no result.
If possible please give me the proper solution
Proper Prepration Prevents Poor Performance! h
|
|
|
|
|
The second argument to showModalDialog should be like this:
OnClientClick="windows.showModalDialog('news.aspx, 'menubar=0, scrollbars=1, resizable=1, toolbar =0, width = 390, height = 500');"
Rules biler
modified on Sunday, February 15, 2009 2:35 PM
|
|
|
|
|
I have an asp gridview that is using a theme skin file. The theme is applied correctly to the gridview until I install the css friendly browser. Can anyone help?
Thanks,
Steve
|
|
|
|
|
I found out that when using css friendly browser you application will only use css for the controls. The browser will not allow for themes. This is what I was told. Please correct me if this is not true.
Thanks,
Steve
|
|
|
|
|
hello friends,
i am working on some project where i need to use javascript in the webforms. i am unable to access the controls in the javascript. for example i have two image controls in my webform. i want to increase size i.e. height and width of the control on mouseover event. can you help me plz.
i am using visual studio 2008 professional edition but i am not getting document.getElementById in the intellisence even.
with thanks...
Tarun Suneja
|
|
|
|
|
where is your code ?
or try: document.getElementById('<%=YourControl.ClientID%>');
|
|
|
|
|
function change3() {
document.bgColor = "blue";
//document.getElementById('Image1').value = "hello";
document.getElementById('Image1').ImageUrl = "~/Ferrari/004.jpg";
document.getElementById('Image1').style.height = "170";
}
this is my code.
this is working in a simple webform which do not use master page.
but a webform which uses a master page does not execute it. it changes the bgColor but not the attributes of the control (image1 here).
pls help me.
with thanks...
Tarun Suneja
`
0
|
|
|
|
|
hi guys in my log out i am clearing all the session,
then if i click the back button of browser its moving to my default page...,
then if he click any operation its redirecting to login page...,
after my log out, end user cant go back to default page...,
but after login, if he will be in a default page there he can go for back operation...,
how to do that..,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
By marking the pages so they are not cached.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All
I want to develop multilingual selection feature in my asp.net website. How could i do the same.
Localization and Globalization work but i don't know multiple language to write values in resource files.
Also the website has an admin panel where administrator (owner) will change the data.
So how could i do the same
Thanks and Regards
Yogesh Agarwal
|
|
|
|
|
yogesh_kumar_agarwal wrote: but i don't know multiple language to write values in resource files.
Sounds like you need to employ an interpretor then.
yogesh_kumar_agarwal wrote: Also the website has an admin panel where administrator (owner) will change the data.
So how could i do the same
Not sure what you mean, but if you want somene to maintain the data then obviously they need to know the various languages
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Yes, bingo
i need to integrate an language interpreter by which the language will change because admin will update the text or matter for the site in english language only.
So what could i do for the same.
Regards
Yogesh Agarwal
|
|
|
|
|
Well, a quick google shows there are several language translators (including google's own), so you could see if any of them have a useable api. I suspect though that the result will leave a lot to be desired as most automatic translators do it on a word by word basis, not taking context into account.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi,
I have an Asp.net application in which I need to place Mozilla custom toolbar. I have code for placing a button and textbox in the IE toolbar and I completed it with reference to
http://www.codeproject.com/KB/dotnet/IE_toolbar.aspx?display=Print
Now I have to do this for Mozilla toolbar. If anyone has any idea about how to place a Mozilla Firefox custom toolbar, please help me. Kindly please reply me soon.
Thank you
|
|
|
|
|
ASP.NET has nothing to do with adding a toolbar, your toolbar will be there for all apps, not just yours. You can easily google for how to add toolbars to Mozilla
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi i am praneeth, i am able to bring the date in a string ,but having problem in splitting and populate in dropdownlist's, please help me ,thank's in advance.
my code which i have tried,
private void GetCurentDay()
{
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate())", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
ddlFromDay.Items.Add(currdate);
}
}
catch { }
finally
{
conn.Close();
}
}
|
|
|
|
|
Praneeth Babu K wrote: having problem in splitting and populate in dropdownlist's, please help me ,thank's in advance.
what and how are you trying to split ?
|
|
|
|
|
string currdate is populating date as 2/14/2009 , i want to populate it in 3 different dropdownlist , like ddldfromday ,month and year.
|
|
|
|
|
Praneeth Babu K wrote: string currdate is populating date as 2/14/2009 , i want to populate it in 3 different dropdownlist , like ddldfromday ,month and year.
So, You want to split 2/14/2009 in Day, Month and Year?
if yes the
string strcurrentDate="2/14/2009"
string [] Difdate=strcurrentDate.Split('/');
now, you can add day, month, year in different Dropdown list , Like
ddldfrom.items.add(difDate[0].ToString());
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
sorry yaar for repeatedly asking ,when i try like this i am getting in dropdownlist as system.data.dataset
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate())", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
string[] temp = currdate.Split(new char[] { '/' });
ddlFromDay.Items.Add(temp[0].ToString());
}
}
catch { }
finally
{
conn.Close();
}
|
|
|
|
|
Praneeth Babu K wrote: conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
string[] temp = currdate.Split(new char[] { '/' });
ddlFromDay.Items.Add(temp[0].ToString());
}
Did you Debug your Code ?
Praneeth Babu K wrote: currdate = ds.ToString();
What is value of currdate?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
currdate value is 2/14/2009 12:00:00 AM
|
|
|
|
|
Praneeth Babu K wrote: currdate value is 2/14/2009 12:00:00 AM
It's is coming after changing the code.
Praneeth Babu K wrote: currdate= ds.Tostring();
The value you have given is not from this line of code. I believe you have got your mistake.
Now, How to get the same result that we have already told you from this currdate , it now your home work. Try to resolve it yourself.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
If currdate is a string you can split it (and has the value in format '2/14/2009')
string []temp = currdate .Split(new char[]{'/'} );
temp will contain the separated values.
if currdate is a datetime variable then currentdate.Day, currentdate.Month, currentdate.Year will give you the values.
you will need to add the values to each of the lists.
|
|
|
|
|
sorry yaar for repeatedly asking ,when i try like this i am getting in dropdownlist as system.data.dataset
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate())", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
currdate = ds.ToString();
string[] temp = currdate.Split(new char[] { '/' });
ddlFromDay.Items.Add(temp[0].ToString());
}
}
catch { }
finally
{
conn.Close();
}
|
|
|
|