|
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
|
|
|
|
|
For asp.net 2.0, The maximum session timeout is 365 days(525600 minutes).
|
|
|
|
|
We have to set at web config right
<sessionstate timeout="525600">
KaKaShi HaTaKe
|
|
|
|
|
Yes. Setup in the <sessionstate> element in web.config file.
|
|
|
|
|
Yes i have set the following
<sessionState timeout="240" />
However it still time out at 30min and it doesn't seem to work
i use session variable like Session["Object"] is there anything else i need to set for the time out thing?
KaKaShi HaTaKe
|
|
|
|
|
I developed my applications on desktop before, but the softwares slowly evolve into a web based application. I want to rewrite my accounting system from desktop based to web based. i started to develop some easy areas of the application but i'm still thinking how to do the multiple entry type mode.
my requirments:
i to want create additional controls (textbox, listbox, etc.) in an active webpage(debit_credit_entry.aspx) without leting the page do the postback ...
in short, a page is a multiple entry type. each control has its own validation, the columns are fix but rows are unlimited. the user is allowed to add rows depending on his requirements.
i dont have any idea how to start do it in a web page environment.
thank you in advance.
xxx
|
|
|
|