|
Resolved
protected partial class page1:system.web.ui.page
{
string value1 = "";
protected void ddlCategories_OnSelectedIndexChanged(Object sender, EventArgs e)
{
DropDownList d;
d = (DropDownList)sender;
value1 = d.SelectedItem.Text;
GridView1.DataBind();
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
value1....
}
}
|
|
|
|
|
Hi, I am using HTML select control and i want to display first option in italics style, other options are in normal font-style.
How can i do this ?
Cheers..!
Vijay s
|
|
|
|
|
you can create a custom select control using divs ... and javascript.
modified on Friday, May 15, 2009 5:20 AM
|
|
|
|
|
you can use example below
<style>
.italic{ /*add code here*/ }
.normal{/*add code here*/}
</select>
<select>
<option class="italic" > option1 </option>
<option class="normal" > option1 </option>
<option class="normal" > option1 </option>
....
</select>
sealight
|
|
|
|
|
how do you get the current user logged on to Moss to show in a text box using C#? custom webparts
|
|
|
|
|
Hello there,
I am using a GridView control to display some records of a table from an SQL database.
There is a field called Attendence and I am using a radiobuttonlist( in GridView's edit mode) to display and then select the Attendence , present or absent . While clicking the edit button it shows the radiobuttonlist with two items present and absent. Here comes my problem. When the user clicks the edit button ,I want one of the values present or absent to be selected as per its saved value in the database.If the user wants he/she can change it by selecting the appropriate radiobutton.
I tried using SelectedValue property of the RadioButtonList, but I am not able to set it declaratively, an error occurs if I do.
Can anybody help ???
Thanks ,
|
|
|
|
|
What Error are you getting?
How are you accessing the RadioButtonList?
|
|
|
|
|
When you assign these option to the radiobuttonlist. Do you both fill Text and Value property?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Just google the heading you would get information that Sql To Linq is abandoned by Microsoft. Is it worth to learn Linq to Sql.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
I think they are investing now on Entity Framework . To learn it or not is completely subjective.
|
|
|
|
|
i have created div at run time but and class is also specified but css not applied to that div why is it so
i create div at design time then css gets applied
|
|
|
|
|
View the source of your output to check that the div has the correct class name. If you added the class using the cssclass property it may have appended to the class name or if your css is referencing the ID, check that the ID outputs as expected.
|
|
|
|
|
hello,
i am using the WebNavigate to navigate to a webpage from my c# application.
i try to post data to a form which is in that page. (its my page , i control it)
first , what is the name of the field i need to put in the post string?
is it ID or NAME ?
second , i tried various methods but none filled the form textbox with the information i sent. what am i doing wrong?
here's the c# code
WebBrowser Web = new WebBrowser();
string postdata = "ctl00_pass=1234";
System.Text.Encoding a = System.Text.Encoding.UTF8;
byte[] SendBytes = a.GetBytes(postdata);
Web.Navigate(WebBase + WebAddress, WebTitle, SendBytes, "Content-Type: application/x-www-form-urlencoded");
.
and here's the website
<form name="aspnetForm" method="post" action="default.aspx?key=5555" id="aspnetForm">
<input name="ctl00$pass" type="text" id="ctl00_pass" />
</form>
.
tnx
modified on Friday, May 15, 2009 2:04 AM
|
|
|
|
|
Hi,
I want to develop an application which translates english text to other language(hindi,french) just like google translator does.I don't want it to be very sophesticated .I want to understand the concepts of Localization,Globalization,Culture etc.through this.
Sharan
|
|
|
|
|
|
hi
i m using master page for designing a website
my master page has four menus and a dropdownlist.
so amount of code is huge on master page
can i do something to improve the speed of my website.
|
|
|
|
|
Is there any way you can break the menus up and place them on separate pages. Menus really should not have more than a couple of levels of submenus - people get lost trying to use them. Perhaps on the top level you could include only some basic choices, then create separate pages for each major function containing the more detailed selections. The only way to speed up a site is to reduce the page size.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
hi
i m designing a user interface.i m using a master page
i m using a table. table has three rows.
in first and last rows i m using master page
just after moving from home page to first page height of my first row is increasing
automatically.i tried all height attributes
but no gain.
help soon
|
|
|
|
|
Hi all,
I am having a problem with this ClientScript.RegisterStartupScript.When i am getting any exception the above function shows the message.But when i am using like if the textbox is empty i want to display a message but,it is not displaying.I have defined like
ClientScript.RegisterStartupScript(this.GetType(), "msg", "<script>alert('enter the date');</script>");
I have tried in IE,Mozilla but still not getting.
Can any one tell me.
Thanks in advance.
|
|
|
|
|
Your question is not clear.
If textbox is empty, where do you check that in your javascript.
Also why don't you try RequireFieldValidator for textbox validation.
|
|
|
|
|
No actually when i save the data to database,if it is sucessful i want to show the message that is data saved.
|
|
|
|
|
|
i tried that example in c# it is not showing and also i am using the update panel i.e., ajax.
|
|
|
|
|
If you are using Ajax, then user ScriptManager.RegisterStartupScript function. ClientScript.RegisterStartupScript may not work within update panel after a postback.
|
|
|
|
|
Hey guys
if i wanna enable Session without letting it time out what can i do ?
or what is the max duration for session?
KaKaShi HaTaKe
|
|
|
|