View Complete Post
Hi all
i am developed on simple user registeration application in that i gave address field .when i am trying to enter something like this (1st main,b'lore) but wont take while inserting.
my query is
sqlcommand cmd=new sqlcommand("insert into registeration_form(name,address)values('"+txtname.text+"','"+txt_address+"')",con);
how can i pass the quotes also to my query please if any one know reply me.
Thanks
G Dinakaran
I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:
FormsAuthentication.RedirectFromLoginPage(UserName.Text, False)
FormsAuthentication.RedirectFromLoginPage(UserName.Text,
I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.
Is there a way to store users but disable password storage on the aspnet_membership table?
Hello,
I search to download forum free for .Net plateforme,
Merci
Hi
I have a check box in a template field in a gridview.
Based on some condition, I want those check boxs to be enable and disable.
I am trying the below code but does working..
protected void GVstudents_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { string studentID = GVstudents.DataKeys[0].Value.ToString(); int stdID = Convert.ToInt32(studentID); int schID = profile.getSchoolIDByStudentID(stdID); int tchrID = profile.getTeacherIDByStudentID(stdID); if (patti.chkIsTeacherPaid(stdID, schID, tchrID)) { CheckBox cb = (CheckBox)e.Row.FindControl("chkTeacherPayment"); cb.Enabled = false; cb.Checked = true; } } }
any help??
I have an entity set of NotificationTemplates, and each one of these has a collection of zero-many SmsTemplate entities. When editing or viewing a NotificationTemplate, I have a link to View SMS Templates. That link takes me to a List view for the SmsTemplates entity set, filtered for the NotificationTemplate I was viewing.How can I prevent the user changing this filter to show SmsTemplates for another NotificationTemplate? That is, I want the filter, but it must be read only. The drop-down just mustn't drop down, it must just display the name of the NotificationTemplate that these SmsTemplates belong to. To view SmsTemplates for another NotificationTemplate, the user must click View SMS Templates from that other template.
This was originally asked by myself on SatckOverflow at: http://stackoverflow.com/questions/3514373/disable-filtering-on-a-dynamic-data-list-view
I have a HTML Table that I use to place the control in so they display nicely on my Web Form. I also use the Disable method to keep unwanted users from editing those controls based on their log in information, however I still want the information to be displayed for their review.
The information is displayed for example in the Text Boxes, however when they hit Enter on the form because the table is disabled for some reason the information is lost when I do my update to the SQL Server (the text box shows "")?
Why is it I can see the information on the screen, but the text box shows empty when hitting enter on the form?
Mark
I hope someone can be kind enough to help/advise me with this.
I have a web form with multiple checkboxes on it , with one of the checkboxes as the main (controlling) checkbox. By this I mean that when this main checkbox is checked then all the other checkboxes need to be disable and when its unchecked these other checkboxes need to be enable.
I've found (plenty of) code to do this in javascript but i would really prefer to to it in vb(.net), if possible.
I hope all this makes sense to you.
Thanks!!
Hey Community,
Here's a tough one that I have struggled with and so far have not been able to find an answer for - how do you use Javascript to disable a multi-line rich text field. I have customized a SP Edit form by adding a CEWP. In the CEWP I have added the Javascript below (only a partial code sample provided) to disable several fields in the form. The code works fine for single line text fields but it does not work for multi-line rich text fields. Any suggestions?
<script language="javascript"> //This runs the function when the form first loads _spBodyOnLoadFunctionNames.push("lockFields");
//This locks the fields the users should not modify function lockFields() { var theInputTFTitle = getTagFromIdentifierAndTitle("Input","TextField","Title"); theInputTFTitle.readOnly = true; theInputTFTitle.style.color = 'gray'; //alert(" Value: " + theInputTFTitle.value);//for testing
var theInputDDLReplyStatus = getTagFromIdentifierAndTitle("select","DropDownChoice","Reply Status"); theInputDDLReplyStatus.disabled = true; //alert(" Value: " + theInputDDLReplyStatus.value);//for testing
var theInpu
hi, I would like to make script that show category and all its forum
that 's why I have created table 'cat' ( id , CAT_TITLE )( table for category)
and an other table for forum name ' s 'forum' ( id , name,CAT_ID)
my question how I can show category and the forum by using repeater or another control like http://forums.asp.net/
Does anyone know if there is a way to disable the Undo feature within VS2005? I searched through the options but nothing jumped out at me.
I've somehow managed to successfully get Membership working on a test site I'm playing with (learning!). I've reached a point where I can redirect users to another page if they do not have the required level of membership - using the allow feature in a web.config within a folder.
What I would like to do now is create a main menu of links (a back office menu visible after the use has logged in), and disable a link if they do not have access to view that page. Is this complex? I'd be grateful for any sample code to get me started.
Many thanksRich
I need to post an xml string to another website. I can't create an xml file, because some of the content is dynamically created. The two lines that are causing me problems are
sPostData = sPostData & "<?xml version='1.0'?>"sPostData = sPostData & "<?qbmsxml version='4.1'?>"
The receiving site expects to see
<?xml version="1.0"?><?qbmsxml version="4.1"?>
not
<?xml version='1.0'?><?qbmsxml version='4.1'?>
The conversion from double quotes to single quotes isn't being accepted. So how can I send the string so that the versions are surrounded by double quotes?
everytime i debug the application i get the disassembly tab window i tried tools/option & unchecked show disaasembly if not is not avaliable & sourec file to exce;ty open the original file
but still i get after making the chnages i restarted my system but still i get it how do i disable teh disassembly tab
Hi,
iam using masterpage and sitemap in my project, what i want to is that
if user login is did, based on the user previlage in need to show the sitemap menu page
if user i have the previlage to see the page then i should enable that page otherwise
i need disable that page
looking for the valuable suggestions
Hi All,
Thank you for advance.
I created a widows service for mail schedule with c#.net and sql server 2005 and it is working fine for past one year. now sometimes i am getting the "System.Data.SqlClient.SqlException: Login failed for user '<UserName>'. Reason: The account is disabled." error. then i restarted the windows service manually and working. what is the problem in my sql server connection and how to fix that issue?
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend