|
|
I tried it already but its not working.
|
|
|
|
|
AAARRGGHHHH !!!!
If you searched this forum, this is asked all the time.
1 - this is NOT an ASP.NET question. ASP.NET CANNOT help you send an SMS
2 - if you use ASP.NET or not, SMS sending will happen via a webservice, for logical reasons
3 - finding one that works where you live is your problem. Don't forget to also make sure it works in the country your client lives in, as I assume they differ.
4 - if you use a free service, then you have no-one to blame but yourself when it disappears.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
How to store and retrive multilinetext(Not single line) from textbox in to sql server.
|
|
|
|
|
Are you joking, or are you breathtakingly stupid ?
Start a new thread for a new question, but this question is very simple, and again tells me you need to read a BASIC book.
The only issue you have is that in HTML you use break tags, not newlines, for text that is multiline
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear All,
Even after a button click, page_preinit event is handled before button_click event. I am handling an issue at page_preinit. Is there a way to to tell page_preinit event that it is fired by this button click.
I am asking this since One process at page pre_init should be realized when it is either !ispostback or this buttom is clicked.
Thanks in advance..
|
|
|
|
|
To determine who caused postback, use Request.Form["__EVENTTARGET"]. It holds the UniqueID of the control that caused postback.
I've found and read so many articles on this, but none of them (that I read) mention that if the control is a button, its UseSubmitBehavior must be set to false.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks I did not have time to test it...
But will let you know as soon as I do.
|
|
|
|
|
Hello
I forgot to mention that it was ImageButton and not Button, I used coordiantes to solve it.
However the answer you gave was very tricky and thanks for that. As you said none of the articles mention that. So I gave the highest rating .
|
|
|
|
|
I'm developing a Webform that displays a newsletter. At the bottom the newsletter, there is a comment textbox to allow the user to post a comment. I have a RequiredFieldValidator attached to the comment box to prevent empty comments from being posted.
All is working fine but I'm trying to add a "Sign Up" function so the user can register their e-mail address to receive the newsletter in their inbox.
The "Sign Up" functionality consists of:
* txtEmailAddress,
* RequiredFieldValidator for txtEmailAddress
* btnSignUp
Now when btnSignUp is clicked, the RequiredFieldValidator for txtComments will not allow the page to postback!
I know an easy solution would be to redirect the user to another page for registering and set btnSignUp property: CauseValidation to false. I guess I'm too bull headed but I want to give the user the quick access of signing up on the newsletter page! Is there any way besides a lot of javascript to accomplish this?
Thanks,
Richard
If my answer has helped you, one of my articles may also be a help. Also remember that your best friend's name is google.
|
|
|
|
|
|
Thanks for the info! That's what I needed.
If my answer has helped you, one of my articles may also be a help. Also remember that your best friend's name is google.
|
|
|
|
|
Glad you found it useful but please remember to rate the response appropriately.
only two letters away from being an asset
|
|
|
|
|
Richard Blythe wrote: The "Sign Up" functionality consists of:
* txtEmailAddress,
* RequiredFieldValidator for txtEmailAddress
* btnSignUp
Now when btnSignUp is clicked, the RequiredFieldValidator for txtComments will not allow the page to postback!
You need to create the ValidationGroup for it. RequiredFieldValidator for txtEmailAddress , txtEmailAddress and btnSignUp should be under same validation group.
|
|
|
|
|
Hi,
I am doing forum project. I have a doubt, tat how to count the value. that is, all the data which displays in gridview. in tat i need to show the reply value [count the value from database].it means in database i hv field lke pid,pstreplyid,uid,tit,sub ...., in tat wen i create new msg it ll save in database giving pid automaticaly and in pstreplyid if its newmsg it creates 0 if its reply ten it takes pid value.
in gridview what i wud lke to display is, the reply value, if the pid(2) has 3 reply means, the field of reply shud show 3.
but i hv given query which displays only the new msg tat is pstreplyid=0.
i need to display new msg at the same time it should display the replyvalue also.
but i dnt knw how to count tat value so pls help me to do.
you just give me the suggestion to overcome the issue.
this is the gridview coding
============================
page load()
{
string k = "select *,(select uname from login where login.uid=thread.uid)as uname from thread where pstreplyid=0";
adp = new SqlDataAdapter(k, con);
DataSet ds = new DataSet();
adp.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
HTML
====
<asp:TemplateField HeaderText="Thread">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("tit") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<
<asp:LinkButton ID="LinkButton1" runat="server" Text='<% # Eval("tit") %>' CommandName ="viewmsg" CommandArgument ='<%# DataBinder.Eval(Container.DataItem,"pid")%>' >LinkButton</asp:LinkButton>
<br />
<%#Eval("sub") %>
</ItemTemplate>
<asp:BoundField HeaderText="Replies" DataField="pstreplyid"/>
<asp:BoundField DataField="pdate" HeaderText="Post Date" />
<asp:BoundField DataField="rdate" HeaderText="Reply Date" />
<asp:TemplateField HeaderText="Posted By">
Thank you in advance.
k.priya
modified on Sunday, August 9, 2009 12:08 PM
|
|
|
|
|
priyamsc wrote: how to count the value. that is, all the data which displays in gridview
Try out ds.Tables[0].Rows.Count..(just check the syntax )
|
|
|
|
|
could you say little bit clearly
k.priya
|
|
|
|
|
I think, you can get the count of rows which you are looking for.
ds.Tables[0].Rows.Count would give you the count of rows.
Let me know if you are looking for something else.
|
|
|
|
|
can i get rowindex of paricular row in a table
|
|
|
|
|
amarnath n.n wrote: can i get rowindex of paricular row in a table
which kind of table ? Are you talking about GridView or what ?
|
|
|
|
|
|
sorry wrongly sent
Table in a DataSet
|
|
|
|
|
amarnath n.n wrote: Table in a DataSet
Yes you can. Load the DataSet Table data in DataTable . Then you can read the data from each and every row based on row index.
DataSet Ds= LoadDataSet();
if (Ds.Tables["Table1"].Rows.Count>0)
{
DataTable dtable = new DataTable();
dtable = Ds.Tables["Table1"];
string Name= dt1.Rows[0]["Name"].ToString();
}
This is an sample example, Hope this will help you
|
|
|
|
|
Not like this i want to get the rowindex of particular row.see the code which i am trying to do that
DataRow[] row =dsphotos.Tables[0].Select("PHOTO_ID",Session["ID"].ToString());
int rowindex= dsphotos.Tables[0].Rows.IndexOf(row[0]);
|
|
|
|
|
So what's your question? You are fine with your implementation or you want something else.
|
|
|
|