|
Thanks for the help its working now. I did like this:
On Item DataBound:
If e.Row.RowType = DataControlRowType.DataRow Then
_counter += 1
Dim cntrlabel As Label
cntrlabel = CType(e.Row.FindControl("lblSrNo"), Label)
cntrlabel.Text = _counter.ToString()
cntrlabel.DataBind()
End If
And declare _counter as shared.
Thanks again...
|
|
|
|
|
|
Hi
I have a string and I want to encript it and then decript the encripted result. But with a condition: the encripted result must not contain some given characters.
For example, the given characters is +,&,*,%,^. And I encript a string s1 and attain a string s2, and decript s2 to archieve s1 again. Then, s2 must not contain any one in {+,&,*,%,^}.
Anybody can show me a solution?
Thank you very much.
|
|
|
|
|
Hi,
I was wondering if somebody could tell me how to call a java servlet from an asp.net page and process the value returned from the servlet.
Im working with a servlet that does exactly what I need. Basically I enter one value and it returns another.
I've tried using httpResonse, httpRequest as follows>
*****************************************************
string getVars = "1234567";
HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(string.Format("http://localhost:80/demo1_res{0}",getVars));
WebReq.Method = "GET";
HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();
Stream Answer = WebResp.GetResponseStream();
StreamReader _Answer = new StreamReader(Answer);
******************************************************
If I were to run the servlet by its self I enter a number into a text box and press submit. The submit button action is called "demo1_res".
I need a way to call the servlet passing the parameter and execute the method?
But i get this error
"System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()"
Im very new to all of this and im not really too sure how to approach the problem.
Thanks
Dub
|
|
|
|
|
dub_beat wrote: I was wondering if somebody could tell me how to call a java servlet from an asp.net page and process the value returned from the servlet.
I am not sure. But I think you can do it using WebClient class.. Try that
|
|
|
|
|
I have made a webside in asp.net.
I have to use it in full screen ( F11) without scrollbars in the side and button.
But i can't remove them, they always is showen in the side as grey.
My problem is that the web side is showed on a TV screen with information to other people and it looks bad with scrollbars.
I've got applies very much long time consider discover out of how to without luck and the is about to pull hairy nether because of frustration.
|
|
|
|
|
Hi All
Im working on a website with technologies c#,ASP, SQL server,VS 2005.
And i would like to incorporate a music player,can anyone point me in
the right direction with articles/code?
Help would be much appreciated.
Regards
M
|
|
|
|
|
Please refer these sites - http://www.jeroenwijering.com/?item=Flash_MP3_Player
http://www.codeproject.com/useritems/mp3_cms.asp
|
|
|
|
|
Thanks Nicejith, much apprciated.
They will go a long way towards my college project.
Have a nice day
Marie
|
|
|
|
|
We have a textbox within a formview (edit item template), that is within an update panel, that's in a multiview, that's in an update panel (phew).
How can we use the aspx.vb code to edit textboxes.
I'm assuming it's something like:
formview.textbox1.value = "10.00"
I can post more code if needed.
Thanks!
|
|
|
|
|
Hi Friend,
Normally I used conditional way to insert records in database by using "Insert into Tbl_Name etc..." query in c#. I just want to know that Is there any other way to insert or fetch the data to and from the database in Visual Studio 2005 like by using LoginView control or any other control? Please tell me if anyone of you know about it?
Regards,
Abubakar Malik
|
|
|
|
|
Is there a quick and easy way to show the Footer & Header of a GridView when datasource come back with 0 rows?
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
Here is some code:
create this event if you don't already have it.
protected void GridView1_PreRender(object sender, EventArgs e)
{
if ((GridView1.PagerSettings.Position == PagerPosition.Top ||
GridView1.PagerSettings.Position == PagerPosition.TopAndBottom) &&
GridView1.TopPagerRow != null)
{
if (!GridView1.TopPagerRow.Visible)
{
GridView1.TopPagerRow.Visible = true;
}
}
if ((GridView1.PagerSettings.Position == PagerPosition.Bottom ||
GridView1.PagerSettings.Position == PagerPosition.TopAndBottom) &&
GridView1.BottomPagerRow != null)
{
if (!GridView1.BottomPagerRow.Visible)
{
GridView1.BottomPagerRow.Visible = true;
}
}
}
Hope that helps.
Ben
|
|
|
|
|
Unfortunately it didn't help with the showing of the Footer or Header when the grid's datasource property has 0 rows. Basically the insert/add new section of the grid is in the grid's Footer. When there are not rows to display for editing, I would still like the footer to display so that users can insert a new row.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
Hi all,
I am learning asp on the fly here so I need to understand how to turn on control the repeater conditionally. Meaning, if my "linkflag" column in my table = 1, I like to make that row hyperlinkable (if not possible to make entire row clickable then just col1) and display a checkbox with a checked state set to true (indicating that is a hyperlink row). How do I accomplish this? Here is what I have so far. Thanks
<%@ Import Namespace="System.Web.UI.WebControls"%>
<%@ Import Namespace="System.Web.UI.WebControls.Repeater"%>
<%@ Import Namespace="System.Data.SQLclient"%>
<%@ Import Namespace="System.Data"%>
<%@ Import Namespace="System.Data.OleDb" %>
Sub numberLookup(ByVal s As Object, ByVal e As EventArgs)
'If Not IsPostBack Then
Dim connSerial As SqlConnection
Dim myDataList As SqlDataReader
Dim Flags As Int
connSerial = New SqlConnection("server=myserverDB;UID=myID;PWD=myPWD;Database=myDB")
Dim cmd As New SqlCommand("sp_mystoredProc", connSerial)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@mylookupNumber", textSerial.Text)
connSerial.Open()
myDataList = cmd.ExecuteReader()
Repeater1.DataSource = myDataList
Repeater1.DataBind()
myDataList.Close()
connSerial.Close()
End Sub
Protected Sub Repeater1_ItemCommand(
ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs)
End Sub
<title>Validation Completion
LookupNumber:
<asp:textbox width="75px" id="textSer" runat="server">
<asp:button text="lookup" id="ser" onclick="numberLookup" runat="server">
<asp:repeater id="Repeater1" runat="server" onitemcommand="Repeater1_ItemCommand">
<headertemplate>
<itemtemplate>
<separatortemplate>
<footertemplate>
|
radiobuttonarea | col1 | col2
| col3 | <asp:radiobutton id="RadioButton1" checked="true" runat="server"> | <%#Container.DataItem( "col1")%> | <%#Container.DataItem("col2")%> | <%#Container.DataItem("col3")%> |
----------
CREATE PROCEDURE dbo.sp_mystoredproc (
@Ser VARCHAR(64)
)
AS
SELECT linkflags, col1, col2, col3 FROM myTable
WHERE col1 = @Ser)
GO
|
|
|
|
|
Hi every one,
I need to know the node that fires the "onNodeCheckChanged" event, when the user checks more than one node, in other words, I need to know the order in which the user checks the nodes so that I wanna keep the check on the last node he checked..
any suggestions?
Thanks in advance..
|
|
|
|
|
pls help me with the code to declare an array to create a table when the user enter the number of rows in the textbox
oga m
|
|
|
|
|
string[] rows = new string[Int32.Parse(txtBox.Text)];
|
|
|
|
|
hey i tried man
its working
दुनिया-भर just copy and paste it in your resource file
whe you paste it , it will show as boxes, but when you leave the cell it will show the letters in hindi.
Whenever you update the resource file you must rebuild it. (not build Ok)
Cheers
All the best
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi all,
I have a javascript function written in html block of aspx page. I have string vairible declared in it, when I try to print it on a paper its printing whole page, instead of printing that string variable only. Can anybody please suggest me or give me some code snippet how to do it. If possible give me the code snippet for 2-browsers Mozilla and IExplr
My code is as below :
function printdoc(text)
{
var lbl="<%=str4%>";
if (lbl == "Valid")
{
var lbl1="<%= str1 %>";
text=lbl1;
print(text);
}
else
{
alert("Bio-metrics have not been done");
}
}
Can anybody please tell me how to do it. Thank you.
Regards,
Aleem.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Please don't cross post.
You can't print anything other than a page. If you want to print a single value, create a page, put the value there and print the page.
---
single minded; short sighted; long gone;
|
|
|
|
|
Please reply in the forum and not as direct email response.
indian143 wrote: No, I would like to print a string value only on a paper cant you give me any other idea. Either it may be VBscript or Javascript. Any client side scripting.
I would be thank full to u.
As I said, you can't print anything other than a page using client scripting.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I am having trouble running a .bat file from my web application.
The file is run by the server but it doesn't perform its function correctly.
I can run the .bat file on the server my self and it works fine, so it not written wrong, but when run by my aspx page it just doesn't do what it is supposed to.
I have tried a couple of different methods and neither seem to work.
The app is impersonating an admin account on the server with full domain admin permissions, and the .bat file is running accross multple servers.
does anyone have any Idea what may be the problem?
many thanks
mark
|
|
|
|
|
can you try this..?
Process pr = new Process();
pr.StartInfo.RedirectStandardOutput = true;
pr.StartInfo.UseShellExecute = false;
pr.StartInfo.FileName = Server.MapPath("urapp.bat");
pr.StartInfo.Arguments = "your arguments"
pr.Start();
pr.WaitForExit();
pr.Close();
|
|
|
|
|
hai all,
I am having a gridview.. if i click select button in a row..
the details shuold display in a seperate panel below.i tried
writing visiblity in selectedpage index event.. but its not
working...can anyone help me with this......
with Regards,
Imthiyas Ahamed.A
|
|
|
|