|
Ok, is your problem solved?
Either you love IT or leave IT...
|
|
|
|
|
no, not yet
|
|
|
|
|
Hi,
In my project I have a requirement to open the dynamically changing weblinks in the same browser new tab or window. For example if my application is opened in IE then when I click an the button it should open the web link in IE new tab or window. Similarly if the application is opened in Mozilla Firefox then on button click it should open in a new Mozilla tab or Window. In this way the link should be opened in the new tab or window of the browser in which the application is presently running.
I have code to open in only IE browser as gven below.
System.Diagnostics.Process.Start("IExplore.exe", NavVideo);
but I want to run in different browsers as I nave mentioned above.
If anyone know solution for this please rely me soon.
Thanks in advance.
|
|
|
|
|
|
Hi I want to create the one drop down box if i click on that drop down box then one calender should open
can any one tell me how to do this..
Thanks
|
|
|
|
|
The choice is yours whether you want to go for a client side javascript calendar or a server side calendar. If you want to use client side calendar then several javascript,dhtml calendars are freely available on the net. So you can download them and use them on the selected index change event of the drop-down list. If you want to go for any server side control, then either you can use a standard ASP.NET Calendar Control or AJAX calendar Control.
Either you love IT or leave IT...
|
|
|
|
|
use ajax calender ......
it works gr8
|
|
|
|
|
Hi,
May i know how can i automatically update client display based on server data....
using javascript or any other script....or AJAX...
|
|
|
|
|
What do you want to mean by client display? For example, do you want to display server data in a label control?
Either you love IT or leave IT...
|
|
|
|
|
Yes i want to display the memory status of server in client in any control...
how can i achieve this in aJAX or any other means...
|
|
|
|
|
|
it need not be an ASP page it can be html page also ...
if it is html page pls let me know how can i display....
|
|
|
|
|
Does html page run on browser?
Either you love IT or leave IT...
|
|
|
|
|
yes it is running in browser....
|
|
|
|
|
Yes you can use AJAX. Using that you can contact server from client whenever you want and get the data.
|
|
|
|
|
Hai,
I have created a footer template in my gridview, This footer template contain many dynamically created controls where the dropdownlist is one. I have created the dropdown and assigned a function to it as follows:
DropDownList selPage = new DropDownList();
selPage.ID = "selPage";
selPage.CssClass = "GVFooterSel";
for (int cnt = 0; cnt < GVDoctor.PageCount; cnt++)
{
int curr = cnt + 1;
ListItem item = new ListItem(curr.ToString());
if (cnt == GVDoctor.PageIndex) { item.Selected = true; }
selPage.Items.Add(item);
}
selPage.AutoPostBack = true;
selPage.SelectedIndexChanged += new EventHandler(selPage_SelectedIndexChanged);
selPage.Attributes.Add("onchange", "selPage_SelectedIndexChanged(this,event)");
The functions gets fired but i can't able to find the control and access its selected index.
can any help me?
Radiv Jeshya
|
|
|
|
|
Hi,
In the selPage_SelectedIndexChanged event, you can get the selected index of the control by using the following code:
int selectedIndex = ((DropDownList)sender).SelectedIndex;
I hope it will solve your problem.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
Just add a panel in your .aspx page because u need some controls like panel or table or place holder to display the dynamic controls,
Your code here,
DropDownList selPage = new DropDownList();
selPage.ID = "selPage";
selPage.CssClass = "GVFooterSel";
for (int cnt = 0; cnt < GVDoctor.PageCount; cnt++)
{
int curr = cnt + 1;
ListItem item = new ListItem(curr.ToString());
if (cnt == GVDoctor.PageIndex) { item.Selected = true; }
selPage.Items.Add(item);
}
// add this line and run. Now u could see your dropdown in the interface.
Panel1.Controls.Add(selPage);
selPage.AutoPostBack = true;
selPage.SelectedIndexChanged += new EventHandler(selPage_SelectedIndexChanged);
selPage.Attributes.Add("onchange", "selPage_SelectedIndexChanged(this,event)");
|
|
|
|
|
Hi experts ...
i am trying develop a application which contain cart not fully functioned ...
in our application the visitor just select the products and we provide add to cart button to him/her then finally the guest ordered items list is send as a mail to admin then admin interact with the guest....
the problem is we are using xml file for storing ordered items i think this is not the way
just suggest me how to design ...
Best Regards
Rajesh Kumar Chekuri
www.funevil.blogspot.com
www.rajeshchekuri.co.cc
www.funnydotnet.blogspot.com
|
|
|
|
|
Plssssss help me..........
Best Regards
Rajesh Kumar Chekuri
www.rajeshchekuri.co.cc
www.funnydotnet.blogspot.com
|
|
|
|
|
In over your head? If you have a paying client, I strongly suggest you tell them the truth now (i.e. you aren't able to provide a viable solution) before the excrement hits the fan. This is not a hard design question, this is not even a website solution building 101 question. Get some experience instead of either (a) setting yourself up to fail and/or (b) cheating customers out of their hard earned cash.
Help provided.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
Hi All,
I have table with 3 fields id , status and Name...
I have 3 or more label boxes in my header. I getting data like,
"select id, Name from table1 where status = 1"
My data are,
id Name
1001 AAA
1002 CCC
1003 SSS
My code is
Header head = new Header();
DataSet obj = new DataSet();
obj = head.getdata();
if (obj.Tables[0].Rows.Count < 0)
{
int i;
for (i = 0; i <= obj.Tables[0].Rows.Count - 1; i++)
{
string text1 = obj.Tables[0].Rows[i]["id"].ToString();
string text2 = obj.Tables[0].Rows[i]["Name"].ToString();
lblMessage.Text = text1 + " " + text2;
}
}
It shows only the last data...I know i have to assign values to lblmessage1.text and lblmessage2.text and so on..
But i do not know how to fix it...
I am fresher and new to sql....Give some samples
Thanks in Advance
|
|
|
|
|
Hi,
You have told that you are using three or more label controls to display three rows picked from the database tables. As far as the code that you have posted, you have started a for loop and it binds the value with the lblMessage control. So it is pretty clear that the value which is getting bound to the lblMessage control, is getting overwritten each time the for loop runs. So at the end of the loop execution, the label is showing the last result only.
Suppose, you have three controls like lblMessage1, lblMessage2 and lblMessage3. To achieve the functionality referred by you, just try the following code:
for (i = 0; i<= obj.Tables[0].Rows.Count - 1; i++)
{
if(i==0)
{
string text1 = obj.Tables[0].Rows[i]["id"].ToString();
string text2 = obj.Tables[0].Rows[i]["Name"].ToString();
lblMessage1.Text = text1 + " " + text2;
}
if(i==1)
{
string text1 = obj.Tables[0].Rows[i]["id"].ToString();
string text2 = obj.Tables[0].Rows[i]["Name"].ToString();
lblMessage2.Text = text1 + " " + text2;
}
else
{
string text1 = obj.Tables[0].Rows[i]["id"].ToString();
string text2 = obj.Tables[0].Rows[i]["Name"].ToString();
lblMessage3.Text = text1 + " " + text2;
}
}
All the best.
Either you love IT or leave IT...
|
|
|
|
|
Thanks for your reply..
I case i have mulitple records in my table and may use more label box in my page..
How can I change my code?
|
|
|
|
|
Hi,
Did you get the logic in the code that I wrote? If you got the logic then you should have got your answer.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|