|
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.
|
|
|
|
|
I got an article , does it says IIS 6.0 cannot encrypt and IIS 5.1 Can encrypt?
http://www.guidanceshare.com/wiki/ASP.NET_2.0_Security_Practices_-_Configuration
Actually this is happening ..My machine is 6.0 its NOT working and 5.1 is working.
|
|
|
|
|
Hi ,
I have to develope an application in .net for generating barcode (128) format.
Anyone can tell me how to do this.
Is there any DLL or OCX available for this.
I googled but didn't get proper dll and ocx.
|
|
|
|
|
There would appear to be lots of samples here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Try devExpress component or any other.. Google asp.net barcode for more
|
|
|
|
|
Don't tell me, tell the OP.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Ravindra Bisen wrote: I googled but didn't get proper dll and ocx. Use right keywords in Google.
I got this article from Codeproject(Search keyword is "barcode 128 asp.net")
GenCode128 - A Code128 Barcode Generator[^]
xoxo
Kid sister
|
|
|
|
|
ASP.NET Code 128 Barcode Generator DLL is an ASP.NET barcode generation control that enables .NET developers to create, manage and manipulate Code-128 barcodes in ASP.NET Web Forms, ASP.NET Web Server as well as in Internet Information Service (IIS).
|
|
|
|
|
Hi all, it been a while I am trying to make the gridView Itemtemplate Button even to work. I am not able to do so. There is no way I can make the button click even to fire.
here I have the grid
<asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" GridLines="Horizontal"
onrowediting="myGridView_RowEditing" HorizontalAlign="Center"
onrowcommand="myGridView_RowCommand" CellSpacing="4" forecolor="Black"
onrowcreated="myGridView_RowCreated">
<RowStyle BorderStyle="Outset" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="selectButton2" runat="server" Text="Add" CausesValidation="false"
OnClick=" AddItemToCart" UseSubmitBehavior="True"
CommandName="selectButton2" oncommand="selectButton2_Command" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField ="ItemID" HeaderText="Item ID"/>
</Columns>
</asp:GridView>
|
|
|
|
|
I have two radio buttons with Autopostback=true. I see that in purely random cases the autopostback-ability misses out. I confirmed this from FireBug where it showed the onClick event was not emitted.
Whilst I observed in debugger the control did have Autopostback true all along. How do you then try to identify where it misses out the autopostbacking ability?
Funniest Resolution. If one of the checkbox has CHECKED=TRUE in the markup, then the code onClick does not emit.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
modified 23-Feb-12 16:14pm.
|
|
|
|
|
Hi,
I am using xsd dataadapter to connect oracle databse in my ASP.NET web application.
Query Eg. Select * from Parameter_master where param_type='%'|| :Param_type || '%'
I my web application, if Param_type='Dynamic', sql query is executed successfully but as Param_type='Dynamic' it failes. gives error('ORA 01489: string concatenation too long').
But for both Param_type(Static/dynamic) query is executed successfully using 'PL/SQL developer'.
I stucked here as not getting any clue.
Please guide me to resolve the issue.
Thanks in advance.
|
|
|
|