|
plz try this[^] but in asp.net you can't.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
how can i connect server pc to clint pc
|
|
|
|
|
What does this Has to do with ASP.net ?
Get a Life
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
please provide correct and relavant question. It will help our experts to provide help easily....
Padmanabhan
|
|
|
|
|
This is no ASP.Net question.
Instead, you may have a look here[^]
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.
|
|
|
|
|
With a long cable
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I want to read word file which is on client side, Is that possible to read it without uploading to the server?
I found from some site that u can do it with activeX control, but nowhere it has mentioned how?
Ok if it is only possible to read it by uploading. I want that upload control not be shown.
My requirement is that on a link button that file dialog box should be shown and that file get posted.
I tried it through javascript like:
lnkImportLensList.Attributes.Add("onclick", "document.getElementById('" + FileUpload1.ClientID + "').click();");
it shows the dialog box. but page get postback and no value will be there for posted file after that.
Can anybody please suggest?
Kalpesh Vyas
SONATA SOFTWARE LTD.
|
|
|
|
|
Kalpesh Vyas wrote: I found from some site that u can do it with activeX control, but nowhere it has mentioned how?
You need to write the activeX conrol yourself.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello Everybody,
I have used an update panel on the page and it refresh data (getting from Database) after 5 seconds using timer control. Everything doing fine, but after a random time (may be after 1 hour or 5 hours or 1 day or 3 days) update panel not refreshing the data.
Anybody can say what type of problem it may be??
Please help me..
Thanks in advance.
Dipak
|
|
|
|
|
Gee - I'd start with bad design. Who keeps a web page open for 3 days ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks for reply.
Sorry to say, i am not getting your point. Please clearfy the point.
I will thnakful to you.
Dipak
|
|
|
|
|
i want to create table in runtime
actually in web page, user will select colors and each color have number of sizes.
now i want when user colors i have to create the textbox equal to its sizes.
suppose the user have select red color and red color have 2 sizes then the datatable will be like this:
_____________________________________
|color| 0 | 1 | 2 |
_____________________________________
|Red | Textbox | Textbox | Textbox |
in the above table 0,1,2 are sizes of red color
i hope you got my question
One person's data is another person's program.
--J.Walia
|
|
|
|
|
your basic issue is that anything you create after or during page load, won't have viewstate. What do you want to do with colors ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello Friends,
I am developing a Intranet Application Which will run on local DNS Server, Many systems are connected to this DNS server , actually I want to get all Active System Ip Address which is issued from Local DNS Server..
Thanks
raushan
|
|
|
|
|
Request.UserHostAddress()
|
|
|
|
|
i'm trying to load a website in a webpart as the client choices withing my web site, for this what is the component that i can use in asp.net
|
|
|
|
|
got the solution, the iframe is the option
|
|
|
|
|
Hello,
I am using VS 2005
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager id="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel id="UpdatePanel1" runat="server" EnableViewState="False">
<contenttemplate>
<asp:TextBox ID="TextBox1" runat="server" Style="position: relative; top: 0px;"></asp:TextBox><br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Style="position: relative"
Text="Next" />
<asp:Button ID="Button2" runat="server" Style="position: relative" Text="Pevious" OnClick="Button2_Click" />
<asp:Button ID="Button3" runat="server" Style="left: 0px; position: relative" Text="Update" OnClick="Button3_Click" /><br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand='SELECT * FROM "EMP"'>
</asp:SqlDataSource>
</contenttemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
And in the aspx.vb file i have code following:
Protected Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
MessageBox.Show(TextBox1.Text, "xx", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
End Sub
but it is not showing me the current value (user chaged the value; when page comes on the browser) of the textbox; it is showing me the value which was at the time of page load.
After searching a lot on the net, i am posting the question here, to get the solution how to get the current/changed value of the textbox which is in the update panel; on click of the button.
Thanks & Regards
Girish Sharma
|
|
|
|
|
plz check whether you have checked the page load in your page load event....
code in c#:
if (!IsPostBack)
{
//Code
}
Padmanabhan
|
|
|
|
|
in the page load event i have following code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
Session("r") = 0
End If
'dv.Table.Rows(1)(1) = "xx"
showdata()
End Sub
Regards
Girish Sharma
|
|
|
|
|
try to put the showdata() inside the post back. that is the error...
code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
Session("r") = 0
'dv.Table.Rows(1)(1) = "xx"
showdata()
End If
End Sub
Padmanabhan
|
|
|
|
|
Thanks a lot padmanabhan N. It is working fine; but it is really new to me how it is working now; when page's postback event has been fired and i have following in showdata:
Public Sub showdata()
dv = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
TextBox1.Text = dv.Table.Rows(Session("r"))(1).ToString()
End Sub
what is the relation with the postback's true/false?
I wish to thanks for providing the the answer and shall be more informative for the question i asked above please.
Best Regards
Girish Sharma
|
|
|
|
|
with pleasure,
The postback is doing all the things. The loop your write inside the postback will fire only when the page is loaded and the value will be maintained and the loop wont be executed after that. So, if we write the code after the loop will be fired in even and every postback. just keep the breakpoint in the page load and check. You can see for each and every postback the pageload event is fired.
So each and every time the button click it fires the page load first and then the button event. So, the showdata() will clears your modification and the original data will be set. For this only you got the old values.
I hope you understand now.
Padmanabhan
|
|
|
|
|
padmanabhan N
Thank you so much for clearing doubts and nice explanation.
Best Regards
Girish Sharma
|
|
|
|
|
its ok, Happy coding..
Padmanabhan
|
|
|
|