|
Possibly enableviewstate flag needs to be set to true.
You are using a standard html input item, rather than a dotnet control. This is ok since you set the runat server attribute. You may also want to set the enableviewstate="true" attribute as well. Not sure if this solves it, but worth a try.
An alternative would be to use an 'asp:label' tag and set it's visibility to false. This gives you a fully qualified dotnet control, yet is not displayed to the user.
Steve
|
|
|
|
|
hi,
I have 100 records in DataSet. I have one button. When I Click that button I want to fetch 1-10 records from DataSet.
When again I click the button then I want 11-20 records from that Dataset. How can I do?
Thanks
|
|
|
|
|
Check this out
http://aspnet.4guysfromrolla.com/articles/091003-1.aspx
|
|
|
|
|
i am using the followig code to display the message box using the code behind.
Response.Write("<script>alert('Hi');</script>");
The problem is , using this code , the background color of the same window gets white.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
its bcose, its a windows modal dialog message box. If u want Other, you should create a custom message box with div tag.
|
|
|
|
|
provide an example please.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
hi friend i am using Remote Scripting with IFRAME. There are two page one is Client.aspx and Server.Aspx.
Client.aspx Contains:-
(script type = "javas")
function GetDate(msg)
{
alert(Msg);
}
(script)
(
name="RSIFrame"
style="width:0px; height:0px; border: 0px"
src="blank.html">(/iframe>)
<b>
(server contains :-</b>
(script type="text/javascript">
window.parent.GetDate('<%=request.servervariables("SERVER_SOFTWARE")%>');
br mode="hold" />
(body>
<form id="form1" runat="server" target="RSIFrame">
<div>
<input type="text" name="whatever" />
<asp:button id="Button1" runat="server" text="Button" />
</div>
/body)
<b>It's Work Properly when Server and client page o same System. if Server page open On different system and client page open deferent system then its not communicate(Its not Work Properly). any body have solotion of this problem...
ans Link Which i follow:-</b>
<a href="http://developer.apple.com/internet/webcontent/iframe.html">http://developer.apple.com/internet/webcontent/iframe.html</a>[<a href="http://developer.apple.com/internet/webcontent/iframe.html" target="_blank" title="New Window">^</a>]
<div class="ForumSig">Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
</div></form>
|
|
|
|
|
|
I have a iTextObject control in the crystal reports, which is similar to the lable control in the aspx page.
can i hide the itextobject type control in the crystal report at run time.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Sure, create a variable object for that Itextbox in the code and make tat invisible.
hope works
|
|
|
|
|
how should i find this control?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi All,
I am adding one imagebutton in gridview using the "RowDataBound" method. But I could not able to found the onclick/runtat event..
How can i add this one ?
ImageButton imgSortAssendingbyId = new ImageButton();
Thanks in Advance
Dana
|
|
|
|
|
hi.. use this code in GVList_RowDataBound(...)
Dim btnDel As ImageButton, btnUpd As ImageButton, lbexp As Label
If e.Row.RowType = DataControlRowType.DataRow Then
btnDel = CType(e.Row.FindControl("btnDelete"),ImageButton)
btnDel.Attributes.Add("onclick", "return confirm_delete();")
btnDel.CommandArgument = e.Row.RowIndex.ToString
'btnUpd = CType(e.Row.FindControl("btnUpdate"), ImageButton)
'btnUpd.CommandArgument = e.Row.RowIndex.ToString
End If
|
|
|
|
|
Thanks for the reply..
You are in the retriving phase. I am asking how to add a server control to the header ?
|
|
|
|
|
You can place the Image button in the header template also same way as row databound event gets fired for the headers and footers also.
Apurva Kaushal
|
|
|
|
|
Hi Dana,
I assume you have already added the ImageButton to the GridView. And here is how you do the rest.
The GridView's RowCommand event will fire when you click on that ImageButton in the GridView. That is in your code imgSortAssendingbyId.
(This command basically fires for any button’s click event, in the GridView).
Example:-
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
Response.Write("You Clicked the Button");
}
Thx,
Gayani
|
|
|
|
|
hi all,
i have a httphandler that returns an image when i send it text (and other parameters). The trouble is i have a need to send the string 'news + events', but the '+' is not being output at all.
code in page
_HeadingTextImage.ImageUrl = "textimage.ashx?text=" + Server.UrlEncode("news+events");
code in httphandler
string qText = (query["text"] == null) ? UsageText : context.Server.UrlDecode(query["text"]);
qText always = "news events" when i step into it.
can anyone tell me how to do this please?
thanks,
Maurice
|
|
|
|
|
|
hello,
thanks for the reply. that page encodes news+events as news%2Bevents which is what i get as input to the handler in the raw url (Request.QueryString)
but when i do Request.QueryString["qText"]; it return "news events", replacing the %2B with a space.
thanks,
Maurice
|
|
|
|
|
thank you i have resolved the issue.
if i urldecode the query in the handler it doesnt work, but if i urlencode the url in the page then just process it in the handler without urldecode'ing it, then it works fine.
regards,
maurice.
|
|
|
|
|
Hi
I have four text box. In my application the 2nd text box is focused. while i click
the button the 2nd text box is focused. But i dont know while i click the button
In which text box is focused. How i find that while i click the button in which
text box is focussed. I hope for ur's reply friends.
Thanks
Every Successful Person Have A Painful Story
|
|
|
|
|
check this forum out:
http://forums.asp.net/t/1110575.aspx
|
|
|
|
|
currently i m using asp.net with c# (.net 2005, 2.0 framework) and sql server 2000.
i want to store a sql query into a field in database... how to do it?
execute the below statement, and how to store it?
INSERT INTO tbl_templates_rsamonitoring(Template_Name,query,insert_date) values('sample','select tbl_rsa.rsa_level4 as \"BU - Level 4\",tbl_rsa.rsa_level5 as \"BU - Level 5\",tbl_rsa.rsa_sbu as \"BU - Level 3\",tbl_rsa.rsa_category as \"BU - Level 1\",tbl_rsa.rsa_level8 as \"BU - Level 8\",REPLACE(CONVERT(VARCHAR,tbl_rsa.rsa_ctrlculture, 106), ' ', '-') as \"Control Culture\" from tbl_rsa where rsa_mode=1','5/15/2008 3:53:47 PM')
that is...
template_name = sample
query='select tbl_rsa.rsa_level4 as \"BU - Level 4\",tbl_rsa.rsa_level5 as \"BU - Level 5\",tbl_rsa.rsa_sbu as \"BU - Level 3\",tbl_rsa.rsa_category as \"BU - Level 1\",tbl_rsa.rsa_level8 as \"BU - Level 8\",REPLACE(CONVERT(VARCHAR,tbl_rsa.rsa_ctrlculture, 106), ' ', '-') as \"Control Culture\" from tbl_rsa where rsa_mode=1
insert_date='5/15/2008 3:53:47 PM
how to achieve it? - KARAN
|
|
|
|
|
It's a string, so store it in an nvarchar column. Did I miss something ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
INSERT INTO tbl_templates_rsamonitoring(Template_Name,query,insert_date) values('sample','select tbl_rsa.rsa_level4 as \"BU - Level 4\",tbl_rsa.rsa_level5 as \"BU - Level 5\",tbl_rsa.rsa_sbu as \"BU - Level 3\",tbl_rsa.rsa_category as \"BU - Level 1\",tbl_rsa.rsa_level8 as \"BU - Level 8\",REPLACE(CONVERT(VARCHAR,tbl_rsa.rsa_ctrlculture, 106), ' ', '-') as \"Control Culture\" from tbl_rsa where rsa_mode=1','5/15/2008 3:53:47 PM')
columns - datatypes
Template_name - nvarchar(100)
query - nvarchar(1000)
insert_date - datetime
table name : tbl_templates_rsamonitoring
when i try to execute the above insert command the error Line 1: Incorrect syntax near ', '. is generation... help me to resolve.
thanks for understanding - karan.
|
|
|
|