|
Don't cross post. As was pointed out in the C# forum this question belongs here, but now that people have answered there you can't remove it or share the information here.
Failure is not an option; it's the default selection.
|
|
|
|
|
how to clear textbox when page is refreshed asp.net c#
heres my code not working
Code:
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
TextBox1.Text = "";
}
}
Code:
protected void Button1_Click(object sender, EventArgs e)
{
TextBox1.Text = "test";
}
|
|
|
|
|
Move textbox1.text=""; to the end of your submit button.
|
|
|
|
|
I have written an command line command to encrypt web.config connection string.
Once the command is run, i will see the connection string section in web.config file encrypted format. Then, i run the website and see the data from database has been fetched in the webpage.
I even can decrypt the connection string to make it normal. using another command line command.
Could any one tell me , few test cases that i could go for?
|
|
|
|
|
I have a huge XML file and some of the nodes in that are optional. I am not able to pull the bidder info from that, can anyone please help with this. The first 2 records of xml file are given below
<reports>
<report>
<xml-report>
<summary>
<dr-nbr>2012004</dr-nbr>
</summary>
<data>
<proj-title>
<title-code>
<title ci = "N">District 321</title>
</title-code>
</proj-title>
<p-location>
<project-location>
<title-code>
<p-county-name ci = "N">BOOLE</p-county-name>
<p-fips-county>MT101</p-fips-county>
<p-city-name ci = "N">MTELBY</p-city-name>
<p-state-id ci = "N">MT</p-state-id>
<p-zip-code ci = "N">69474</p-zip-code>
<p-zip-code5 ci = "N">69474</p-zip-code5>
<p-country-id ci = "N">USA</p-country-id>
</title-code>
</project-location>
<pct-project-county>
<title-code>
<p-county-name ci = "N">TOOLE</p-county-name>
<p-fips-county>MT101</p-fips-county>
<p-state-id>MT</p-state-id>
<p-country-id>USA</p-country-id>
</title-code>
</pct-project-county>
</p-location>
<status>
<title-code>
<status-proj-dlvry-sys ci = "N">Design-Bid-Build</status-proj-dlvry-sys>
</title-code>
</status>
</data>
</xml-report>
</report>
<report>
<xml-report>
<summary>
<dr-nbr>2011005</dr-nbr>
</summary>
<data>
<proj-title>
<title-code>
<title ci = "N">Plane Pitch</title>
</title-code>
</proj-title>
<p-location>
<project-location>
<title-code>
<p-county-name ci = "A">SUMMIT</p-county-name>
<p-fips-county>MI153</p-fips-county>
<p-city-name ci = "A">AVON</p-city-name>
<p-state-id ci = "A">MI</p-state-id>
<p-zip-code ci = "C">44308</p-zip-code>
<p-zip-code5 ci = "C">44308</p-zip-code5>
<p-country-id ci = "A">USA</p-country-id>
</title-code>
</project-location>
<pct-project-county>
<title-code>
<p-county-name ci = "A">SUMMIT</p-county-name>
<p-fips-county>OH153</p-fips-county>
<p-state-id>OH</p-state-id>
<p-country-id>USA</p-country-id>
</title-code>
</pct-project-county>
</p-location>
<project-bidder-information>
<title-code>
<bid-header>
<bid-header-desc ci = "N">Low Bidders</bid-header-desc>
<bid-title>
<bid-details>
<contact-information>
<firm-name>Many Stocks</firm-name>
<contact-name>Many Moree</contact-name>
</contact-information>
</bid-details>
<bid-details>
<contact-information>
<firm-name>Who Constrcution</firm-name>
</contact-information>
</bid-details>
</bid-title>
</bid-header>
</title-code>
</project-bidder-information>
</data>
</xml-report>
</report>
</reports>
my Code ************
Dim xtr As New XmlTextReader("C:\Test2.xml")
xtr.WhitespaceHandling = WhitespaceHandling.None
Dim X As New XmlDocument()
X.Load(xtr)
If Not (X Is Nothing) Then
Try
Dim ArticleList As XmlNodeList = X.SelectNodes("reports/report/xml-report")
For Each Article As XmlNode In ArticleList
Response.Write("**************New Record**********")
Response.Write("<br />")
Try
Dim CatNodesList As XmlNodeList = Article.SelectNodes("summary/dr-nbr")
Dim ProjectID As String
For Each category As XmlNode In CatNodesList
If category IsNot Nothing Then
Response.Write("Project No:" & category.InnerText)
ProjectID = category.InnerText
Response.Write("<br />")
End If
Next
Dim ProjectBidCompanyNodsList As XmlNodeList = Article.SelectNodes("data/project-bidder-informaton/title-code/bid-header/bid-title/bid-details/contact-information/firm-name")
For Each ProjCompanyNode As XmlNode In ProjectBidCompanyNodsList
If ProjCompanyNode IsNot Nothing Then
Response.Write("Bid Company:" & ProjCompanyNode.Value)
Response.Write("<br />")
End If
Next
Catch ex As Exception
Response.Write(ex)
Response.Write("<br />")
End Try
Next
Catch ex As Exception
Response.Write(ex)
End Try
End If
I am able to pull the Project No(dr-nbr) but not the bid companies that are in second row, what am i doing wrong. Thanks in advance
Thanks
Murari
|
|
|
|
|
Features required
There is need to implement the User Management solution for project, which would include:
simple website with header, footer and central part
simple user management with 3 roles – public user, registered user, website admin
Users should be able to register through registration form
Users should be able to log in and log out
Technical requirements
database – sql server 2008
ASP.NET MVC
front-end - jquery
The documentation with brief solution overview has to be prepared too.
|
|
|
|
|
I don't think anyone here would have the time to do your work for you. I suggest you try some studying and see what you can do for yourself or, if you do not have developer skills, then you need to advertise on vWorker[^] or similar sites.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Try something and then post any problems you face here - someone might be able to help you.
|
|
|
|
|
If this is homework then speak to your tutor/teacher and explain you don't understand any of it.
If this is a project that someone is paying you for then give back the money and apologise.
Why would you think that anyone would do all of that for you when, clearly, you haven't bothered to do anything for yourself?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
First of all, This is not a question. It's just like an order for waiter in hotel.
Anyway Go step by step. Check this resource .... Education Needed[^]
LekshmiM wrote: The documentation with brief solution overview has to be prepared too. Actually you have to create documentation for your project/application.
thatrajaNobody remains a virgin, Life screws everyone
|
|
|
|
|
Hi friends,
Thanx for urreplies.Actually I m windows.net programmer.Dont much know about web.Now learn some gud documents from net and googled for sample codes.Around 70% completed
|
|
|
|
|
Hi all,
I am using vs2010 with .net 4.0 and jquery AJAX to call to a static method in code behind.
I was success to call it but cant get the page's control. Following is my sample code :
[WebMethod]
public static string UpdateContent()
{
Page page = HttpContext.Current.Handler as Page;
TextBox tb = (TextBox)page.FindControl("txt");
tb.Text = "some string here";
if (db.UpdateTable()){return "success";}
else { return "failed"; }
}
So,my question is how can i access the page's control in my static method?
any tips are welcome
thanks in advance
cocoon
|
|
|
|
|
|
thanks so much..i will look at it now
|
|
|
|
|
Dear Parwej AHamand,
My requirement is bit different in what the article provided. In my situation, i need to pass 1 parameters to code behind (ideally is to .aspx.cs . Currently i am using webmethod.) and then do some checking with assist by most of the page's controls. For example, pass parameter "Save" to .aspx.cs , then get 10 textbox's value in that page to do verification.
hope u are understand my concern.
Thanks in advance
cocoon
|
|
|
|
|
i have a textbox with TextMode="MultiLine" and i need to set the text to some values which my default should appear as follows:
--- ENTER YOUR CONTENT HERE ---
==============================================
*|LIST:DESCRIPTION|*
Unsubscribe *|EMAIL|* from this list:
*|UNSUB|*
Our mailing address is:
*|LIST:ADDRESS|*
Our telephone:
*|LIST:PHONE|*
Forward this email to a friend:
*|FORWARD|*
Update your profile:
*|UPDATE_PROFILE|*
but i am not able to get one after the other can anyone help me
K.Gayathri
|
|
|
|
|
If you are talking about showing text in multiple lines, you can use Environment.NewLine constant to do that.
TextBox1.Text = "Line 1" + Environment.NewLine + "Line 2" + Environment.NewLine + "Line 3";
|
|
|
|
|
Hello..
I am developing a project in .net and C#.net, offering free web hosting with subdomain,
like Geocities and Tripod.
but i dont know that how to create subdomain programmatically by C#.net coding.
As the user will fill the member forms and will become the member , he will get a url like
http://subdomain.domain.com automatically,
|
|
|
|
|
This[^] may be helpful to you.
|
|
|
|
|
can anybody give me video gallery code in asp.net?
modified 25-Feb-12 12:03pm.
|
|
|
|
|
If you want it just like youtube why not ask youtube for it?
Seriously, you really think someone is simply going to hand over a complete solution?
Unbelievable.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Hi,
Does anyone tried www.arvixe.com web host?
are they good?
how is thier support? and uptime?
|
|
|
|
|
No but I've used DiscountASP.net[^] and SoftSys[^] and not a single issue with either
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
am trying to encrypt a web.config file using the following command i am getting the error like below:
"Illegal characters in path"
aspnet_regiis.exe -pef "connection
Strings" "D:\Password Encryption\DPAPITestWeb\DPAPITestWeb\" prov "DataProtection
ConfigurationProvider"
web.config section has been provided below :
<connectionstrings>
<add name="Connection"
connectionstring="Data Source=clsql.mgt.com;Initial Catalog=Proj_Report;user id=webuser;password=dian87;">
could encrypt this in different machine. But only this issue arrises on my machine
modified 24-Feb-12 6:48am.
|
|
|
|