|
I'm setting up some code that will automatically email a user on my network when a process is finished. I've done this before but this time I'm having to do this on a website that is housed within our DMZ and my network admin asked how the username and password that is needed in the web config is passed from the web server to our mail server.
|
|
|
|
|
Hi all.
Iam having one user control for eg: usersearch.ascx
I dragged tat user control in my aspx form,how can i get the values of textboxes from the user control form to main form, WIHOUT USING Response.redirect in control forms..
CAN ANY ONE HELP?
|
|
|
|
|
You first have to find the control in the code behind, several methods to do that, her is one:
the main page should look something like this.
<%@ Register TagPrefix="uc1" TagName="usersearch" Src="Controls/Search/usersearch.ascx" %>
.
.
.
.
<uc1:usersearchrunat="server" id="ucUsersearch"/>
In the code behind on the main page:
protected void btnSomeButton_Click(object sender, System.EventArgs e)
{
Controls.Search.usersearch _ucUsersearch = (Controls.Search.usersearch)this.Page.FindControl("ucUsersearch");
string strTheText = ucUsersearch.TextInTexbox;
}
in the code behind of the usersearch you have the following property;
public string TextInTexbox
{
get
{
return this.tbTheTextBox.Text;
}
set
{
this.tbTheTextBox.Text = Value;
}
}
}
Hope it helps
Thomas
modified on Wednesday, October 1, 2008 9:52 AM
|
|
|
|
|
> My Visual Studio 2005 is on C: drive
>I have Unziped the nant-0.86-beta 1-bin.tar in C:\Nant\nant-0.86-beta1
> I have created a folder C:\testNant\HelloNAnt.build (the notepad contains the following code)
<project name="Hello World" default="hello">
<property name="hello.string" value="Hello World">
<target name="hello" description="Echoes 'Hello World'">
<echo message="${hello.string}">
At Command Prompt:
C:\Nant\nant-0.86-beta1\bin>nant -f:C:\testNant\HelloNAnt.build
NAnt 0.86
Copyright<c> 2001-2007 Gerry Shaw
http:// nant.sourceforge.net
BUILD FAILED
C:\test Nant\HelloNant:
Error Loading buildfile
Could not find 'C:\testNant\HelloNAnt'.
For more information regarding the cause of the build failure, run the build again in debug mode.
Try 'nant -help' for more information.
Could you please help me where m I wrong?
I am very new to Nant. So please guide me step by step.
Thanks.
sanjay.kumar@acusis.com (Please reply me at this address).
S#
|
|
|
|
|
Typo?
have created a folder C:\testNant\HelloNAnt.build
Could not find 'C:\testNant\HelloNAnt' without the .build
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
How can I retrieve the value of one form field in aspx page by a class. For instance: I have a Name.text field in the form and I dont' want to use the following approach but I want to diretly get the value of it by a class.
<br />
Dim Myclass as Customer<br />
<br />
Myclass.Name = Name.text ' That is how we sent the value to class.<br />
<br />
That is what I want. How would it be possible for the class to directly get the value of the Name.text field?
<br />
Dim Myclass as Customer<br />
<br />
'Whenever I set the paramater as true, class will get all the fields value of a active form.<br />
<br />
MyClass.Form = ActiveFormName<br />
MyClass.ProcessForm = True <br />
<br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Take a look at Reflection, that is what you are describing.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Iknow what I am describing Bob. I was looking for another (approach). I know how to assign values of fields to a class object. The problem was about how to get the form fields directly inside a class.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I obviously misunderstood. If all you need are the controls from a form, why not pass the form into the class and iterate through the controls - you will need some sort of standard to allow you to match the cntrol name to the property, but I have used a similar technique in winforms very sucessfully.
Hope this idea is of use.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
How can I use Update Panel in Code - I want to post only a part of my web page so i have to use Update panel but i never know anything about it .how could i get this n use
Amit
|
|
|
|
|
Have u installed the ajax toolkit?
Cheers!!
Brij
|
|
|
|
|
|
Please drag a scriptmanager control on the pagr from tool box.The drag updatepanel.You can drag as many update panel as you want but scriptmanager will be onlyone.Then you can drag your controls in the updatepanel as requirment.There is a seeting for updatepanel as updatemode you can set it as Always/Conditional.by setting it conditional you can update from codebehind.
Cheers!!
Brij
|
|
|
|
|
|
Place those control inside updatepanel. When the postback happend only the updatepanel portion will be post back. if you have multiple updatepanel and you want update based on condition , use updatemode as conditional.
If you have any query please ask !!!
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
how can i load data in another checkboxlist based on selection of this checkboxlistin which is in a updatePanel
Gautam
|
|
|
|
|
Hi,
The Page has to expire when the user clicks the browser back button.
I tried with the following code in Page load event
Response.Buffer = True
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.Expires = 0
Response.CacheControl = "no-cache"
But did not work
I even Tried with the
Response.Cache.SetCacheability(HttpCacheability.NoCache)
But page is not expired.
Any suggestion is appreciated.
|
|
|
|
|
Hi,
Please go through the following link:
Link1[^]
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
please help...
i trying to get the subtotal of my worksheet using vb 2005 but i always get an error:
Subtotal method of Range class failed
this is my code:
Selection = Excel_App.Range("G2", "G4")
Selection = Excel_App.ActiveCell.CurrentRegion
Selection.Subtotal(GroupBy:=2, Function:=xlsum, TotalList:=(2), Replace:=True, PageBreaks:=True, SummaryBelowData:=True)
and one more thing... how can i get the subtotal in everychange in for example employees name?
hope you understand what im trying to ask about...
thanks a lot.
jyn
|
|
|
|
|
jhyn wrote: i trying to get the subtotal of my worksheet using vb 2005 but i always get an error:
Subtotal method of Range class failed
this is my code:
Selection = Excel_App.Range("G2", "G4")
Selection = Excel_App.ActiveCell.CurrentRegion
Selection.Subtotal(GroupBy:=2, Function:=xlsum, TotalList:=(2), Replace:=True, PageBreaks:=True, SummaryBelowData:=True)
and one more thing... how can i get the subtotal in everychange in for example employees name?
hope you understand what im trying to ask about... Unsure
You might want to ask this in the VB.NET forum.
|
|
|
|
|
Hi All,
I have a master page Admin.master which contains an ajax Tab Container. Tab Container again contains 3 tab panels "users","QuestionBank","Roles".3 content placeholders are present in content templates of eachtabpanel.
I'm using the these content place holders in 3 pages Users.aspx,QuestionBank.aspx,Roles.aspx. so, when i click tab "Users" it should go to "Users.aspx", similarly for other tabs.
I am looking for some one who can help me as soon as possible. it's very urgent
|
|
|
|
|
I have the same issue. Looking into a fix, but have found absolutely nada.
|
|
|
|
|
Hi all,
When i execute a query in the query window(VS 2005),it works well and returns a row of data.But when im trying to use the same query in my coding ,it pop ups an error like "Invalid attempt to read when no data is present."What will be the reason.?Can anybody help me to find the problem with this.
Thanks in advance.
|
|
|
|
|
did you forgot Read() method ? before geting the data fro DataReader, or Reader / Connection is Closed before reading ?
|
|
|
|
|
I have certain web forms with text\image as content(mostly Flowcharts).
I want to generate a doc file which would append the contents of all these web forms..
CAn it be done..pls help urgent..(C# offf course)
|
|
|
|