|
Hi,
my code
aspnet_User user = c.aspnet_Users.First(u => u.UserName == userName);
user.UserName = e.NewValues["UserName"].ToString();
user.LoweredUserName = user.UserName.ToLower();
c.SubmitChanges();
after submit changes my aspnet_user table have 2 rows. one is with old username and another one is with new .. hmm.gif i only want to update the row
|
|
|
|
|
Have you got a primary key on the table?
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|
|
Hi,
When i run amy web app in asp.net2.0 with sqlserver2000 , I am getting the Err;
"WebDev.WebServer.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
What could be the problem .
Plz help.
|
|
|
|
|
Hi,
This is because your .NET webdev exe has currupted. Repair will solve this problem.
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
Hi,
Thanx ,But should i install the whole .net or can it be repaired with the other ways .
Plz help.
|
|
|
|
|
plz reinstal the basic software for the vs 2005...........and check out the registry........and also the current process to the task manager...........
|
|
|
|
|
how to make page like Igoogle(http://www.google.co.in/ig?hl=en) specialy feture
of drag drop item one div to another
Please help me.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I used this[^] book and sample code to create an iGoogle like site.
http://dropthings.omaralzabir.com[^] is the sample page that it teaches you to build
It's reasonably straightforard and uses Linq.
|
|
|
|
|
Thanks For Reply
Please explain in Briefly.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
iGoogle is made up of widgets. The book explains how to create your own widgets using the .net 3.5 Ajax framework.
When a new user logs in, database records are created to record which widgets they have selected and the widget locations in a three column screen layout. When a user drags and drops a widget, the column number and order are recorded via Ajax back to the database for the next time they login.
You can use the basic framwork to create your own widgets to do anything you want, but the most useful RSS functionality etc is already written for you.
hope this helps.
|
|
|
|
|
Hello
Tell me please how to allocate a variable "perem" from
protected void ddlCategories_OnSelectedIndexChanged (Object sender, EventArgs e)
(
DropDownList d;
d = (DropDownList) sender;
string perem = d.SelectedItem.Text;
)
to
protected void GridView1_RowDataBound (object sender, GridViewRowEventArgs e)
|
|
|
|
|
you mean you want to store value among postbacks..
Use Session, viewstate, cookie etc to do this ..
|
|
|
|
|
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
|
|
|
|