|
Ok
System.Web.UI.WebControls.TextBox control = (System.Web.UI.WebControls.TextBox)this.form1.FindControl("COntrolID");
This may help you
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
hi,
lets say i have a an application which has few pop ups. However by default the browser denies the popups.
So is there a way that i can provide settings to my application that it should allow popups for the specific application.
Can we do this thru .net???
Gautham
|
|
|
|
|
|
|
Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi
ALL THE BEST
|
|
|
|
|
Hi,
a webusercontrol acts as a childpage to the basepage i.e aspx page.
So a public method in the webusercontrol can be accessed from the main page.
for eg: in the page_load of the main page (.aspx) a call can be made to the public method present in the webusercontrol.
webusercontrol1.populate(string name);....where populate is the method present in the webusercontrol
Is this the thing u want?
Koushik
|
|
|
|
|
Yes
Suppose you have usercontrol name MyControl.ascx which is used in MyPage.aspx
then write a method with all paramaters you want to send to use control
call this method from your MyPage.aspx.cs as
MyControlObject.MethodName(ParameterList)
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
when a coloumn is made visible=false
its data is not accessed.
but i want to access it how can i do it
|
|
|
|
|
Hi
Use a Template field and make it to visible = false.
Add Hidden Field inside the template field.
To get value from the hidden field.
HiddenField hdField = (HiddenField) e.Row.FindControl("Your Hidden Field ID");
You will get value using the variable 'hdField'
That is it.
Rate this message. Thank you. Harini
|
|
|
|
|
How can i get week number on selected date.After selecting the data from the calender,Date to be display on the date textbox and the week number to be displayed on the week number text box automatically.
oga m
|
|
|
|
|
in the calender selectionchanged event place the following code.
for eg:
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
System.Globalization.Calendar cal=System.Globalization.CultureInfo.InvariantCulture.Calendar;
WeekTxt.Text= (cal.GetWeekOfYear(Calendar1.SelectedDate, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday)).ToString();
DayTxt.Text = this.Calendar1.SelectedDate.ToShortDateString();
}
Koushik
|
|
|
|
|
I want to add RMA to my online shopping cart . How to start . Any Idea about that.
Thanks in ADVANCE
|
|
|
|
|
|
Hi,
please help me in, converting DRM protected Audio/Video files to unprotected audio/video files. We can get DRM protected audio/video files from iTune i.e., from Apple website. The files which are present in iTunes will not play in our pc's and ordinary players, because the files are DRM protected. So to play in our pc's and ordinary players we have to remove DRM protection and convert those file format to MPEG or AVI or WMV or MP3 file format.
Bala
|
|
|
|
|
|
Yes it is legal to convert DRM protected file to unprotected file.
There is already software with same functionality with the name Tunebites(www.tunebite.com), u can see the software.
Bala
|
|
|
|
|
Hi frndz,
i have one issue relating to loginI have 3 web forms
Login page, home,and logout .
for authenticating each page we check session value.
Wen I login, keep user name in session["user"] and logo out I assign session["user"] =""
in the home page's load event i check
if(session["user"] .tostring()=="" || session["user"] ==null)
{
response.redirect("login.aspx");
}
esle
{
some functions..
}
After logout if i press the back button of the browser i can come to home.aspx.it didnt check condition in the load event in the Home page
what i do?
--
All I ever wanted is what others have....
CrazySanker
|
|
|
|
|
hi
If you use browser back button, the page_load wont fire, because it just calls window.history.back() meaning that it goes to the last page visited.
To avoid this you can have a button in your UI which on clicked goes to the home page and hence the Page_Load of it will fire.
~VSree
|
|
|
|
|
When you hit back in the browser it (usually) doesn't actually reload the page, just uses the cached version. If they then try to do anything from that page it should hopefully deny it.
|
|
|
|
|
About about expiring pages?
|
|
|
|
|
Hi all
I want to try DTS for Data Transformation TXT file to SQL server
Can any one give me an idea on how to use this DTS on asp.net from basic (basic means need to download any).
Than Q
|
|
|
|
|
|
I am trying to implement Insert, Edit, Delete feature in Grid View in ASP.NET 2.0 using GridView & ObjectDataSource.
'*********The GridView*******
<asp:GridView ID="GridViewCategories" Runat="server" DataSourceID="GoalCategorySource" DataKeyNames="CategoryID" OnRowCommand="GridViewCategories_RowCommand" ShowFooter="true">
'*****ObjectDataSource*******
The Grid View is bound to an ObjectDataSource below, where
GetCategories, UpdateCategory, DeleteCategory are methods of a .NET assembly, BizRules.GoalCategories
<asp:ObjectDataSource ID="GoalCategorySource" runat="server" TypeName="BizRules.GoalCategories" DataObjectTypeName="GoalCategoryEntity"
SelectMethod="GetCategories" UpdateMethod="UpdateCategory" DeleteMethod="DeleteCategory"
OnInserting="GoalCategorySource_Inserting" OnDeleting="GoalCategorySource_Deleting" OnUpdating="GoalCategorySource_Updating">
<InsertParameters>
<asp:Parameter Name="InsertCategoryName" Type="String">
<InsertParameters>
<UpdateParameters>
asp:Parameter Name="UpdateCategoryName" Type="String"
<UpdateParameters>
I was able to catch the Command Events from the GridView using GridViewCategories_RowCommand by using
protected void GridViewCategories_RowCommand(object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "EditUpdate" :
Response.Write("Edit Update");
break;
case "EditCancel":
Response.Write("Edit Cancel");
break;
case "InsertNew":
Response.Write("Insert New");
break;
case "InsertUpdate":
Response.Write("Insert Update");
break;
case "InsertCancel":
Response.Write("Insert Cancel");
break;
case "Delete":
Response.Write("Delete");
break;
}
'*********Section of GridView***************8
<asp:TemplateField ShowHeader="false">
<<itemtemplate>>
<<asp:linkbutton id="lbEdit" runat="server" causesvalidation="False" commandname="Edit" text="Edit" >="">
<<asp:linkbutton id="lbDelete" runat="server" causesvalidation="False" commandname="Delete" text="Delete" >="">
<
<
|
|
|
|
|
hi guys i need help again =)
i am currently trying to make a form in a form
i a sure u guys seem microsoft access subform where by the subform is actually another form in the access and the user can navigate the form by those scroll bar even if the window of the form is small
i am trying to do that in vb.net! issit possible? if it is could anyone tell me which control/component to use and how to use it thx
|
|
|
|
|
What do you mean by a form in a form? You want to nest asp:Form tags? Can't be done. Do you want two section on the page with form fields and submit buttons? Thats not two forms, just controls in different places.
|
|
|
|